From: David H. <dav...@fr...> - 2014-10-23 09:03:44
|
Le 23/10/2014 10:10, Thomas Heller a écrit : > Am 17.10.2014 um 10:52 schrieb David Hautbois: >> Hi >> I use : >> - python 3.4.2 >> - py2exe 0.9.2 >> - pywin32 2.1.9 >> >> I get errors related in the bug #136. >> >> Can I downgrade pywin32 to a specific version to build my application >> successfully ? >> I there a way to make it working ? > Now that the current code is released as py2exe 0.9.2.2 I want to look > seriously at the issue in bug #136 > http://sourceforge.net/p/py2exe/bugs/136/ > > Can you strip down your application to a minimal testcase that shows > this bug - it would probably help me? > > Thomas > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users Hi Thomas I updated py2exe with the last release. And I found my problem (my error ?). My main script contains this line : __version__ = "0.0.1" The setup.py imports the main script to use this variable to update the version of the binary file : import mymainscript [...] setup([...], version = mymainscript.__version__ ) I removed the import and the build finished successfully. The Windows service works fine. I didn't have this problem with pyhon 2. I only have a warning about the missing "readline" module : C:\projects\testservice>python setup.py py2exe running py2exe 1 missing Modules ------------------ ? readline imported from cmd, code, pdb Building 'dist\testservice.exe'. Copy c:\windows\system32\python34.dll to dist [...] But it works. Maybe this bug could be closed. If You want further details, sample scripts, tests, etc... Let me know ! Regards. David. |