Hello list,

I'm new to Python, wrote my first app and am now trying to make an executable.
I need some help with the exe. Can someone point me in the right direction please?

My application consists of three files:

wisdom_tooth.py
wisdom_tooth.rsrc.py (a resource file generated from Pythoncard)
wisdom_tooth_thumbnail.jpg

The application was written with:

Python 2.7.2
wxPyhon 2.8.12.1
Pythoncard 0.8.2

My setup.py file looks like this:

from distutils.core import setup
import py2exe
Mydatafiles = [('images', ['C:\Python27\mark27\myexe\wisdom_tooth_thumbnail.jpg'])]
setup(
    windows=['wisdom_tooth.py'],
    datafiles = Mydatafiles
    )

The process seems to work fine using "python setup.py py2exe" in the command prompt window.
When I try to run the resulting "wisdom_tooth.exe" in the dist folder, the log results:

Traceback (most recent call last):
  File "wisdom_tooth.py", line 269, in <module>
  File "PythonCard\model.pyc", line 366, in __init__
  File "PythonCard\resource.pyc", line 45, in __init__
  File "PythonCard\util.pyc", line 39, in readAndEvalFile
TypeError: coercing to Unicode: need string or buffer, NoneType found

Can anybody tell me what issue is here and what I need to do to resolve it?
What more information could I post that would help?
Has anyone else had success compiling an application made with Pythoncard using Py2exe?
Is there a search function for the archive of the py2exe-users list (I've only been able to browse)?

Thanks, 
Mark Heinze