py2exe - convert python scripts into exe files (windows)
Dave Brueck
dbrueck at edgix.com
Fri Jan 19 13:56:35 EST 2001
> [mailto:python-list-admin at python.org]On Behalf Of Alex Martelli
...
> Very interesting idea, but I must be doing something wrong.
...
> However, when I try to run this EXE, it doesn't work
> _quite_ right...:
>
> D:\PySym\salo\dist\hello>.\hello
> KeyError: imputil.pyc
> Traceback (most recent call last):
> File "<string>", line 22, in ?
> NameError: There is no variable named 'imputil'
> hello world
I got the same thing. Don't know how to fix it, but as a hacky workaround
you can include imputil.py in your list of scripts:
... scripts=['hello.py','imputil.py'])
(I copied imputil.py to the same dir as setup.py too)
-Dave
More information about the Python-list
mailing list