Re: Py2EXE problem



Sick Monkey schrieb:
Ok I found an extremely easy way to resolving this issue (I cannot believe I
did not think of it sooner).

After Py2exe created the .exe file I noticed a "library.zip" file. I took a
look at the Py2exe output, and saw all of the libraries that it failed to
insert. I copied all of the .pyc that my application needed and inserted
them in the "email folder" within the library.zip. I fired up the
application and it worked like a champ.


Even easier would be to let py2exe include the whole email package.
One solution is to run
'setup.py py2exe -p email'

Thomas

.



Relevant Pages

  • Re: building exe from script
    ... from distutils.core import setup ... REM make sure that python is in your system path ... python setup.py py2exe ... Is there any solution for building exe file from python script ...
    (comp.lang.python)
  • Re: execution speed increase after compile py code into exe?
    ... Michael Bentley wrote: ... compiled into exe file with py2exe? ... I would expect slower startup followed by the same code execution time you'd get from running normally ...
    (comp.lang.python)
  • Re: win32 pyserial requires javax.comm for py2exe?
    ... >> The .exe file is generated and will run just fine under Windows. ... platform implementation from an other file. ... setup_demo.py for py2exe in the pyserial examples ...
    (comp.lang.python)
  • Re: Can .py be complied?
    ... >> setup.py file containing a couple lines of python. ... and you end up with an .exe file and some ... ...exe and some dll files that need to be distributed together. ... It's explained very clearly by the py2exe web site: ...
    (comp.lang.python)
  • Question about py2exe and matplotlib
    ... This program converts fine into an exe file using py2exe. ... I embedded a figure canvas from matplotlib in a wxpython panel. ...
    (comp.lang.python)