Menu

#91 Single file (bundle) needs correct name

open
None
5
2006-04-02
2006-04-02
No

From py2exe-users:

> I've had several of my users complain to me that they
can't get my
> program started. Instead they get the error:
>
> Traceback (most recent call last):
> File "", line 1, in ?
> ImportError: No module named zipextimporter
> Traceback (most recent call last):
> File "atab.py", line 347, in ?
> ImportError: No module named wxPython.wx
>
> It usually turns out that they've managed to rename
the file. Once they
> return the file name to the one specified in
setup.py, it works again.
> Is there any way to fix this? or is it a known issue?

IIRC, the name of the zip-archive is hardcoded into the
executable. If 'zipfile=None' is specified, the
zip-archive is appended to the exe itself, so you
cannot rename the exe.

Better would be to leave the name of the zip-archive
empty, since in can be constructed at runtime from the
exe for these cases.

Discussion


Log in to post a comment.