You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(7) |
Jun
(31) |
Jul
(50) |
Aug
(79) |
Sep
(45) |
Oct
(41) |
Nov
(56) |
Dec
(103) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(75) |
Feb
(37) |
Mar
(40) |
Apr
(41) |
May
(91) |
Jun
(41) |
Jul
(38) |
Aug
(48) |
Sep
(146) |
Oct
(98) |
Nov
(65) |
Dec
(64) |
2006 |
Jan
(40) |
Feb
(123) |
Mar
(57) |
Apr
(69) |
May
(49) |
Jun
(51) |
Jul
(50) |
Aug
(103) |
Sep
(89) |
Oct
(23) |
Nov
(73) |
Dec
(63) |
2007 |
Jan
(74) |
Feb
(76) |
Mar
(40) |
Apr
(46) |
May
(97) |
Jun
(45) |
Jul
(57) |
Aug
(74) |
Sep
(42) |
Oct
(15) |
Nov
(63) |
Dec
(10) |
2008 |
Jan
(40) |
Feb
(40) |
Mar
(25) |
Apr
(51) |
May
(34) |
Jun
(70) |
Jul
(52) |
Aug
(55) |
Sep
(44) |
Oct
(66) |
Nov
(44) |
Dec
(42) |
2009 |
Jan
(26) |
Feb
(32) |
Mar
(40) |
Apr
(81) |
May
(44) |
Jun
(49) |
Jul
(45) |
Aug
(58) |
Sep
(23) |
Oct
(62) |
Nov
(40) |
Dec
(48) |
2010 |
Jan
(24) |
Feb
(74) |
Mar
(62) |
Apr
(31) |
May
(42) |
Jun
(24) |
Jul
(39) |
Aug
(61) |
Sep
(21) |
Oct
(24) |
Nov
(26) |
Dec
(41) |
2011 |
Jan
(27) |
Feb
(27) |
Mar
(45) |
Apr
(15) |
May
(13) |
Jun
(26) |
Jul
(20) |
Aug
(52) |
Sep
(11) |
Oct
(32) |
Nov
(5) |
Dec
(5) |
2012 |
Jan
(7) |
Feb
(21) |
Mar
(2) |
Apr
(5) |
May
(9) |
Jun
|
Jul
(14) |
Aug
(20) |
Sep
(5) |
Oct
(8) |
Nov
(11) |
Dec
(4) |
2013 |
Jan
(7) |
Feb
(9) |
Mar
(8) |
Apr
(7) |
May
(22) |
Jun
(7) |
Jul
(4) |
Aug
(10) |
Sep
(7) |
Oct
(1) |
Nov
(17) |
Dec
(2) |
2014 |
Jan
(4) |
Feb
(2) |
Mar
(6) |
Apr
(6) |
May
(15) |
Jun
|
Jul
(9) |
Aug
(7) |
Sep
(21) |
Oct
(13) |
Nov
|
Dec
(2) |
2015 |
Jan
(5) |
Feb
|
Mar
(11) |
Apr
(3) |
May
(9) |
Jun
(5) |
Jul
(2) |
Aug
(2) |
Sep
(8) |
Oct
(9) |
Nov
(6) |
Dec
(1) |
2016 |
Jan
|
Feb
(5) |
Mar
(32) |
Apr
|
May
|
Jun
(10) |
Jul
(2) |
Aug
|
Sep
(5) |
Oct
(7) |
Nov
(3) |
Dec
|
2017 |
Jan
(5) |
Feb
|
Mar
(1) |
Apr
(1) |
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(1) |
2018 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(2) |
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2021 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Adrian J. <adr...@es...> - 2015-01-30 09:27:19
|
Hi, I am trying to change the language that is set in the exe, the default appears as 'English (United States)'. Google turned up this info from the mailing list from 2010 http://comments.gmane.org/gmane.comp.python.py2exe/4128 It describes patching the py2exe module resources/VersionInfo.py and change the resource_bytes() function: [copied from post] # 040904B0/0x04B00409 is en_US # 080904B0/0x04B00809 is en_UK def resource_bytes(self): vs = VS_VERSIONINFO(self.version, [StringFileInfo("080904B0", self.strings), VarFileInfo(0x04B00809)]) return str(vs) This seems straight forward however I do not want to patch the module as this is not a good long term strategy with py2exe upgrades etc. Pending `official` language support, I presume it's possible to subclass VersionInfo _somewhere_ and override `resource_bytes`. Does anyone know any more or can offer any pointers? Is there already an accepted approach of achieving this? Many thanks, Adrian |
From: Paul M. <p.f...@gm...> - 2015-01-21 14:47:05
|
One thing I often want to do is to create an executable version of a Python script (and its dependencies) that will run on another system with Python installed (but not necessarily with all the dependencies). I can just zip up the file and its dependencies and run it using Python's executable zip feature, but it seems to me that using py2exe's features (automatically finding and bundling dependencies, running DLLs from the exe, creating an exe rather than a zip) would be useful. Is this something that could be added to py2exe? Basically, it seems like it would just be a case of *not* including the Python DLLs and stdlib files in the bundling process (but I realise that's probably a bit naive :-)) Paul |
From: Werner <wer...@gm...> - 2015-01-13 21:24:20
|
On 1/13/2015 17:35, Jonno wrote: > I tried to upgrade with 'pip install -U py2exe' on a Win7 machine > Anaconda 2.0.1, 32 bit, Python 2.7.7. You need to use 0.6.9 for Python 2.7: http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/ Werner |
From: Jonno <jon...@gm...> - 2015-01-13 16:35:52
|
I tried to upgrade with 'pip install -U py2exe' on a Win7 machine Anaconda 2.0.1, 32 bit, Python 2.7.7. The pip log shows: Downloading/unpacking py2exe from https://pypi.python.org/packages/source/p/py2exe/py2exe-0.9.2.2.zip#md5=f7d7e3980a606b4ded4d98016759d557 Downloading from URL https://pypi.python.org/packages/source/p/py2exe/py2exe-0.9.2.2.zip#md5=f7d7e3980a606b4ded4d98016759d557 Running setup.py (path:c:\users\marnj\appdata\local\temp\pip_build_marnj\py2exe\setup.py) egg_info for package py2exe Traceback (most recent call last): File "<string>", line 17, in <module> File "c:\users\marnj\appdata\local\temp\pip_build_marnj\py2exe\setup.py", line 10, in <module> raise RuntimeError("This package requires Python 3.3 or later") RuntimeError: This package requires Python 3.3 or later Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 17, in <module> File "c:\users\marnj\appdata\local\temp\pip_build_marnj\py2exe\setup.py", line 10, in <module> raise RuntimeError("This package requires Python 3.3 or later") RuntimeError: This package requires Python 3.3 or later On Tue, Oct 21, 2014 at 1:49 PM, Thomas Heller <th...@ct...> wrote: > py2exe version 0.9.2.2 released > =============================== > > `py2exe` is a distutils extension which allows to build standalone > Windows executable programs (32-bit and 64-bit) from Python scripts; > Python 3.3 and later are supported. It can build console executables, > windows (GUI) executables, windows services, and DLL/EXE COM servers. > (For Python 2.3 - 2.7 the older version 0.6.9 is still available.) > > Changes in version 0.9.2.2: > > - Added support for six, cffi, pycparser, openssl. > > - The cmdline_style options for windows services ("py2exe", "pywin32", > "custom") should work again. > > - Several bugfixes, better error messages. > > > News for py2exe 0.9.2: > > - brand new implementation, written from scratch for Python 3 > > - py2exe now supports Python 3.3 and 3.4 > > - can be installed with 'pip' since py2exe is released in wheel format > (in addition to a source package and bdist_wininst installers) > > - less warnings from the build process thanks to a hooks module which > contains knowledge about some often used packages > > - easy start: executables can now be built with a simple command line > script; no need to write a setup-script from scratch. In fact a > commented setup-script can now be autogenerated > > - py2exe does now find Python modules even in zipped eggs > > > Short manual and download at the Python cheeseshop (or simply install > or upgrade it with 'pip install -U py2exe'): > > https://pypi.python.org/pypi/py2exe/0.9.2.2/ > > Enjoy, > Thomas > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > |
From: 星宇 <coo...@li...> - 2015-01-05 01:48:34
|
hello.py: print('Hello World') setup.py: from distutils.core import setup import py2exe setup( options = {"py2exe":{ "compressed":1, "optimize":2, "bundle_files":0 } }, zipfile = None, console=['hello.py']) > py -3.4 setup.py py2exe When I run hello.exe on my computer, It print "Hello World". But when I run it on other three computers, It print "FATAL ERROR: Could not load python library" and crash. Then I copy python34.dll with hello.exe, It print "Hello World". What can I do? Thanks. |
From: Leonid Y. <leo...@gm...> - 2014-12-21 18:35:30
|
Hello, I am trying to work with py2exe and sympy and get errors. How should I change my setup.py to make it working? Error : File "C:\Python27\lib\site-packages\py2exe\mf.py", line 284, in import_module m = self.load_module(fqname, fp, pathname, stuff) File "C:\Python27\lib\site-packages\py2exe\mf.py", line 730, in load_module r = Base.load_module(self, fqname, fp, pathname, (suffix, mode, typ)) File "C:\Python27\lib\site-packages\py2exe\mf.py", line 314, in load_module self.scan_code(co, m) File "C:\Python27\lib\site-packages\py2exe\mf.py", line 423, in scan_code self._safe_import_hook(name, m, fromlist, level=level) File "C:\Python27\lib\site-packages\py2exe\mf.py", line 332, in _safe_import_h ook self.import_hook(name, caller, level=level) File "C:\Python27\lib\site-packages\py2exe\mf.py", line 719, in import_hook return Base.import_hook(self,name,caller,fromlist,level) File "C:\Python27\lib\site-packages\py2exe\mf.py", line 134, in import_hook self.msg(3, "import_hook", name, caller, fromlist, level) RuntimeError: maximum recursion depth exceeded |
From: Rupert B. <rup...@gm...> - 2014-12-04 22:30:11
|
Hi, Unfortunately py2exe doesn't support generation of single files (bundle-files:1) option on 64-bit python 2.7. I see some commits in the SVN that look like starts towards support for that. Is there any way to get support for 64-bit single file executables on py2.7? is it worth building from source, or is the source version too unstable? (Due certain interesting modules not yet being supported on python 3, simply switching to python 3 is not an option at this point.) Thanks Rupert -------------------------------------------------------------- Rupert Brooks rup...@gm... |
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. |
From: Thomas H. <th...@ct...> - 2014-10-23 08:09:48
|
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 |
From: Thomas H. <th...@ct...> - 2014-10-21 18:49:36
|
py2exe version 0.9.2.2 released =============================== `py2exe` is a distutils extension which allows to build standalone Windows executable programs (32-bit and 64-bit) from Python scripts; Python 3.3 and later are supported. It can build console executables, windows (GUI) executables, windows services, and DLL/EXE COM servers. (For Python 2.3 - 2.7 the older version 0.6.9 is still available.) Changes in version 0.9.2.2: - Added support for six, cffi, pycparser, openssl. - The cmdline_style options for windows services ("py2exe", "pywin32", "custom") should work again. - Several bugfixes, better error messages. News for py2exe 0.9.2: - brand new implementation, written from scratch for Python 3 - py2exe now supports Python 3.3 and 3.4 - can be installed with 'pip' since py2exe is released in wheel format (in addition to a source package and bdist_wininst installers) - less warnings from the build process thanks to a hooks module which contains knowledge about some often used packages - easy start: executables can now be built with a simple command line script; no need to write a setup-script from scratch. In fact a commented setup-script can now be autogenerated - py2exe does now find Python modules even in zipped eggs Short manual and download at the Python cheeseshop (or simply install or upgrade it with 'pip install -U py2exe'): https://pypi.python.org/pypi/py2exe/0.9.2.2/ Enjoy, Thomas |
From: Thomas H. <th...@ct...> - 2014-10-21 14:25:25
|
Am 20.10.2014 um 15:30 schrieb Werner: > Hi, > > I saw an question asked on this on SO, tried to figure it out as I will > soon need this too, but had no luck. > > Attached is the test script and the setup.py I used. > > I tried adding 'six' to 'includes' but no change. > > Anyone found a solution on how to handle six together with py2exe? I've already implemented support for the module/package renaming that six.py does. It will be in the soon-to-be-released py2exe 0.9.2 (however only for Python 3). Thomas |
From: Werner <wer...@gm...> - 2014-10-20 13:30:52
|
Hi, I saw an question asked on this on SO, tried to figure it out as I will soon need this too, but had no luck. Attached is the test script and the setup.py I used. I tried adding 'six' to 'includes' but no change. Anyone found a solution on how to handle six together with py2exe? Werner On py27 I get this when running the exe: Traceback (most recent call last): File "sixandpy2exe.py", line 2, in <module> ImportError: cannot import name urlparse and on Py33 I get this when running setup.py py2exe: File "d:\devOther\samplesTest\priomsrb\setup.py", line 3, in <module> setup(console=['sixandpy2exe.py']) File "c:\Python33\Lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\Python33\Lib\distutils\dist.py", line 930, in run_commands self.run_command(cmd) File "c:\Python33\Lib\distutils\dist.py", line 949, in run_command cmd_obj.run() File "c:\Python33\Lib\site-packages\py2exe\distutils_buildexe.py", line 188, in run self._run() File "c:\Python33\Lib\site-packages\py2exe\distutils_buildexe.py", line 267, in _run builder.analyze() File "c:\Python33\Lib\site-packages\py2exe\runtime.py", line 172, in analyze target.analyze(mf) File "c:\Python33\Lib\site-packages\py2exe\runtime.py", line 74, in analyze modulefinder.run_script(self.script) File "c:\Python33\Lib\site-packages\py2exe\mf3.py", line 85, in run_script self._scan_code(mod.__code__, mod) File "c:\Python33\Lib\site-packages\py2exe\mf3.py", line 358, in _scan_code self.safe_import_hook(name, mod, fromlist, level) File "c:\Python33\Lib\site-packages\py2exe\mf3.py", line 135, in safe_import_hook self.import_hook(name, caller, fromlist, level) File "c:\Python33\Lib\site-packages\py2exe\mf3.py", line 117, in import_hook module = self._gcd_import(name) File "c:\Python33\Lib\site-packages\py2exe\mf3.py", line 267, in _gcd_import return self._find_and_load(name) File "c:\Python33\Lib\site-packages\py2exe\mf3.py", line 286, in _find_and_load parent_module = self.modules[parent] builtins.KeyError: 'six.moves' |
From: Thomas H. <th...@ct...> - 2014-10-17 13:33:59
|
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 ? Not yet, sorry. I want to release the current code (where bug 136 is not yet fixed) asap. Thomas |
From: Thomas H. <th...@ct...> - 2014-10-17 11:40:36
|
Am 17.10.2014 um 10:34 schrieb Sommer Detlef: > > Hello, thanks for the answer. > > The compile now works, but I have some troubles getting the > additional comand line parameters to work. > > When I rund the program without compilation the parameters work > without problem, when I compile it the default (install, start, stop, > ...) work - but my user defined are alsways rejected with "option > xxxx not recognized". Where do these additional command line parameters come from? Where are they defined? |
From: David H. <dav...@fr...> - 2014-10-17 08:52:53
|
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 ? Thanks. David. |
From: Sommer D. <Det...@ce...> - 2014-10-17 08:35:08
|
Hello, thanks for the answer. The compile now works, but I have some troubles getting the additional comand line parameters to work. When I rund the program without compilation the parameters work without problem, when I compile it the default (install, start, stop, ...) work - but my user defined are alsways rejected with "option xxxx not recognized". I have searched arround, my code seems to be valid - any ideas ? > -----Ursprüngliche Nachricht----- > Von: Thomas Heller [mailto:th...@ct...] > Gesendet: Mittwoch, 15. Oktober 2014 19:58 > An: py2...@li... > Betreff: Re: [Py2exe-users] py2exe, python 3 and OpenSSL ... > > Sorry for the late reply; I have been traveling and then being sick :-( > > Am 27.09.2014 um 11:43 schrieb Sommer Detlef: > > > > Think this does not work. Compile is ok, but when I start the program I get: > > > > Traceback (most recent call last): > > File "boot_service.py", line 180, in <module> > > pywintypes.error: (1063, 'StartServiceCtrlDispatcher', 'Der Dienstprozess > konnte keine Verbindung mit dem Dienstcontroller herstellen.') > > > > During handling of the above exception, another exception occurred: > > > > Traceback (most recent call last): > > File "boot_service.py", line 182, in <module> > > TypeError: 'error' object does not support indexing > > > > Any ideas ? > > There is still a bug in the error handling code; this patch should fix it: > > Index: py2exe/boot_service.py > ========================================================== > ========= > --- py2exe/boot_service.py (revision 758) > +++ py2exe/boot_service.py (working copy) > @@ -179,7 +179,7 @@ > try: > servicemanager.StartServiceCtrlDispatcher() > except win32service.error as details: > - if details[0] == > winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: > + if details.winerror == > winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: > win32serviceutil.usage() > else: > win32serviceutil.HandleCommandLine(k) > @@ -192,7 +192,7 @@ > try: > servicemanager.StartServiceCtrlDispatcher() > except win32service.error as details: > - if details[0] == > winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: > + if details.winerror == > winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: > win32serviceutil.usage() > else: > # assume/insist that the module provides a HandleCommandLine > function. > > > > > > >> -----Ursprüngliche Nachricht----- > >> Von: Thomas Heller [mailto:th...@ct...] > >> Gesendet: Freitag, 26. September 2014 20:43 > >> An: py2...@li... > >> Betreff: Re: [Py2exe-users] py2exe, python 3 and OpenSSL ... > >> > >> Am 26.09.2014 um 10:15 schrieb Sommer Detlef: > >>> > >>> Perfect - this look very good. Thank you for the help ! > >> > >> Thanks for testing. > >> > >>> One last question - will the python 3 version of py2exe also support > >> "cmdline_style='pywin32'" for windows services. > >> > >> It seems that this simple patch to py2exe/runtime.py will enable this > >> support: > >> > >> @@ -569,13 +570,18 @@ > >> optimize=self.options.optimize)) > >> > >> if target.exe_type == "service": > >> + > >> + cmdline_style = getattr(target, "cmdline_style", "py2exe") > >> + if cmdline_style not in ["py2exe", "pywin32", "custom"]: > >> + raise RuntimeError("cmdline_handler invalid") > >> + > >> # code for services > >> # cmdline_style is one of: > >> # py2exe > >> # pywin32 > >> # custom > >> code_objects.append( > >> - compile("cmdline_style = 'py2exe'; service_module_names > >> = %r" % (target.modules,), > >> + compile("cmdline_style = %r; service_module_names = %r" > >> % (cmdline_style, target.modules,), > >> "<service_info>", "exec", > >> optimize=self.options.optimize)) > >> > >> > >> > >> > >> > >> ------------------------------------------------------------------------------ > >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS > Reports > >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > >> > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.cl > >> ktrk > >> _______________________________________________ > >> Py2exe-users mailing list > >> Py2...@li... > >> https://lists.sourceforge.net/lists/listinfo/py2exe-users > > > > ------------------------------------------------------------------------------ > > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.cl > ktrk > > > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users |
From: Thomas H. <th...@ct...> - 2014-10-16 18:09:12
|
Am 04.10.2014 um 01:23 schrieb William Ferreira: > Goodnight everyone > > I'm trying to compile a simple script that uses PySide[1] into an > executable with py2exe with the following script[2]. Everything works > normal, the generated executable in the "dist" folder along with any > files needed: [...] > However I would like to generate an executable with .pyd packaged along > with the exe, as is done in DropBox and Ninja IDE. For this it is > necessary to change ** ** bundle_files option for other values, where > two packages the .pyd, the first .pyd and pythonXX.dll or 0 (zero) that > wraps all dll and .pyd. > > Making the change to any of these values py2exe issues a warning that > should have used the option 3. Removing this restriction (method > hook_PySide in hooks.py) rushes the process usually put the runs does > not application issuing the error "zipimport.ZipImportError: can't find > module PySide" Well, there are several problems that cause the behaviour that you describe above. First, I added the hook_PySide() method in hooks.py because I noticed that pyside programs only work with bundle_files == 3. This function can probably be removed. Second, please replace line 87 in Lib/site-packages/zipextimporter.py (which is part of py2exe): " except Exception:" by this code: " except ImportError:". This code did hide the real problem with PySide. When you now build an exe from a simple pyside script (with bundle_files set t0 0, 1, or 2), you get this when you start the exe: Traceback (most recent call last): File "test_pyside.py", line 9, in <module> from PySide import QtGui File "<frozen importlib._bootstrap>", line 2214, in _find_and_load File "<frozen importlib._bootstrap>", line 2203, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible File "c:\Users\thomas\devel\sf-new\trunk\py2exe-3\testing\py34-32\lib\site-packages\zipextimporter.py", line 86, in load_module return zipimport.zipimporter.load_module(self, fullname) File "c:\Users\thomas\devel\sf-new\trunk\py2exe-3\testing\py34-32\lib\site-packages\PySide\__init__.py", line 41, in <module> _setupQtDirectories() File "c:\Users\thomas\devel\sf-new\trunk\py2exe-3\testing\py34-32\lib\site-packages\PySide\__init__.py", line 11, in _setupQtDirectories pysideDir = _utils.get_pyside_dir() File "c:\Users\thomas\devel\sf-new\trunk\py2exe-3\testing\py34-32\lib\site-packages\PySide\_utils.py", line 97, in get_pyside_dir return _get_win32_case_sensitive_name(os.path.abspath(os.path.dirname(QtCore.__file__))) File "c:\Users\thomas\devel\sf-new\trunk\py2exe-3\testing\py34-32\lib\site-packages\PySide\_utils.py", line 88, in _get_win32_case_sensitive_name path = _get_win32_long_name(_get_win32_short_name(s)) File "c:\Users\thomas\devel\sf-new\trunk\py2exe-3\testing\py34-32\lib\site-packages\PySide\_utils.py", line 63, in _get_win32_short_name raise WinError() FileNotFoundError: [WinError 3] Das System kann den angegebenen Pfad nicht finden. So, the exe still does not work but we see the problem: the call to _utils.get_pyside_dir() in PySide\__init__.py fails. The reason is that in PySide tries to determine the real filename of the QtCore.pyd file; but this fails. So, the problem seems to be in the PySide code; it does not work when PySide is loaded from a zipfile. I wonder if the code in PySide/__init__.py: _setupQtDirectories() is really needed; for my tests the simple exe works ok when I comment out this function. Maybe you can check with the PySide developers? Thomas |
From: Thomas H. <th...@ct...> - 2014-10-15 18:09:59
|
I will look into that but it might take a few days... Thomas Am 04.10.2014 um 01:23 schrieb William Ferreira: > Goodnight everyone > > I'm trying to compile a simple script that uses PySide[1] into an > executable with py2exe with the following script[2]. Everything works > normal, the generated executable in the "dist" folder along with any > files needed: > > _bz2.pyd > _ctypes.pyd > _hashlib.pyd > _lzma.pyd > _socket.pyd > _ssl.pyd > program.exe > pyexpat.pyd > PySide.QtCore.pyd > PySide.QtGui.pyd > PySide.QtNetwork.pyd > PySide-python3.4.dll > python34.dll > QtCore4.dll > QtGui4.dll > QtNetwork4.dll > select.pyd > shiboken-python3.4.dll > unicodedata.pyd > > > However I would like to generate an executable with .pyd packaged along > with the exe, as is done in DropBox and Ninja IDE. For this it is > necessary to change ** ** bundle_files option for other values, where > two packages the .pyd, the first .pyd and pythonXX.dll or 0 (zero) that > wraps all dll and .pyd. > > Making the change to any of these values py2exe issues a warning that > should have used the option 3. Removing this restriction (method > hook_PySide in hooks.py) rushes the process usually put the runs does > not application issuing the error "zipimport.ZipImportError: can't find > module PySide" > > Examining the executable in 7zip .pyd I noticed that the files were > properly incorporated into the "PySide" folder. > As commented before Dropbox and Ninja IDE, use PyQt and works. > > > Is there anything I can do to solve this problem > ? > > [1] http://pastebin.com/VMGw4Pze > [2] http://pastebin.com/5st6YwAY > > - > William Ferreira > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > |
From: Thomas H. <th...@ct...> - 2014-10-15 17:57:45
|
Sorry for the late reply; I have been traveling and then being sick :-( Am 27.09.2014 um 11:43 schrieb Sommer Detlef: > > Think this does not work. Compile is ok, but when I start the program I get: > > Traceback (most recent call last): > File "boot_service.py", line 180, in <module> > pywintypes.error: (1063, 'StartServiceCtrlDispatcher', 'Der Dienstprozess konnte keine Verbindung mit dem Dienstcontroller herstellen.') > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "boot_service.py", line 182, in <module> > TypeError: 'error' object does not support indexing > > Any ideas ? There is still a bug in the error handling code; this patch should fix it: Index: py2exe/boot_service.py =================================================================== --- py2exe/boot_service.py (revision 758) +++ py2exe/boot_service.py (working copy) @@ -179,7 +179,7 @@ try: servicemanager.StartServiceCtrlDispatcher() except win32service.error as details: - if details[0] == winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: + if details.winerror == winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: win32serviceutil.usage() else: win32serviceutil.HandleCommandLine(k) @@ -192,7 +192,7 @@ try: servicemanager.StartServiceCtrlDispatcher() except win32service.error as details: - if details[0] == winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: + if details.winerror == winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: win32serviceutil.usage() else: # assume/insist that the module provides a HandleCommandLine function. > >> -----Ursprüngliche Nachricht----- >> Von: Thomas Heller [mailto:th...@ct...] >> Gesendet: Freitag, 26. September 2014 20:43 >> An: py2...@li... >> Betreff: Re: [Py2exe-users] py2exe, python 3 and OpenSSL ... >> >> Am 26.09.2014 um 10:15 schrieb Sommer Detlef: >>> >>> Perfect - this look very good. Thank you for the help ! >> >> Thanks for testing. >> >>> One last question - will the python 3 version of py2exe also support >> "cmdline_style='pywin32'" for windows services. >> >> It seems that this simple patch to py2exe/runtime.py will enable this >> support: >> >> @@ -569,13 +570,18 @@ >> optimize=self.options.optimize)) >> >> if target.exe_type == "service": >> + >> + cmdline_style = getattr(target, "cmdline_style", "py2exe") >> + if cmdline_style not in ["py2exe", "pywin32", "custom"]: >> + raise RuntimeError("cmdline_handler invalid") >> + >> # code for services >> # cmdline_style is one of: >> # py2exe >> # pywin32 >> # custom >> code_objects.append( >> - compile("cmdline_style = 'py2exe'; service_module_names >> = %r" % (target.modules,), >> + compile("cmdline_style = %r; service_module_names = %r" >> % (cmdline_style, target.modules,), >> "<service_info>", "exec", >> optimize=self.options.optimize)) >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.cl >> ktrk >> _______________________________________________ >> Py2exe-users mailing list >> Py2...@li... >> https://lists.sourceforge.net/lists/listinfo/py2exe-users > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > |
From: William F. <wil...@gm...> - 2014-10-03 23:23:40
|
Goodnight everyone I'm trying to compile a simple script that uses PySide[1] into an executable with py2exe with the following script[2]. Everything works normal, the generated executable in the "dist" folder along with any files needed: _bz2.pyd _ctypes.pyd _hashlib.pyd _lzma.pyd _socket.pyd _ssl.pyd program.exe pyexpat.pyd PySide.QtCore.pyd PySide.QtGui.pyd PySide.QtNetwork.pyd PySide-python3.4.dll python34.dll QtCore4.dll QtGui4.dll QtNetwork4.dll select.pyd shiboken-python3.4.dll unicodedata.pyd However I would like to generate an executable with .pyd packaged along with the exe, as is done in DropBox and Ninja IDE. For this it is necessary to change ** ** bundle_files option for other values, where two packages the .pyd, the first .pyd and pythonXX.dll or 0 (zero) that wraps all dll and .pyd. Making the change to any of these values py2exe issues a warning that should have used the option 3. Removing this restriction (method hook_PySide in hooks.py) rushes the process usually put the runs does not application issuing the error "zipimport.ZipImportError: can't find module PySide" Examining the executable in 7zip .pyd I noticed that the files were properly incorporated into the "PySide" folder. As commented before Dropbox and Ninja IDE, use PyQt and works. Is there anything I can do to solve this problem ? [1] http://pastebin.com/VMGw4Pze [2] http://pastebin.com/5st6YwAY - William Ferreira |
From: Sommer D. <Det...@ce...> - 2014-09-27 09:43:43
|
Think this does not work. Compile is ok, but when I start the program I get: Traceback (most recent call last): File "boot_service.py", line 180, in <module> pywintypes.error: (1063, 'StartServiceCtrlDispatcher', 'Der Dienstprozess konnte keine Verbindung mit dem Dienstcontroller herstellen.') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "boot_service.py", line 182, in <module> TypeError: 'error' object does not support indexing Any ideas ? > -----Ursprüngliche Nachricht----- > Von: Thomas Heller [mailto:th...@ct...] > Gesendet: Freitag, 26. September 2014 20:43 > An: py2...@li... > Betreff: Re: [Py2exe-users] py2exe, python 3 and OpenSSL ... > > Am 26.09.2014 um 10:15 schrieb Sommer Detlef: > > > > Perfect - this look very good. Thank you for the help ! > > Thanks for testing. > > > One last question - will the python 3 version of py2exe also support > "cmdline_style='pywin32'" for windows services. > > It seems that this simple patch to py2exe/runtime.py will enable this > support: > > @@ -569,13 +570,18 @@ > optimize=self.options.optimize)) > > if target.exe_type == "service": > + > + cmdline_style = getattr(target, "cmdline_style", "py2exe") > + if cmdline_style not in ["py2exe", "pywin32", "custom"]: > + raise RuntimeError("cmdline_handler invalid") > + > # code for services > # cmdline_style is one of: > # py2exe > # pywin32 > # custom > code_objects.append( > - compile("cmdline_style = 'py2exe'; service_module_names > = %r" % (target.modules,), > + compile("cmdline_style = %r; service_module_names = %r" > % (cmdline_style, target.modules,), > "<service_info>", "exec", > optimize=self.options.optimize)) > > > > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.cl > ktrk > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users |
From: Thomas H. <th...@ct...> - 2014-09-26 18:43:34
|
Am 26.09.2014 um 10:15 schrieb Sommer Detlef: > > Perfect - this look very good. Thank you for the help ! Thanks for testing. > One last question - will the python 3 version of py2exe also support "cmdline_style='pywin32'" for windows services. It seems that this simple patch to py2exe/runtime.py will enable this support: @@ -569,13 +570,18 @@ optimize=self.options.optimize)) if target.exe_type == "service": + + cmdline_style = getattr(target, "cmdline_style", "py2exe") + if cmdline_style not in ["py2exe", "pywin32", "custom"]: + raise RuntimeError("cmdline_handler invalid") + # code for services # cmdline_style is one of: # py2exe # pywin32 # custom code_objects.append( - compile("cmdline_style = 'py2exe'; service_module_names = %r" % (target.modules,), + compile("cmdline_style = %r; service_module_names = %r" % (cmdline_style, target.modules,), "<service_info>", "exec", optimize=self.options.optimize)) |
From: Sommer D. <Det...@ce...> - 2014-09-26 08:15:27
|
Perfect - this look very good. Thank you for the help ! One last question - will the python 3 version of py2exe also support "cmdline_style='pywin32'" for windows services. Currently this doesn't work > -----Ursprüngliche Nachricht----- > Von: Thomas Heller [mailto:th...@ct...] > Gesendet: Donnerstag, 25. September 2014 15:22 > An: py2...@li... > Betreff: Re: [Py2exe-users] py2exe, python 3 and OpenSSL ... > > Am 25.09.2014 um 12:48 schrieb Sommer Detlef: > > > > This looks not bad, I can compile and start the .exe -> The only thing I had > to do is to set optimize back to 1 (from 2). > > > > One problem (I think): When I start the .exe it generates 2 files in the same > directory -> lextab.py and yacctab.py > > Both of these problems should be fixed in this new py2exe version: > > https://www.dropbox.com/s/0v4j4gx3a1ff9am/py2exe-0.9.2.2b-py33.py34- > none-any.whl?dl=0 > > Thomas > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.cl > ktrk > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users |
From: Thomas H. <th...@ct...> - 2014-09-25 13:22:22
|
Am 25.09.2014 um 12:48 schrieb Sommer Detlef: > > This looks not bad, I can compile and start the .exe -> The only thing I had to do is to set optimize back to 1 (from 2). > > One problem (I think): When I start the .exe it generates 2 files in the same directory -> lextab.py and yacctab.py Both of these problems should be fixed in this new py2exe version: https://www.dropbox.com/s/0v4j4gx3a1ff9am/py2exe-0.9.2.2b-py33.py34-none-any.whl?dl=0 Thomas |
From: Sommer D. <Det...@ce...> - 2014-09-25 10:48:54
|
This looks not bad, I can compile and start the .exe -> The only thing I had to do is to set optimize back to 1 (from 2). One problem (I think): When I start the .exe it generates 2 files in the same directory -> lextab.py and yacctab.py This is not the case when using the old version. Thanks for your help ! > -----Ursprüngliche Nachricht----- > Von: Thomas Heller [mailto:th...@ct...] > Gesendet: Donnerstag, 25. September 2014 08:35 > An: py2...@li... > Betreff: Re: [Py2exe-users] py2exe, python 3 and OpenSSL ... > > Am 23.09.2014 um 21:04 schrieb Sommer Detlef: > > > > That sounds good. Yes I will try it - so please send me a version and > the steps how to install it . > > Sending mail failed for whatever reasons, so I made the experimental > py2exe version 0.9.2.2a available via dropbox, it is in wheel format: > > https://www.dropbox.com/s/8dtpw7h885tpo6w/py2exe-0.9.2.2a- > py33.py34-none-any.whl?dl=0 > > You should probably uninstall the version you have now: > pip uninstall py2exe > > and install the new one from the wheel: > > pip install > <path_to_downloaded_file>\py2exe_0.9.2.2a-py33.py34.none-any.whl > > I added a special hack for cffi which is needed by cryptography which > is needed by OpenSSL ;-) > > Good luck and please report back if it works for your program. I have > tested it with some example echo ssl-server/ssl-client scripts. > > Thomas > > > > > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.cl > ktrk > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users |