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: Thomas H. <th...@py...> - 2004-07-23 18:59:36
|
**py2exe 0.5.3** released =================================== py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without requiring a python installation. Console and Windows (GUI) applications, windows NT services, exe and dll COM servers are supported. This release fixes a few bugs in the 0.5.2 version: * The windows installer has been fixed to avoid problems when doing non-admin installs. Thanks to Harald A. Massa for testing. * Applied a patch from Mark Hammond to correctly manage the thread state in dll COM servers. * Add a line feed to the script's code, to avoid problems byte-compiling it when it contains trailing white space. * Fix a problem with Python 2.4 when no extension modules are needed - py2exe didn't track down that python24.dll is needed. py2exe 0.5.2 is a bugfix release. * Print a message explaining what's going on whan a service exe is started from the command line. * py2exe did build invalid version resources, they didn't show up correctly on Win98 at least. Patch by Roger Upole. * Fix a buffer overflow in the C code. Patch by Ralf Sieger, closes bug item #893310 * py2exe now (again) has a builtin list of dlls which should never be distributed * Patch sys.winver in the distributed pythonXY.dll, so that there is no possibility of conflicts with existing distributions and the registry keys found there. Patch by Mark Hammond. * Fix several problems when an exception in a 'windows' exe occurs. * Include a workaround for unbounded recursion in modulefinder when Jason Jorendorff's path module is installed See also http://python.org/sf/876278 * Fix problems when package_dir is set in the setup script, see http://tinyurl.com/yuc5l * py2exe can now be built from the sources with mingw32 * py2exe does now handle precompile .pyo and .pyc files (patch by Shane Holloway) * Fix a problem when the exe's directory contains single quotes * Register service dependencies when installing a service * Return an exit code of 255 from the exe when there's an uncatched exception running the main script. * Print a warning instead of failing to build with weird version numbers. Suggested by Cory Dodt. Homepage: <http://starship.python.net/crew/theller/py2exe> Download from the usual location: <http://sourceforge.net/project/showfiles.php?group_id=15583> Enjoy, Thomas |
From: Falco, O. <ori...@th...> - 2004-07-21 16:29:36
|
OK, here's how my setup.py script looks like: =20 =20 =20 =20 from distutils.core import setup import py2exe =20 setup( #This first parameter is not required, its information #builts a resource that is added to the executables. =20 version =3D "1.0", =20 #targets to build console =3D ["StaffSearch.py" , "StaffDirectorySpider.py"], data_files =3D [ (".", ["StaffDirectorySearchHelp.txt", "StaffSearch.rsrc.py", "About - StaffDirectorySpider.txt"])], =20 ) =20 =20 So, I ran this setup and I got the two subdirectories, build and dist. Inside the dist there are two executables that run fine on my pc, but when I copy them to a pc that doesn't have python I get an error saying that I'm missing a bunch of libraries and something like MVSC or the like.....if I copy the lib.zip along with the executables I get the same error......please help! |
From: David F. <da...@sj...> - 2004-07-21 15:09:17
|
Falco, Oriana wrote: > Hi! > > I wrote a program in Python and a GUI in PythonCard and I’m trying to > create two windows standalone executables. I wrote the setup scrip but > when I tried to run the executables in a machine that doesn’t have > Python, I got an error message. Why is this?? Any light on the > subject?? THANKS!!!! > Hi There could be lots of reasons why you have an error message, but its very hard to tell if you don't tell us what the error message is! Please write back to the list with the exact error message and any other info... David PS http://www.catb.org/~esr/faqs/smart-questions.html is a good article on what kind of information to include when asking questions... |
From: Falco, O. <ori...@th...> - 2004-07-21 14:51:49
|
Hi! =20 I wrote a program in Python and a GUI in PythonCard and I'm trying to create two windows standalone executables. I wrote the setup scrip but when I tried to run the executables in a machine that doesn't have Python, I got an error message. Why is this?? Any light on the subject?? THANKS!!!! |
From: Golawala, M. M \(GE Infrastructure\) <Moi...@ge...> - 2004-07-16 17:21:08
|
Type "python setup.py py2exe" at the command prompt not the idle prompt = and read the documentation. Regards,=20 Moiz Golawala=20 Enterprise Solutions=20 GE Infrastructure - Security=20 791 Park Of Commerce Blvd., Boca Raton, FL 33487 *=20 moi...@ge... *=20 561-912-5972 * 561-912-1650 *=20 -----Original Message----- From: py2...@li... = [mailto:py2...@li...]On Behalf Of Jeff Peery Sent: Friday, July 16, 2004 12:21 PM To: py2...@li... Subject: [Py2exe-users] newbie: need help with py2exe, here is what I've = done... Hi, I am having difficulty with py2exe. Here is what I have done: I = simply downloaded the executable (py2exe-0.5.0.win32-py2.3.exe) and = executed it, wrote the setup script (setup.py), and typed on the IDLE = command line: =20 '>>> python setup.py py2exe' =20 I get this message: =20 '>>> python setup.py py2exe SyntaxError: invalid syntax' =20 If I run the setup.py from IDLE by pressing 'F5' I get this message: =20 Traceback (most recent call last): File "C:/Documents and Settings/jeffp/My Documents/Python = Applications/EX Kalculator/setup.py", line 6, in -toplevel- setup(windows =3D ["wxAppEXKalc.py"], name =3D "SeaKalc", version = =3D "1.0") File "C:\Python23\lib\distutils\core.py", line 137, in setup raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 = [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help =20 error: no commands supplied =20 =20 This is setup.py: =20 #setup.py from distutils.core import setup import py2exe =20 setup(windows =3D ["wxAppEXKalc.py"], name =3D "SeaKalc", version = =3D "1.0") =20 I wrote the applications 'wxAppEXKalc.py' using the boa constructor and = wxpython, it has only 1 parent frame and 2 dialogs, it uses Numeric, os, = and re. I read the py2exe documentation although I am still struggling = as I am a newbie. Any help would be much appreciated, thanks!! =20 Jeff =20 |
From: Thomas H. <th...@py...> - 2004-07-16 16:42:08
|
"Jeff Peery" <je...@se...> writes: > Hi, I am having difficulty with py2exe. Here is what I have done: I > simply downloaded the executable (py2exe-0.5.0.win32-py2.3.exe) and > executed it, wrote the setup script (setup.py), and typed on the IDLE > command line: > > '>>> python setup.py py2exe' > > I get this message: > > '>>> python setup.py py2exe > SyntaxError: invalid syntax' > > If I run the setup.py from IDLE by pressing 'F5' I get this message: Please read this: http://starship.python.net/crew/theller/moin.cgi/RunningSetup Thomas |
From: Jeff P. <je...@se...> - 2004-07-16 16:21:21
|
Hi, I am having difficulty with py2exe. Here is what I have done: I simply downloaded the executable (py2exe-0.5.0.win32-py2.3.exe) and executed it, wrote the setup script (setup.py), and typed on the IDLE command line: '>>> python setup.py py2exe' I get this message: '>>> python setup.py py2exe SyntaxError: invalid syntax' If I run the setup.py from IDLE by pressing 'F5' I get this message: Traceback (most recent call last): File "C:/Documents and Settings/jeffp/My Documents/Python Applications/EX Kalculator/setup.py", line 6, in -toplevel- setup(windows = ["wxAppEXKalc.py"], name = "SeaKalc", version = "1.0") File "C:\Python23\lib\distutils\core.py", line 137, in setup raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: no commands supplied This is setup.py: #setup.py from distutils.core import setup import py2exe setup(windows = ["wxAppEXKalc.py"], name = "SeaKalc", version = "1.0") I wrote the applications 'wxAppEXKalc.py' using the boa constructor and wxpython, it has only 1 parent frame and 2 dialogs, it uses Numeric, os, and re. I read the py2exe documentation although I am still struggling as I am a newbie. Any help would be much appreciated, thanks!! Jeff |
From: Thomas H. <th...@py...> - 2004-07-16 10:53:56
|
"Golawala, Moiz M (GE Infrastructure)" <Moi...@ge...> writes: > I noticed that py2exe no longer creates a folder under dist. In > previous versions, there would be py2exe would create a folder for the > project being built and then put all the files for that project in > that folder. > > Is there a reason why that solution was abandoned. Is there a > configuration that I can set to enable that feature? The reason for this behaviour in older versions was that one py2exe-created folder could only contain one executable. Now that a single setup script can create a distribution containing more related executables, it's not needed any more, imo. You can, however, name the folder it creates yourself, see the '--dist-dir' command line option. Thomas |
From: David F. <da...@sj...> - 2004-07-16 08:19:03
|
Thomas Heller wrote: >If you look at the bottom of the page at > ><http://starship.python.net/crew/theller/moin.cgi/TitleIndex> > >you'll see at lot of links that, according to the bottom line in that >page were added by someone or something with an IP address of >210.82.106.156. > >I assume this is link spam. I have seen this in the past several times. > >What I generally do is to remove this stuff, and block the IP address in >the wiki config file moin_config.py. Is this the right thing to do? >Are these links really spam - I don't speak or read japanese, so I >cannot really be sure... > >Thomas > > I think removing and blocking is the right approach. They look very much like advertising spam, and aren't put there in a helpful format. In fact the fact that there are multiple links to the same address (see the first three links) alone indicates that they're spam David |
From: Thomas H. <th...@py...> - 2004-07-16 06:47:41
|
If you look at the bottom of the page at <http://starship.python.net/crew/theller/moin.cgi/TitleIndex> you'll see at lot of links that, according to the bottom line in that page were added by someone or something with an IP address of 210.82.106.156. I assume this is link spam. I have seen this in the past several times. What I generally do is to remove this stuff, and block the IP address in the wiki config file moin_config.py. Is this the right thing to do? Are these links really spam - I don't speak or read japanese, so I cannot really be sure... Thomas |
From: Golawala, M. M \(GE Infrastructure\) <Moi...@ge...> - 2004-07-14 20:02:36
|
thanks for the quick reply, I copied the executable to my local drive = and it installed correctly.=20 I noticed that py2exe no longer creates a folder under dist. In previous = versions, there would be py2exe would create a folder for the project = being built and then put all the files for that project in that folder.=20 Is there a reason why that solution was abandoned. Is there a = configuration that I can set to enable that feature? Thanks Moiz -----Original Message----- From: Thomas Heller [mailto:th...@py...] Sent: Wednesday, July 14, 2004 2:14 PM To: Golawala, Moiz M (GE Infrastructure) Cc: py2...@li... Subject: Re: [Py2exe-users] Problem with Py2exe installation "Golawala, Moiz M (GE Infrastructure)" <Moi...@ge...> writes: > Hi, > > I am trying to install py2exe-0.5.2.win32-py2.3.exe but I seem to have > problems with the installation. I had the same problem with the > earlier version (py2exe-0.5.0). During the post installation setup I > get freopen stder and freopen stdout errors. And the installation > abort abnormally. I have installed and worked with py2exe for > python2.2 and it work great. I somehow have a problem with the > installation for python2.3. I have tried to install it on 2 separate > machines, to rule out problems regarding conflicting software on the > machines. Please can someone help me? This can be caused either when you try to run the exe from a readonly network drive, or when you are trying a non-admin installation. My plan is to release the next version this week which *should* fix both of the problems, if all fails you can still open the exe with winzip, extract the files and copy them manually in place (although this is not recommended). Or grab the zip file, and build yourself (you need a C compiler for that). If you wish I can send you by private email to test if the problems are fixed before the release. Thomas |
From: Thomas H. <th...@py...> - 2004-07-14 18:14:33
|
"Golawala, Moiz M (GE Infrastructure)" <Moi...@ge...> writes: > Hi, > > I am trying to install py2exe-0.5.2.win32-py2.3.exe but I seem to have > problems with the installation. I had the same problem with the > earlier version (py2exe-0.5.0). During the post installation setup I > get freopen stder and freopen stdout errors. And the installation > abort abnormally. I have installed and worked with py2exe for > python2.2 and it work great. I somehow have a problem with the > installation for python2.3. I have tried to install it on 2 separate > machines, to rule out problems regarding conflicting software on the > machines. Please can someone help me? This can be caused either when you try to run the exe from a readonly network drive, or when you are trying a non-admin installation. My plan is to release the next version this week which *should* fix both of the problems, if all fails you can still open the exe with winzip, extract the files and copy them manually in place (although this is not recommended). Or grab the zip file, and build yourself (you need a C compiler for that). If you wish I can send you by private email to test if the problems are fixed before the release. Thomas |
From: Golawala, M. M \(GE Infrastructure\) <Moi...@ge...> - 2004-07-14 16:10:06
|
Hi, I am trying to install py2exe-0.5.2.win32-py2.3.exe but I seem to have = problems with the installation. I had the same problem with the earlier = version (py2exe-0.5.0). During the post installation setup I get = freopen stder and freopen stdout errors. And the installation abort = abnormally. I have installed and worked with py2exe for python2.2 and it = work great. I somehow have a problem with the installation for = python2.3.=20 I have tried to install it on 2 separate machines, to rule out problems = regarding conflicting software on the machines. Please can someone help = me? Thanks Moiz |
From: Werner F. B. <wer...@fr...> - 2004-07-14 11:55:11
|
Sorry again, Just ignore this all, I did one of my regular mistakes. Installed the new version over the old one, cleaning out all the py2exe dir and installing again got it all working. Sorry again for the noice Werner Werner F. Bruhin wrote: > Sorry, should have read just updated from 0.5.0 > See you > Werner > > Werner F. Bruhin wrote: > >> Just upgraded from 0.5.2 and am running into a couple of problems. >> >> Getting "TypeError: iteration over non-sequence" on the following: >> >> data_files = [("prog\\locale\\fr\\LC_MESSAGES", >> ["c:\\dev\\thewinecellarbook\\program\\locale\\fr\\LC_MESSAGES\\twcb.mo"]), >> >> ...some more lines >> ] >> >> Sorry for indentation problem, if needed I can provide full setup.py. >> >> Just FYI: Got errors on the following setup.cfg statements. >> >> version_legalcopyright = Copyright 2003, 2004 by Werner F. Bruhin >> windows=1 >> force_imports = encodings >> >> >> Would appreciate hints/help especially on the first problem, I believe >> the other stuff I should be able to manage. >> >> Thanks and see you >> Werner >> >> >> >> ------------------------------------------------------- >> This SF.Net email sponsored by Black Hat Briefings & Training. >> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital >> self defense, top technical experts, no vendor pitches, unmatched >> networking opportunities. Visit www.blackhat.com > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital > self defense, top technical experts, no vendor pitches, unmatched > networking opportunities. Visit www.blackhat.com |
From: Werner F. B. <wer...@fr...> - 2004-07-14 11:21:36
|
Sorry, should have read just updated from 0.5.0 See you Werner Werner F. Bruhin wrote: > Just upgraded from 0.5.2 and am running into a couple of problems. > > Getting "TypeError: iteration over non-sequence" on the following: > > data_files = [("prog\\locale\\fr\\LC_MESSAGES", > ["c:\\dev\\thewinecellarbook\\program\\locale\\fr\\LC_MESSAGES\\twcb.mo"]), > ...some more lines > ] > > Sorry for indentation problem, if needed I can provide full setup.py. > > Just FYI: Got errors on the following setup.cfg statements. > > version_legalcopyright = Copyright 2003, 2004 by Werner F. Bruhin > windows=1 > force_imports = encodings > > > Would appreciate hints/help especially on the first problem, I believe > the other stuff I should be able to manage. > > Thanks and see you > Werner > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital > self defense, top technical experts, no vendor pitches, unmatched > networking opportunities. Visit www.blackhat.com |
From: Werner F. B. <wer...@fr...> - 2004-07-14 11:12:57
|
Just upgraded from 0.5.2 and am running into a couple of problems. Getting "TypeError: iteration over non-sequence" on the following: data_files = [("prog\\locale\\fr\\LC_MESSAGES", ["c:\\dev\\thewinecellarbook\\program\\locale\\fr\\LC_MESSAGES\\twcb.mo"]), ...some more lines ] Sorry for indentation problem, if needed I can provide full setup.py. Just FYI: Got errors on the following setup.cfg statements. version_legalcopyright = Copyright 2003, 2004 by Werner F. Bruhin windows=1 force_imports = encodings Would appreciate hints/help especially on the first problem, I believe the other stuff I should be able to manage. Thanks and see you Werner |
From: Chris L. <cli...@gm...> - 2004-07-11 17:30:19
|
Jaco Smuts wrote: > Great thanks Thomas > > I will download just now, but out of curiosity: > > * py2exe can now be built from the sources with mingw32 > > does this imply that I can use py2exe to build applications without > having MSVC installed, or only that I can build py2exe using mingw32 ? the later. you dont need a C compiler to use py2exe. chris |
From: Jaco S. <JS...@cl...> - 2004-07-11 15:57:49
|
Great thanks Thomas I will download just now, but out of curiosity: * py2exe can now be built from the sources with mingw32 does this imply that I can use py2exe to build applications without having MSVC installed, or only that I can build py2exe using mingw32 ? thanks jaco Thomas Heller <th...@py...> Sent by: py2...@li... 07/09/2004 09:25 PM To: cc: py2...@li... Subject: [Py2exe-users] py2exe 0.5.2 released The following message is a courtesy copy of an article that has been posted to comp.lang.python.announce,comp.lang.python as well. **py2exe 0.5.2** released ========================= py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without requiring a python installation. Console and Windows (GUI) applications, windows NT services, exe and dll COM servers are supported. This is a bugfix release. * Print a message explaining what's going on whan a service exe is started from the command line. * py2exe did build invalid version resources, they didn't show up correctly on Win98 at least. Patch by Roger Upole. * Fix a buffer overflow in the C code. Patch by Ralf Sieger, closes bug item #893310 * py2exe now (again) has a builtin list of dlls which should never be distributed * Patch sys.winver in the distributed pythonXY.dll, so that there is no possibility of conflicts with existing distributions and the registry keys found there. Patch by Mark Hammond. * Fix several problems when an exception in a 'windows' exe occurs. * Include a workaround for unbounded recursion in modulefinder when Jason Jorendorff's path module is installed See also http://python.org/sf/876278 * Fix problems when package_dir is set in the setup script, see http://tinyurl.com/yuc5l * py2exe can now be built from the sources with mingw32 * py2exe does now handle precompile .pyo and .pyc files (patch by Shane Holloway) * Fix a problem when the exe's directory contains single quotes * Register service dependencies when installing a service * Return an exit code of 255 from the exe when there's an uncatched exception running the main script. * Print a warning instead of failing to build with weird version numbers. Suggested by Cory Dodt. Homepage: <http://starship.python.net/crew/theller/py2exe> Download from the usual location: <http://sourceforge.net/project/showfiles.php?group_id=15583> Enjoy, Thomas ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Py2exe-users mailing list Py2...@li... https://lists.sourceforge.net/lists/listinfo/py2exe-users |
From: David F. <da...@sj...> - 2004-07-09 21:13:09
|
Wow! Have been waiting for this... thanks Thomas! David Thomas Heller wrote: >The following message is a courtesy copy of an article >that has been posted to comp.lang.python.announce,comp.lang.python as well. > > >**py2exe 0.5.2** released >========================= > >py2exe is a Python distutils extension which converts python scripts >into executable windows programs, able to run without requiring a >python installation. Console and Windows (GUI) applications, windows >NT services, exe and dll COM servers are supported. > >This is a bugfix release. > > * Print a message explaining what's going on whan a service > exe is started from the command line. > > * py2exe did build invalid version resources, they didn't show up > correctly on Win98 at least. Patch by Roger Upole. > > * Fix a buffer overflow in the C code. Patch by Ralf Sieger, closes > bug item #893310 > > * py2exe now (again) has a builtin list of dlls which should never be > distributed > > * Patch sys.winver in the distributed pythonXY.dll, so that there is > no possibility of conflicts with existing distributions and the > registry keys found there. Patch by Mark Hammond. > > * Fix several problems when an exception in a 'windows' exe occurs. > > * Include a workaround for unbounded recursion in modulefinder when > Jason Jorendorff's path module is installed > See also http://python.org/sf/876278 > > * Fix problems when package_dir is set in the setup script, > see http://tinyurl.com/yuc5l > > * py2exe can now be built from the sources with mingw32 > > * py2exe does now handle precompile .pyo and .pyc files (patch by > Shane Holloway) > > * Fix a problem when the exe's directory contains single quotes > > * Register service dependencies when installing a service > > * Return an exit code of 255 from the exe when there's an uncatched > exception running the main script. > > * Print a warning instead of failing to build with weird version numbers. > Suggested by Cory Dodt. > >Homepage: > > <http://starship.python.net/crew/theller/py2exe> > >Download from the usual location: > > <http://sourceforge.net/project/showfiles.php?group_id=15583> > >Enjoy, > >Thomas > > |
From: Thomas H. <th...@py...> - 2004-07-09 19:37:35
|
The following message is a courtesy copy of an article that has been posted to comp.lang.python.announce,comp.lang.python as well. **py2exe 0.5.2** released ========================= py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without requiring a python installation. Console and Windows (GUI) applications, windows NT services, exe and dll COM servers are supported. This is a bugfix release. * Print a message explaining what's going on whan a service exe is started from the command line. * py2exe did build invalid version resources, they didn't show up correctly on Win98 at least. Patch by Roger Upole. * Fix a buffer overflow in the C code. Patch by Ralf Sieger, closes bug item #893310 * py2exe now (again) has a builtin list of dlls which should never be distributed * Patch sys.winver in the distributed pythonXY.dll, so that there is no possibility of conflicts with existing distributions and the registry keys found there. Patch by Mark Hammond. * Fix several problems when an exception in a 'windows' exe occurs. * Include a workaround for unbounded recursion in modulefinder when Jason Jorendorff's path module is installed See also http://python.org/sf/876278 * Fix problems when package_dir is set in the setup script, see http://tinyurl.com/yuc5l * py2exe can now be built from the sources with mingw32 * py2exe does now handle precompile .pyo and .pyc files (patch by Shane Holloway) * Fix a problem when the exe's directory contains single quotes * Register service dependencies when installing a service * Return an exit code of 255 from the exe when there's an uncatched exception running the main script. * Print a warning instead of failing to build with weird version numbers. Suggested by Cory Dodt. Homepage: <http://starship.python.net/crew/theller/py2exe> Download from the usual location: <http://sourceforge.net/project/showfiles.php?group_id=15583> Enjoy, Thomas |
From: Thomas H. <th...@py...> - 2004-07-06 16:57:33
|
Jonathan Lange <jm...@mu...> writes: > Hello, > > A module can attempt to delete itself from sys.modules (see selfabuser.py). > > This works perfectly well running in the normal python interpreter on > many platforms. As evidence, Twisted does this in its reactor module. Hm. > One can build a console exe using py2exe 0.5, where this works perfectly. > > However, when you build the same script to a windows exe, it fails. > Moreover, it fails hard. A try/except block around the offending > statement catches nothing. > > I'd greatly appreciate a work-around. However, I'd appreciate an > explanation of why this is failing even more. > > cheers, > jml > from distutils.core import setup > import py2exe > > setup(windows=['crash-py2exe.py']) > This is crash-py2exe.py, I assume? > f = file('debug.txt', 'w') > f.write('Is this the real life?\n') > f.close() > > import selfabuser And this is selfabuser.py? > f = file('debug.txt', 'a') > f.write('Is this just fantasy?\n') > f.close() > > import sys > del sys.modules['selfabuser'] When I run this in normal Python, I get: Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import selfabuser Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: Loaded module selfabuser not found in sys.modules >>> So, it seems a module cannot remove itself from sys.modules - at least not before the import is completed. For py2exe, in 0.5.0 there's a bug in windows executables: to make them work you should add a 'import sys' at the top of your main script. Or use the CVS version until 0.5.1 is released, the bug is fixed there. Thomas |
From: Thomas H. <th...@py...> - 2004-07-06 16:52:33
|
"Shan" <sha...@ho...> writes: > Hi, > > I have been trying to package a trivial PyQt application using py2exe, but I > don't seem to succeed. > The details are below. Would be grateful for any pointers on how I may > accomplish this. > > Regards, > Shan > [...] > Now the dist directory contains the following files: > _sre.pyd > hello1.exe > library.zip > python23.dll > qt-mt331.dll > qt.pyd > w9xpopen.exe > > Now I enter the dist directory and type "hello1.exe". Nothing happens. Then, > a small dialog pops up saying "See the logfile C:\trial\dist\hello1.exe.log > for details" First, when debugging the app or the build process, it may be easier to build a console instead of a windows version first - or build a console plus a windows version at the same time (there are samples which do this). The advantage is that you see tracebacks in the console window instead of having to look them up in the logfile. > hello1.exe.log contains: > Traceback (most recent call last): > File "hello1.py", line 5, in ? > File "qt.pyc", line 9, in ? > File "qt.pyc", line 7, in __load > ImportError: No module named sip > > I then tried to copy > sip.pyd > sipconfig.py > sipconfig.pyc > from the site-packages directory to the dist directory and ran "hello1.exe" > again. I got the same pop-up, and the hello1.exe.log file contained the same > message. The executables take care to _not_ import anything from the file system by accident, so the full pathname of the library.zip file is the only item in sys.path, and so the exe fails in the same way even when you copy these files manually to the dist dir. Note that extension modules cannot be loaded from a zipfile, so py2exe creates small Python loaders which import the extensions from the file system, and these loaders are included in the library.zip. I guess (never have used PyQT) you have to convince py2exe to include these files into the build. You should try '--includes=sip' or something similar. Thomas |
From: Shan <sha...@ho...> - 2004-07-06 09:50:37
|
Hi, I have been trying to package a trivial PyQt application using py2exe, but I don't seem to succeed. The details are below. Would be grateful for any pointers on how I may accomplish this. Regards, Shan setup.py contains: from distutils.core import setup import py2exe setup(windows=["hello1.py"]) hello1.py contains: import sys from qt import * app=QApplication(sys.argv) button=QPushButton("Hello World", None) app.setMainWidget(button) button.show() app.exec_loop() I run "python setup.py py2exe" and get this: running py2exe creating C:\trial\build creating C:\trial\build\bdist.win32 creating C:\trial\build\bdist.win32\winexe creating C:\trial\build\bdist.win32\winexe\collect creating C:\trial\build\bdist.win32\winexe\temp creating C:\trial\dist *** searching for required modules *** *** parsing results *** creating python loader for extension '_sre' creating python loader for extension 'qt' *** finding dlls needed *** *** create binaries *** *** byte compile python files *** byte-compiling F:\Python23\lib\copy_reg.py to copy_reg.pyc byte-compiling F:\Python23\lib\sre_compile.py to sre_compile.pyc byte-compiling C:\trial\build\bdist.win32\winexe\temp\_sre.py to _sre.pyc byte-compiling F:\Python23\lib\macpath.py to macpath.pyc byte-compiling F:\Python23\lib\popen2.py to popen2.pyc byte-compiling F:\Python23\lib\atexit.py to atexit.pyc byte-compiling F:\Python23\lib\os2emxpath.py to os2emxpath.pyc byte-compiling F:\Python23\lib\sre_constants.py to sre_constants.pyc byte-compiling F:\Python23\lib\re.py to re.pyc byte-compiling F:\Python23\lib\ntpath.py to ntpath.pyc byte-compiling F:\Python23\lib\stat.py to stat.pyc byte-compiling F:\Python23\lib\string.py to string.pyc byte-compiling F:\Python23\lib\warnings.py to warnings.pyc byte-compiling F:\Python23\lib\UserDict.py to UserDict.pyc byte-compiling F:\Python23\lib\repr.py to repr.pyc byte-compiling F:\Python23\lib\copy.py to copy.pyc byte-compiling F:\Python23\lib\types.py to types.pyc byte-compiling F:\Python23\lib\posixpath.py to posixpath.pyc byte-compiling C:\trial\build\bdist.win32\winexe\temp\qt.py to qt.pyc byte-compiling F:\Python23\lib\sre.py to sre.pyc byte-compiling F:\Python23\lib\linecache.py to linecache.pyc byte-compiling F:\Python23\lib\sre_parse.py to sre_parse.pyc byte-compiling F:\Python23\lib\os.py to os.pyc *** copy extensions *** copying F:\Python23\DLLs\_sre.pyd -> C:\trial\dist copying F:\Python23\lib\site-packages\qt.pyd -> C:\trial\dist *** copy dlls *** copying C:\WINNT\system32\python23.dll -> C:\trial\dist copying F:\Python23\w9xpopen.exe -> C:\trial\dist copying F:\Qt\3.3.1\bin\qt-mt331.dll -> C:\trial\dist copying F:\Python23\lib\site-packages\py2exe\run_w.exe -> C:\trial\dist\hello1.exe Now the dist directory contains the following files: _sre.pyd hello1.exe library.zip python23.dll qt-mt331.dll qt.pyd w9xpopen.exe Now I enter the dist directory and type "hello1.exe". Nothing happens. Then, a small dialog pops up saying "See the logfile C:\trial\dist\hello1.exe.log for details" hello1.exe.log contains: Traceback (most recent call last): File "hello1.py", line 5, in ? File "qt.pyc", line 9, in ? File "qt.pyc", line 7, in __load ImportError: No module named sip I then tried to copy sip.pyd sipconfig.py sipconfig.pyc from the site-packages directory to the dist directory and ran "hello1.exe" again. I got the same pop-up, and the hello1.exe.log file contained the same message. |
From: David F. <da...@sj...> - 2004-06-29 14:59:17
|
I often use a setup script that is used for normal distributions as well as py2exe distributions I have added the ideas below to the wiki page, others may find it useful or have better ideas :-) http://starship.python.net/crew/theller/moin.cgi/PassingOptionsToPy2Exe 2 Avoid using setup parameters that are py2exe-specific Instead of passing options like console, windows to setup(), you can subclass Distribution and initialize them as follows: from distutils.core import Distribution class MyDistribution(Distribution): def __init__(self, attrs): self.com_server = [] self.services = [] self.windows = [] self.console = ['myapp'] self.zipfile = 'mylibrary.zip' Distribution.__init__(self, attrs) setup(distclass=Distribution) |
From: Jonathan L. <jm...@mu...> - 2004-06-24 23:50:29
|
Hello, A module can attempt to delete itself from sys.modules (see selfabuser.py). This works perfectly well running in the normal python interpreter on many platforms. As evidence, Twisted does this in its reactor module. One can build a console exe using py2exe 0.5, where this works perfectly. However, when you build the same script to a windows exe, it fails. Moreover, it fails hard. A try/except block around the offending statement catches nothing. I'd greatly appreciate a work-around. However, I'd appreciate an explanation of why this is failing even more. cheers, jml |