problem using py2exe

Justin Shaw wyojustin at hotmail.com
Sat Feb 22 22:52:44 EST 2003


Too bad no one can help with this.  This is on my to do list!
Justin Shaw

> Can anybody give me a detailed explanation of using extension modules
> in py2exe? My python code imports 'tkSnack', a extension module, and
> my setup.py is like this:
>
> #setup.py
> from distutils.core import setup
> import py2exe
>
> setup(name="pitch",
>  scripts=["pitch.py"]
>  )
>
> (that is, pitch.py imports tkSnack.)
>
> In cmd, I type 'python setup.py py2exe'. It works well, but I execute
> the pitch.exe, then error happens.
>
> Traceback (most recent call last):
>   File "<string>", line 14, in ?
>   File "<string>", line 7, in pitch
>   File "tkSnack.pyc", line 21, in initializeSnack
> TclError: can't find package snack
>
> I look up in python.org, but I have no idea.
>
>






More information about the Python-list mailing list