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: Niki S. <nik...@gm...> - 2015-06-03 12:09:58
|
On 2.06.2015 16:59, le dahut wrote: > Hi. > > Is there a documentation that explains clearly the steps to do to get > Windows 7 display correctly the icons in .exe files ? I make several exe files from single setup. All except first one show icons. I added one dummy exe to work around that. This is with python 2.7 win32. Tested on Win 8.1, built on Win XP. HTH Niki |
From: le d. <le....@la...> - 2015-06-02 13:59:49
|
Hi. Is there a documentation that explains clearly the steps to do to get Windows 7 display correctly the icons in .exe files ? Regards, Klaas Le 06/12/2010 11:48, Timo a écrit : > > On 06-12-10 03:09, He Jibo wrote: >> Hi, >> Could someone help me with embed icon in .exe with py2exe? >> I used py2exe to build my software using PySide and Reportlab. The >> deployed software has icon visible under windows xp, but NOT visible >> in Windows 7. > I had the same problem, but it wasn't related to Py2exe. My icon worked > fine under XP, but not under Vista or 7. The problem was that my icon > wasn't in the correct format for Vista/7. I,- can't give you more > details because I ditched all tools/sites that I used when everything > worked, but you should do a Google search for "Vista icon" or something > like that. If I remember correctly, it had something to do with the > various formats of the icon I packed into the ico-file. > > Cheers, > Timo > > >> I have refered to the following links, but have not found a solution. >> I also put my setup.py file below. Thanks. >> >> http://stackoverflow.com/questions/289668/how-do-i-use-my-icons-when-compiling-my-python-program-with-py2exe >> http://stackoverflow.com/questions/525329/embedding-icon-in-exe-with-py2exe-visible-in-vista >> http://www.py2exe.org/index.cgi/CustomIcons >> >> >> ''' >> http://web.archiveorange.com/archive/v/5H3d11fesgvZXKvrYblh >> ''' >> # Used successfully in Python2.5 with matplotlib 0.91.2 and PyQt4 (and >> Qt 4.3.3) >> from distutils.core import setup >> import py2exe >> #import mechanize >> >> >> # We need to import the glob module to search for all files. >> import glob >> >> # We need to exclude matplotlib backends not being used by this >> executable. You may find >> # that you need different excludes to create a working executable with >> your chosen backend. >> # We also need to include include various numerix libraries that the >> other functions call. >> >> opts = { >> 'py2exe': { "includes" : ["sip"], >> 'excludes': ['_gtkagg', '_tkagg', '_agg2', '_cairo', >> '_cocoaagg', >> '_fltkagg', '_gtk', '_gtkcairo', ], >> 'dll_excludes': ['libgdk-win32-2.0-0.dll', >> 'libgobject-2.0-0.dll'], >> 'packages': ['lxml','pyquery','mechanize','reportlab'], >> >> } >> } >> >> # Save matplotlib-data to mpl-data ( It is located in the >> matplotlib\mpl-data >> # folder and the compiled programs will look for it in \mpl-data >> # note: using matplotlib.get_mpldata_info >> >> >> # for console program use 'console = [{"script" : "scriptname.py"}] >> setup(name="Link Validator 1.2", >> version="1.1", >> description = " Link Validator 1.2", >> >> author="He, Jibo", >> author_email="he...@gm... <mailto:he...@gm...>", >> url="http://goldenclickonline.appspot.com", >> # zipfile = True, >> windows=[{"script" : >> "TopTenRank.py"*,'icon_resources':[(0,"top10ranking.ico")*]}], >> options=opts) >> >> >> >> >> ------------------------------------------------------------------------------ >> What happens now with your Lotus Notes apps - do you make another costly >> upgrade, or settle for being marooned without product support? Time to move >> off Lotus Notes and onto the cloud with Force.com, apps are easier to build, >> use, and manage than apps on traditional platforms. Sign up for the Lotus >> Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d >> >> >> _______________________________________________ >> Py2exe-users mailing list >> Py2...@li... >> https://lists.sourceforge.net/lists/listinfo/py2exe-users > > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > > |
From: Nitish J. <nk...@gm...> - 2015-05-26 19:07:25
|
Hi I get the following warning when i package my python application using py2exe to a single exe (using bundle_files=1) OMP: Warning #178: Function GetModuleHandleEx failed: OMP: System error #126: The specified module could not be found. Is there a way to hide the warning or to fix the issue ?. A similar issue was posted with numpy 1.8.0 where the issue was resolved using numpy 1.8.1rc1. I am already using the latest version of numpy (1.9.2) Platform Info Windows 7 WinPython-32bit-2.7.9.5 Py2exe 0.6.9 any help is greatly appreciated |
From: Mark H. <mha...@sk...> - 2015-05-21 00:41:39
|
On 20/05/2015 3:39 PM, Vadim Polosatov wrote: > Yes, I've checked it. It's probably worth trying to work out what's different between that sample and yours. > py version: 3.4 32bit > py2exe version: 0.9.2.2 FWIW though, I've never tried the newer py2exe with py3k support. Mark. |
From: Vadim P. <v.p...@gm...> - 2015-05-20 05:40:04
|
Yes, I've checked it. On Wed, May 20, 2015 at 8:38 AM, Mark Hammond <ski...@gm...> wrote: > Does the com_server sample that comes with py2exe work? > > Mark > > > On 20/05/2015 2:58 PM, Vadim Polosatov wrote: > >> Good day. >> >> I'm trying to check if I can build python code to standalone com dll >> library to run it in-proc. >> I tried to make a basic example out of this one: >> http://www.py2exe.org/index.cgi/Py2exeAndWin32com, but apparently I was >> unable to generate no dll not exe with this setup script. No warnings in >> console output, it just runs and generates no result. >> I thought it was just me, so I searhed github for "my_com_server_target" >> entry and tried it out on other people's project with same result. Like >> this project here, for instance: https://github.com/acspike/mlc.email >> Fun thing is it works with ctypes_com_server: py2exe generates dll for >> my code when I'm using ctypes_com_server instead of com_server (with its >> own issues though, I think I'll keep it for separate thread). >> >> Can anyone help me with this? Any ideas why it is not working? >> >> py version: 3.4 32bit >> py2exe version: 0.9.2.2 >> Win8.1 x64 >> >> Thanks in advance. >> Vadim. >> >> >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> >> >> >> _______________________________________________ >> Py2exe-users mailing list >> Py2...@li... >> https://lists.sourceforge.net/lists/listinfo/py2exe-users >> >> > |
From: Mark H. <ski...@gm...> - 2015-05-20 05:38:23
|
Does the com_server sample that comes with py2exe work? Mark On 20/05/2015 2:58 PM, Vadim Polosatov wrote: > Good day. > > I'm trying to check if I can build python code to standalone com dll > library to run it in-proc. > I tried to make a basic example out of this one: > http://www.py2exe.org/index.cgi/Py2exeAndWin32com, but apparently I was > unable to generate no dll not exe with this setup script. No warnings in > console output, it just runs and generates no result. > I thought it was just me, so I searhed github for "my_com_server_target" > entry and tried it out on other people's project with same result. Like > this project here, for instance: https://github.com/acspike/mlc.email > Fun thing is it works with ctypes_com_server: py2exe generates dll for > my code when I'm using ctypes_com_server instead of com_server (with its > own issues though, I think I'll keep it for separate thread). > > Can anyone help me with this? Any ideas why it is not working? > > py version: 3.4 32bit > py2exe version: 0.9.2.2 > Win8.1 x64 > > Thanks in advance. > Vadim. > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > > > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > |
From: Vadim P. <v.p...@gm...> - 2015-05-20 04:58:30
|
Good day. I'm trying to check if I can build python code to standalone com dll library to run it in-proc. I tried to make a basic example out of this one: http://www.py2exe.org/index.cgi/Py2exeAndWin32com, but apparently I was unable to generate no dll not exe with this setup script. No warnings in console output, it just runs and generates no result. I thought it was just me, so I searhed github for "my_com_server_target" entry and tried it out on other people's project with same result. Like this project here, for instance: https://github.com/acspike/mlc.email Fun thing is it works with ctypes_com_server: py2exe generates dll for my code when I'm using ctypes_com_server instead of com_server (with its own issues though, I think I'll keep it for separate thread). Can anyone help me with this? Any ideas why it is not working? py version: 3.4 32bit py2exe version: 0.9.2.2 Win8.1 x64 Thanks in advance. Vadim. |
From: ansonc <an...@al...> - 2015-05-19 07:06:43
|
hi,I see the previous post is messed up with html format or exceed the 4k size. Let me make clearer here.I'm working on a router firmware updating tool using tftp protocol. It's a machine to machine connecting directly via a ethernet cable.The PC is configured with static IP and so as the client router is. The problem is when I start the tool directly as python script, it works well and the comunication is all ok.But when I start it after py2exe, the communication is not working.BTW, the environment is WIN7, python2.7.9, py2exe-0.6.9.I put the code base on https://git.oschina.net/manup/XerImageUpdater.git.Please take some time and give some feedback. Many thanks. |
From: ansonc <an...@al...> - 2015-05-17 01:57:19
|
hi,I see the previous post is messed up with html format. Let me make clearer here. I'm working on a router firmware updating tool using tftp protocol. It's a machine to machine connecting directly via a ethernet cable. The PC is configured with static IP and so is the client router. The problem is when I start the tool directly as python script, it works well and the comunication is all ok. But when I start it after py2exe, the communication is not working. BTW, the environment is WIN7, python2.7.9, py2exe-0.6.9. I put the code base on https://git.oschina.net/manup/XerImageUpdater.git. Please take some time and give some feedback. Many thanks. ------------------------------------------------------------------发件人:py2exe-users-request <py2...@li...>发送时间:2015年5月16日(星期六) 14:07收件人:py2exe-users <py2...@li...>主 题:Py2exe-users Digest, Vol 107, Issue 1Send Py2exe-users mailing list submissions to py2...@li...To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/py2exe-usersor, via email, send a message with subject or body 'help' to py2...@li...You can reach the person managing the list at py2...@li...When replying, please edit your Subject line so it is more specificthan "Re: Contents of Py2exe-users digest..."Today's Topics: 1. user compains dist\library\win32com.shell.shell.pyd is caught by webroot anitvirus (Michael Katz) 2. importing from six.moves using from syntax results in maximum recursion depth error (Richard Waite) 3. py2exe 0.9.2.2 "from six.moves.urllib.parse import <something>" causes loop that eventually crashes the interpreter (Richard Waite) 4. py2exe 0.9.2.2 ?maximum recursion depth exceeded? (V?ctor Guzm?n Pedrajas) 5. socket failed to connected after py2exe packed (ansonc)----------------------------------------------------------------------Message: 1Date: Thu, 2 Apr 2015 21:36:44 +0000 (UTC)From: Michael Katz <mic...@ya...>Subject: [Py2exe-users] user compains dist\library\win32com.shell.shell.pyd is caught by webroot anitvirusTo: "py2...@li..." <py2...@li...>Message-ID: <185...@ma...>Content-Type: text/plain; charset="utf-8"My distribution as built by py2exe includes the file?win32com.shell.shell.pyd, which appears to be a py2exe-ification of?C:\Python27\Lib\site-packages\win32comext\shell\shell.pyd (same file contents).Webroot security software is telling a this user that the file is carrying a trojan, and deletes the file, breaking the app.I haven't heard of this problem from any other user, and we have thousands of installs.I imagine that shell.pyd has references to lots of system calls that look potentially dangerous and maybe that's why it's getting flagged?Has anyone else run into this?-------------- next part --------------An HTML attachment was scrubbed...------------------------------Message: 2Date: Sat, 11 Apr 2015 00:33:28 -0400From: Richard Waite <ric...@gm...>Subject: [Py2exe-users] importing from six.moves using from syntax results in maximum recursion depth errorTo: py2...@li...Message-ID: <7E4...@gm...>Content-Type: text/plain; charset=utf-8I ended up finding that some third party modules were doing things like ?from six.moves import range? and this would result in a recursion depth error. Changing to ?import six.moves? and changing the references to accommodate would fix it, but there are so many uses like that it became a nightmare. I kept changing them in one module, retrying, and then finding more that reference it.------------------------------Message: 3Date: Mon, 13 Apr 2015 15:40:53 -0400From: Richard Waite <ric...@gm...>Subject: [Py2exe-users] py2exe 0.9.2.2 "from six.moves.urllib.parse import <something>" causes loop that eventually crashes the interpreterTo: py2...@li...Message-ID: <538...@gm...>Content-Type: text/plain; charset=utf-8I posted something about this problem to the list a few days ago, but I think I have a better idea of what exactly is causing the problem. The basic behavior was when running ?build_exe? on my project I would get a traceback with a ?maximum recursion depth exceeded?.I tracked this down to something related to the six package and ?from? style imports. Originally I believed that all ?from? style imports were causing the error, but through debugging the build process I have found that only when ?from six.moves.subpackage? and ?from six.moves.subpackage.subsubpackage? are causing the error.In particular, in ?google_api_python_client? 1.4.0, in googleapiclient/discovery.py there is a line from six.moves.urllib.parse import urlencode, urlparse, urljoin, urlunparse, parse_sqlIf I step through the build process in a debugger, it looks like it starts to find modules and eventually causes a loop where _find_and_load is originally called with six.moves.urllib.parse and then settles into a loop with six.moves.urllib as the name. The loop seems to ?reoccur" in __getattr__ in hooks.py:288 (which itself is called from mf3.py:300). It calls self.__finder.safe_import_hook which restarts the safe_import_hook->import_hook->_gcd_import->_find_and_load->__getattr__ loop.Some information about my setup: Python 3.4.3 on Windows 8.1, py2exe 0.9.2.2.Finally, it is only my theory that from six.moves.<subpackages> is the root cause. It may still be something specific to six.moves.urllib.parse - that is just the only example I have of the problem occurring.Any help would be appreciated. Thanks.------------------------------Message: 4Date: Fri, 15 May 2015 19:25:50 +0200From: V?ctor Guzm?n Pedrajas <vgz...@gm...>Subject: [Py2exe-users] py2exe 0.9.2.2 ?maximum recursion depth exceeded?To: py2...@li...Message-ID: <CAEtXc2CQmy+DB2aQbqgMkSR_Pup5HMTY_oEwP4cEGwFk=sx...@ma...>Content-Type: text/plain; charset="utf-8"Hello,I have been using py2exe without troubles, but today I received the sameerror that Richard Waite is saying.I am in Windows 8.1 64 bits. It works fine with Python 64 bits, but as Itried using Python 32 bits this started happening.I don't have the package "six" installed (pip list doesn't show six), so Isuppose it's not caused by it alone.I have seen two other users asking in StackOverflow in the last month(without answers):http://stackoverflow.com/questions/29649440/py2exe-runtimeerror-with-tweepyhttp://stackoverflow.com/questions/29982147/python-3-4-py2exe-google-api-clientMy stack trace is: [. . .] return self._find_and_load(name) File "C:\Python34_32b\lib\site-packages\py2exe\mf3.py", line 298, in_find_and_load getattr(parent_module, name.rpartition('.')[2]) File "C:\Python34_32b\lib\site-packages\py2exe\hooks.py", line 291, in__getattr__ self.__finder.safe_import_hook(renamed, caller=self) File "C:\Python34_32b\lib\site-packages\py2exe\mf3.py", line 138, insafe_import_hook self.import_hook(name, caller, fromlist, level) File "C:\Python34_32b\lib\site-packages\py2exe\mf3.py", line 120, inimport_hook module = self._gcd_import(name) File "C:\Python34_32b\lib\site-packages\py2exe\mf3.py", line 274, in_gcd_import return self._find_and_load(name) File "C:\Python34_32b\lib\site-packages\py2exe\mf3.py", line 298, in_find_and_load getattr(parent_module, name.rpartition('.')[2])RuntimeError: maximum recursion depth exceeded while calling a Python objectAny help appreciated.Regards-------------- next part --------------An HTML attachment was scrubbed...------------------------------Message: 5Date: Sat, 16 May 2015 14:06:37 +0800From: "ansonc" <an...@al...>Subject: [Py2exe-users] socket failed to connected after py2exe packedTo: "py2exe-users" <py2...@li...>Message-ID: <672...@al...>Content-Type: text/plain; charset="utf-8"hi,?I'm using python2.7 py2exe-0.6.7 to pack my tftp application which I found the socket not working. And I wrote a testing script of socket to confirm the issue and the result is the socket could not work after pack to exe. The socket script and setup.py is as followed, please see what I missed. Many thanks.#sockexe.pyimport?socketif?__name__?==?'__main__':????import?socket????sock?=?socket.socket(socket.AF_INET,?socket.SOCK_STREAM)????sock.bind(('0.0.0.0',?8001))????sock.listen(5)????while?True:????????connection,address?=?sock.accept()????????try:????????????connection.settimeout(5)????????????buf?=?connection.recv(1024)????????????if?buf:????????????????print?buf????????????????connection.send(buf)????????except?socket.timeout:????????????print?'time?out'????????connection.close()#setup.pyfrom?distutils.core?import?setupimport?py2exesetup(??????console=[{"script":?"exepack.py",?"icon_resources":?[(1,?"v.ico")]?}],???????name='whatever',??????)-------------- next part --------------An HTML attachment was scrubbed...------------------------------------------------------------------------------------------------------------One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applicationsPerformance metrics, stats and reports that give you Actionable InsightsDeep dive visibility with transaction tracing using APM Insight.http://ad.doubleclick.net/ddm/clk/290420510;117567292;y------------------------------_______________________________________________Py2exe-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/py2exe-usersEnd of Py2exe-users Digest, Vol 107, Issue 1******************************************** |
From: ansonc <an...@al...> - 2015-05-16 06:06:59
|
hi, I'm using python2.7 py2exe-0.6.7 to pack my tftp application which I found the socket not working. And I wrote a testing script of socket to confirm the issue and the result is the socket could not work after pack to exe. The socket script and setup.py is as followed, please see what I missed. Many thanks.#sockexe.pyimport socketif __name__ == '__main__': import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('0.0.0.0', 8001)) sock.listen(5) while True: connection,address = sock.accept() try: connection.settimeout(5) buf = connection.recv(1024) if buf: print buf connection.send(buf) except socket.timeout: print 'time out' connection.close()#setup.pyfrom distutils.core import setupimport py2exesetup( console=[{"script": "exepack.py", "icon_resources": [(1, "v.ico")] }], name='whatever', ) |
From: Víctor G. P. <vgz...@gm...> - 2015-05-15 17:25:57
|
Hello, I have been using py2exe without troubles, but today I received the same error that Richard Waite is saying. I am in Windows 8.1 64 bits. It works fine with Python 64 bits, but as I tried using Python 32 bits this started happening. I don't have the package "six" installed (pip list doesn't show six), so I suppose it's not caused by it alone. I have seen two other users asking in StackOverflow in the last month (without answers): http://stackoverflow.com/questions/29649440/py2exe-runtimeerror-with-tweepy http://stackoverflow.com/questions/29982147/python-3-4-py2exe-google-api-client My stack trace is: [. . .] return self._find_and_load(name) File "C:\Python34_32b\lib\site-packages\py2exe\mf3.py", line 298, in _find_and_load getattr(parent_module, name.rpartition('.')[2]) File "C:\Python34_32b\lib\site-packages\py2exe\hooks.py", line 291, in __getattr__ self.__finder.safe_import_hook(renamed, caller=self) File "C:\Python34_32b\lib\site-packages\py2exe\mf3.py", line 138, in safe_import_hook self.import_hook(name, caller, fromlist, level) File "C:\Python34_32b\lib\site-packages\py2exe\mf3.py", line 120, in import_hook module = self._gcd_import(name) File "C:\Python34_32b\lib\site-packages\py2exe\mf3.py", line 274, in _gcd_import return self._find_and_load(name) File "C:\Python34_32b\lib\site-packages\py2exe\mf3.py", line 298, in _find_and_load getattr(parent_module, name.rpartition('.')[2]) RuntimeError: maximum recursion depth exceeded while calling a Python object Any help appreciated. Regards |
From: Richard W. <ric...@gm...> - 2015-04-13 19:41:02
|
I posted something about this problem to the list a few days ago, but I think I have a better idea of what exactly is causing the problem. The basic behavior was when running “build_exe” on my project I would get a traceback with a “maximum recursion depth exceeded”. I tracked this down to something related to the six package and “from” style imports. Originally I believed that all “from” style imports were causing the error, but through debugging the build process I have found that only when “from six.moves.subpackage” and “from six.moves.subpackage.subsubpackage” are causing the error. In particular, in “google_api_python_client” 1.4.0, in googleapiclient/discovery.py there is a line from six.moves.urllib.parse import urlencode, urlparse, urljoin, urlunparse, parse_sql If I step through the build process in a debugger, it looks like it starts to find modules and eventually causes a loop where _find_and_load is originally called with six.moves.urllib.parse and then settles into a loop with six.moves.urllib as the name. The loop seems to “reoccur" in __getattr__ in hooks.py:288 (which itself is called from mf3.py:300). It calls self.__finder.safe_import_hook which restarts the safe_import_hook->import_hook->_gcd_import->_find_and_load->__getattr__ loop. Some information about my setup: Python 3.4.3 on Windows 8.1, py2exe 0.9.2.2. Finally, it is only my theory that from six.moves.<subpackages> is the root cause. It may still be something specific to six.moves.urllib.parse - that is just the only example I have of the problem occurring. Any help would be appreciated. Thanks. |
From: Richard W. <ric...@gm...> - 2015-04-11 04:33:38
|
I ended up finding that some third party modules were doing things like “from six.moves import range” and this would result in a recursion depth error. Changing to “import six.moves” and changing the references to accommodate would fix it, but there are so many uses like that it became a nightmare. I kept changing them in one module, retrying, and then finding more that reference it. |
From: Michael K. <mic...@ya...> - 2015-04-02 21:39:57
|
My distribution as built by py2exe includes the file win32com.shell.shell.pyd, which appears to be a py2exe-ification of C:\Python27\Lib\site-packages\win32comext\shell\shell.pyd (same file contents). Webroot security software is telling a this user that the file is carrying a trojan, and deletes the file, breaking the app. I haven't heard of this problem from any other user, and we have thousands of installs. I imagine that shell.pyd has references to lots of system calls that look potentially dangerous and maybe that's why it's getting flagged? Has anyone else run into this? |
From: <kkr...@gm...> - 2015-03-30 11:56:28
|
# kkmail1.py from os.path import splitext, abspath from sys import modules import win32serviceutil import win32service import win32event import win32api class Service(win32serviceutil.ServiceFramework): _svc_name_ = '_unNamed' _svc_display_name_ = '_Service Template' def __init__(self, *args): win32serviceutil.ServiceFramework.__init__(self, *args) self.log('init') self.stop_event = win32event.CreateEvent(None, 0, 0, None) def log(self, msg): import servicemanager servicemanager.LogInfoMsg(str(msg)) def sleep(self, sec): win32api.Sleep(sec*1000, True) def SvcDoRun(self): self.ReportServiceStatus(win32service.SERVICE_START_PENDING) try: self.ReportServiceStatus(win32service.SERVICE_RUNNING) self.log('start') self.start() self.log('wait') win32event.WaitForSingleObject(self.stop_event, win32event.INFINITE) self.log('done') except(Exception)as x: self.log('Exception : %s' % x) self.SvcStop() def SvcStop(self): self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING) self.log('stopping') self.stop() self.log('stopped') win32event.SetEvent(self.stop_event) self.ReportServiceStatus(win32service.SERVICE_STOPPED) # to be overridden def start(self): self.runflag=True while self.runflag: self.sleep(10) self.log("I'm alive ...") # to be overridden def stop(self): self.runflag=False self.log("I'm done") if __name__ == '__main__': # Note that this code will not be run in the 'frozen' exe-file!!! win32serviceutil.HandleCommandLine(Service) |
From: Emilio J. M. M. <ejm...@gm...> - 2015-03-23 23:52:28
|
Dear py2exe fellow users: I'm new to Python, as well as to py2exe. Nevertheless, I already have a module for which I need to build and distribuite it's own Windows executable file. This is my development environment: - Windows 7 Pro x64 - Python 3.3.4 - py2exe 0.9.2.2 Following documentation, I built the EXE with no problem. My issue is that when I go to the DIST folder and execute the EXE file, I get a program crash, with the following error message: Fatal Python error: Py_Initialize: unable to load the file system codec ImportError: no module named 'encodings'. I already did some research on py2exe's site, and found this interesting page: http://www.py2exe.org/index.cgi/EncodingsAgain?highlight=%28encodings%29 I followed solutions 1 and 2, but the result is the same. I would very much appreciate any help I can get. Best regards to all ============== Emilio Méndez |
From: Werner <wer...@gm...> - 2015-03-17 15:40:49
|
Hi, On 3/14/2015 15:22, Terry Chia wrote: > Hi all, > > I am attempting to package a py2exe app that relies on a third party > dependency that has non .py files. In this case it is a .c/.h file that > gets compiled at build time. > > The .c/.h files is opened by a .py file with the following snippet. > > with open(os.path.join(os.path.dirname(__file__), "src/padding.h")) > as f: > > Everything works fine running Python normally but falls apart upon > py2exe packaging because the .c and .h files goes missing. I found some > documentation[0] that shows how to get arbitrary files packaged under > py2exe but that does not work if the non .py files are in the > dependencies instead of the project being packaged. > > Is there a solution to this? I am open to having changes being made to > the setup.py files of the dependencies if required. > > [0]: http://www.py2exe.org/index.cgi/AddingConfigFiles How are you adding these .h/.c files? It should work if you use the 'data_files' option shown in the link you give, but you might have to make sure the path you use in your code is correct. Werner |
From: Terry C. <ter...@gm...> - 2015-03-14 14:22:28
|
Hi all, I am attempting to package a py2exe app that relies on a third party dependency that has non .py files. In this case it is a .c/.h file that gets compiled at build time. The .c/.h files is opened by a .py file with the following snippet. with open(os.path.join(os.path.dirname(__file__), "src/padding.h")) as f: Everything works fine running Python normally but falls apart upon py2exe packaging because the .c and .h files goes missing. I found some documentation[0] that shows how to get arbitrary files packaged under py2exe but that does not work if the non .py files are in the dependencies instead of the project being packaged. Is there a solution to this? I am open to having changes being made to the setup.py files of the dependencies if required. [0]: http://www.py2exe.org/index.cgi/AddingConfigFiles |
From: Henrik T. <hen...@le...> - 2015-03-12 14:57:17
|
Hi! I'm trying to build a COM server with py2exe, pywin32 and Python 3, but... it's not working. Specifically, if I try to build this old sample (samples\pywin32\com_server), with "py -3 setup.py py2exe", it copies libraries etc. into "dist" but never creates "interp.exe" or "interp.dll": # setup_interp.py # A distutils setup script for the "interp" sample. from distutils.core import setup import py2exe # Don't pull in all this MFC stuff used by the makepy UI. py2exe_options = dict(excludes="pywin,pywin.dialogs,pywin.dialogs.list,win32ui") setup(name="win32com 'interp' sample", com_server=["win32com.servers.interp"], options = dict(py2exe=py2exe_options) ) The Python 2 version, on the other hand, works fine. I'm using py2exe 0.9.2.2 with Python 3.4 and 0.6.9 with Python 2.7. Both installations are 32-bit and use pywin32 version 219. It looks like the parts of py2exe that are supposed to handle COM servers have either been commented out (e.g. those having to do with the "typelibs" option) or removed (boot_com_servers.py), but maybe I'm missing something. How should I go about getting this to work? /Henrik |
From: Loïc d'A. <loi...@gm...> - 2015-03-06 09:59:19
|
My bad, it works great. Thanks ! 2015-03-05 22:12 GMT+01:00 Mark Hammond <.hammond@.com <ski...@gm...>>: > On 6/03/2015 4:00 AM, Loy wrote: > >> Thanks for you answer, but as I know, win32serviceutil is not >> implemented||yet for|python3.4 (and you can suppose that I can't use >> python 2.7 ...) >> > > win32serviceutil works fine on 3.4: > > Python 3.4.0+ (default, May 3 2014, 16:51:54) [MSC v.1600 64 bit (AMD64)] > on win32 > Type "help", "copyright", "credits" or "license" for more information. > >> import win32serviceutil >>>> dir(win32serviceutil) >>>> >>> ['ChangeServiceConfig', 'ControlService', 'DebugService', > 'GetServiceClassString', 'GetServiceCustom > Option', 'HandleCommandLine', 'InstallPerfmonForService', > 'InstallPythonClassString', 'InstallServic > e', 'LocatePythonServiceExe', 'LocateSpecificServiceExe', > 'QueryServiceStatus', 'RemoveService', 'Re > startService', 'ServiceFramework', 'SetServiceCustomOption', > 'SmartOpenService', 'StartService', 'St > opService', 'StopServiceWithDeps', 'WaitForServiceStatus', > '_DebugCtrlHandler', '_GetCommandLine', ' > _GetServiceShortName', '__FindSvcDeps', '__ResolveDeps', > '__StopServiceWithTimeout', '__builtins__', > '__cached__', '__doc__', '__file__', '__loader__', '__name__', > '__package__', '__spec__', 'error', > 'os', 'pywintypes', 'sys', 'usage', 'warnings', 'win32api', 'win32con', > 'win32service', 'winerror'] > >> >>>> > Mark > > >> | >> |So, can I use py2exe without this module and generate >> service-compatible executable file ? >> | >> >> 2015-03-05 17:01 GMT+01:00 Daniel Casper <dan...@. >> <mailto:dan...@gm...>>: >> >> >> Loy, >> >> There's a post over here on StackOverflow about creating a win32 >> Service with python - >> http://stackoverflow.com/questions/263296/creating-a- >> python-win32-service. >> That should get you close. I've also included a sample template I >> use for my setup.py for creating a Service. Let me know if it helps >> or you have questions. >> >> --Dan >> >> On Thu, Mar 5, 2015 at 7:46 AM, Loywrote: >> >> Hello, >> >> Is there any way to create a windows service using python 3.4 >> with py2exe ? >> >> Thanks, >> Loy. >> >> ------------------------------------------------------------ >> ------------------ >> Dive into the World of Parallel Programming The Go Parallel >> Website, sponsored >> by Intel and developed in partnership with Slashdot Media, is >> your hub for all >> things parallel software development, from weekly thought >> leadership blogs to >> news, videos, case studies, tutorials and more. Take a look and >> join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Py2exe-users mailing list >> Py2...@li... >> <mailto:Py2...@li...> >> https://lists.sourceforge.net/lists/listinfo/py2exe-users >> >> >> >> >> >> ------------------------------------------------------------ >> ------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> >> >> >> _______________________________________________ >> Py2exe-users mailing list >> Py2...@li... >> https://lists.sourceforge.net/lists/listinfo/py2exe-users >> >> > |
From: Mark H. <ski...@gm...> - 2015-03-05 21:13:08
|
On 6/03/2015 4:00 AM, Loïc d'Aquitaine wrote: > Thanks for you answer, but as I know, win32serviceutil is not > implemented||yet for|python3.4 (and you can suppose that I can't use > python 2.7 ...) win32serviceutil works fine on 3.4: Python 3.4.0+ (default, May 3 2014, 16:51:54) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import win32serviceutil >>> dir(win32serviceutil) ['ChangeServiceConfig', 'ControlService', 'DebugService', 'GetServiceClassString', 'GetServiceCustom Option', 'HandleCommandLine', 'InstallPerfmonForService', 'InstallPythonClassString', 'InstallServic e', 'LocatePythonServiceExe', 'LocateSpecificServiceExe', 'QueryServiceStatus', 'RemoveService', 'Re startService', 'ServiceFramework', 'SetServiceCustomOption', 'SmartOpenService', 'StartService', 'St opService', 'StopServiceWithDeps', 'WaitForServiceStatus', '_DebugCtrlHandler', '_GetCommandLine', ' _GetServiceShortName', '__FindSvcDeps', '__ResolveDeps', '__StopServiceWithTimeout', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'error', 'os', 'pywintypes', 'sys', 'usage', 'warnings', 'win32api', 'win32con', 'win32service', 'winerror'] >>> Mark > > | > |So, can I use py2exe without this module and generate > service-compatible executable file ? > | > > 2015-03-05 17:01 GMT+01:00 Daniel Casper <dan...@. > <mailto:dan...@gm...>>: > > Loy, > > There's a post over here on StackOverflow about creating a win32 > Service with python - > http://stackoverflow.com/questions/263296/creating-a-python-win32-service. > That should get you close. I've also included a sample template I > use for my setup.py for creating a Service. Let me know if it helps > or you have questions. > > --Dan > > On Thu, Mar 5, 2015 at 7:46 AM, Loywrote: > > Hello, > > Is there any way to create a windows service using python 3.4 > with py2exe ? > > Thanks, > Loy. > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel > Website, sponsored > by Intel and developed in partnership with Slashdot Media, is > your hub for all > things parallel software development, from weekly thought > leadership blogs to > news, videos, case studies, tutorials and more. Take a look and > join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > <mailto:Py2...@li...> > https://lists.sourceforge.net/lists/listinfo/py2exe-users > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > |
From: Loïc d'A. <loi...@gm...> - 2015-03-05 20:20:19
|
It works ! On my own PC, but it works. I've been read that serviceUtils cannot be used with python 3.4. Many thanks =) 2015-03-05 18:00 GMT+01:00 Loy <>: > Thanks for you answer, but as I know, win32serviceutil is not implemented yet > for python3.4 (and you can suppose that I can't use python 2.7 ...) > > So, can I use py2exe without this module and generate service-compatible > executable file ? > > 2015-03-05 17:01 GMT+01:00 Daniel Casper <dan...@. <dan...@gm...>>: > >> Loy, >> >> There's a post over here on StackOverflow about creating a win32 Service >> with python - >> http://stackoverflow.com/questions/263296/creating-a-python-win32-service. >> That should get you close. I've also included a sample template I use for >> my setup.py for creating a Service. Let me know if it helps or you have >> questions. >> >> --Dan >> >> On Thu, Mar 5, 2015 at 7:46 AM, Loy wrote: >> >>> Hello, >>> >>> Is there any way to create a windows service using python 3.4 with >>> py2exe ? >>> >>> Thanks, >>> Loy. >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming The Go Parallel Website, >>> sponsored >>> by Intel and developed in partnership with Slashdot Media, is your hub >>> for all >>> things parallel software development, from weekly thought leadership >>> blogs to >>> news, videos, case studies, tutorials and more. Take a look and join the >>> conversation now. http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Py2exe-users mailing list >>> Py2...@li... >>> https://lists.sourceforge.net/lists/listinfo/py2exe-users >>> >>> >> > |
From: Loïc d'A. <loi...@gm...> - 2015-03-05 17:00:20
|
Thanks for you answer, but as I know, win32serviceutil is not implemented yet for python3.4 (and you can suppose that I can't use python 2.7 ...) So, can I use py2exe without this module and generate service-compatible executable file ? 2015-03-05 17:01 GMT+01:00 Daniel Casper <dan...@. <dan...@gm...>>: > Loy, > > There's a post over here on StackOverflow about creating a win32 Service > with python - > http://stackoverflow.com/questions/263296/creating-a-python-win32-service. > That should get you close. I've also included a sample template I use for > my setup.py for creating a Service. Let me know if it helps or you have > questions. > > --Dan > > On Thu, Mar 5, 2015 at 7:46 AM, Loy wrote: > >> Hello, >> >> Is there any way to create a windows service using python 3.4 with py2exe >> ? >> >> Thanks, >> Loy. >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Py2exe-users mailing list >> Py2...@li... >> https://lists.sourceforge.net/lists/listinfo/py2exe-users >> >> > |
From: Daniel C. <dan...@gm...> - 2015-03-05 16:02:08
|
Loy, There's a post over here on StackOverflow about creating a win32 Service with python - http://stackoverflow.com/questions/263296/creating-a-python-win32-service. That should get you close. I've also included a sample template I use for my setup.py for creating a Service. Let me know if it helps or you have questions. --Dan On Thu, Mar 5, 2015 at 7:46 AM, Loïc d'Aquitaine <loi...@gm...> wrote: > Hello, > > Is there any way to create a windows service using python 3.4 with py2exe > ? > > Thanks, > Loy. > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > > |
From: Loïc d'A. <loi...@gm...> - 2015-03-05 14:46:10
|
Hello, Is there any way to create a windows service using python 3.4 with py2exe ? Thanks, Loy. |