I haven't used pythoncard, but someone seems to have written about it at...

http://www.py2exe.org/index.cgi/PythonCardSetup

If that's not enough then most problems like this are just a google search away with a search term like: py2exe pythoncard

Good luck!

Jimmy

On Sat, Apr 28, 2012 at 2:36 PM, Mark Heinze <maanhe4r@gmail.com> wrote:
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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Py2exe-users mailing list
Py2exe-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users