problem using py2exe

Ho-Kyeong illuza at eoneo.co.kr
Fri Feb 21 03:19:29 CET 2003


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