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: David F. <da...@sj...> - 2004-06-24 09:03:08
|
Hi We are trying to debug a problem with services created using py2exe. It seems that these problems have arisen after services were installed and removed a few times. OK, first the actual problem we're seeing. After compiling a service with py2exe, running "service -install" and attempting to start it from the Services dialog, it pops up the message "Windows could not start the Service on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1.". The only thing in the System Event Log is an error logged by Service Control Manager saying the service terminated with service-specific error 1. Now, the causes. On all the computers we've seen this problem, the service has been installed at least once before and has been able to start/stop properly. On two of the computers, the problem arose after uninstalling the service, installing it with "python service.py service --install", running it with pythonservice in debug mode, uninstalling it with "python service.py service --remove", and then reinstalling from the executable. Since then, the only way it ill run is from pythonservice in debug mode. On the third computer, the service was installed from executable, and then reinstalled from an updated executable. I'm not sure how many times the old executable was installed and uninstalled (at most three times), but the updated executable only ran once, and then showed the error. One thing I noticed about the first computer is that, even after uninstalling everything, there were some registry entries to do with the installed services. I could not delete these entries - I got an access denied error (details below) Does anybody have any ideas? TIA, David Fraser Registry details: The service is called jHistExportService The important remnant seems to be: HKLM\SYSTEM\ControlSet002\Services\jHistExportService and children which actually holds details of how to run the service. For the record, the other remnants are: HKLM\SYSTEM\ControlSet001\Enum\Root\LEGACY_JHISTEXPORTSERVICE and children HKLM\SYSTEM\ControlSet001\Services\EventLog\Application\jHistExportService and children HKLM\SYSTEM\ControlSet002\Services\EventLog\Application\jHistExportService and children HKLM\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_JHISTEXPORTSERVICE HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\jHistExportService |
From: Thomas H. <th...@py...> - 2004-06-18 11:24:12
|
"Bruno Santos" <bms...@gm...> writes: > Hi Tacao, > > Thanks for your prompt answer, but unfortunatly is still not working. > All the glob does is to easy the copy of ".py" or ".pyc" files into the > subdirectory "pool". > > It fails when I try to import a .py file stored in the "pool" module directory. > > try: > myModule = __import__("pool.classnode", globals(), locals(), ["getNodeInfo"]) > except ImportError, aError: > print aError > > So, I get a error message of : "No module named pool.classnode" > > This makes me beleive that it is something related in the way that py2exe stores > the module information. Therefore I'm still stucked with the same problem. I think it is because the *only* entry in sys.path is the library.zip file. See <http://starship.python.net/crew/theller/moin.cgi/Py2exeEnvironment> You should probably in your script check for the sys.frozen attribute, and extend sys.path yourself. Thomas |
From: Bruno S. <bms...@gm...> - 2004-06-18 10:27:16
|
Hi Tacao, Thanks for your prompt answer, but unfortunatly is still not working. All the glob does is to easy the copy of ".py" or ".pyc" files into the subdirectory "pool". It fails when I try to import a .py file stored in the "pool" module dire= ctory. try: myModule =3D __import__("pool.classnode", globals(), locals(= ), ["getNodeInfo"]) except ImportError, aError: print aError So, I get a error message of : "No module named pool.classnode" This makes me beleive that it is something related in the way that py2exe= stores the module information. Therefore I'm still stucked with the same problem. The current setup.py look like this: # setup.py from distutils.core import setup import py2exe import glob includes =3D ["pool"] setup( version =3D "0.3.5", description =3D "Struct-A-File - Binary File Formatter", name =3D "Struct-A-File", author=3D"Bruno Santos ", author_email=3D"bm...@gm...", # targets to build console =3D ["beefBuilder.py"], scripts =3D ["Node.py", "DataNode.py", "datanodegui.py", "gui.py" ], data_files=3D[("images", ["images/BeefBuilder.ico", "images/add-arrow.bmp", "images/add-node.bmp", "images/subtract.bmp", "images/struct-a-file.gif", "images/export.bmp", "images/new.bmp", "images/open.bmp", "images/save.bmp"]), ("pool", glob.glob("pool/*.py")) ], ) Any further help will be appreciated. Regards, Para ti Tacao penso que posso dizer Muito Obrigado, visto tu pareces ser = Brasileiro e eu Portugues. :) Um abra=E7o. On Fri, 18 Jun 2004 06:42:41 -0300, E. A. Tacao <e.a...@te...> = wrote: > In Friday, June 18, 2004, 6:13:29 AM, Bruno wrote: > > BS> Hi all, > > BS> I've developped a small application in Python and, I'm trying to us= e > BS> py2exe to convert it into an executable. > > BS> My application has a root directory where the main script is along = with > BS> a few others. Then, when executed it loads all the ".py" or ".pyc" > BS> files stored in module "pool" from the root directory. The idea is = that > BS> later on, other users can extend future files that will be used by = the > BS> main application stored in the root directory. > > BS> When converted into an executable, somehow I'm no longer able to lo= ad > BS> the .py files from module pool. I've tryed several ways, but with n= o > BS> success. > > BS> Here is my setup.py configuration: > > BS> # setup.py > BS> from distutils.core import setup > BS> import py2exe > > BS> setup( > BS> version =3D "0.3.5", > BS> author=3D"Bruno Santos ", > BS> author_email=3D"bm...@gm...", > > BS> # targets to build > BS> console =3D ["beefBuilder.py"], > > BS> scripts =3D ["Node.py", > BS> "DataNode.py", > BS> "datanodegui.py", > BS> "gui.py" ], > > BS> data_files=3D[("images", ["images/BeefBuilder.ico", > BS> "images/add-arrow.bmp", > BS> "images/add-node.bmp", > BS> "images/subtract.bmp", > BS> "images/struct-a-file.gif", > BS> "images/export.bmp", > BS> "images/new.bmp", > BS> "images/open.bmp", > BS> "images/save.bmp", > BS> "pool/classnode.py", > BS> "pool/switchnode.py"]) ], > BS> ) > > > BS> Any idea why? > BS> Regards, > > I once needed this and I used glob to do the trick (via py2exe 0.4; I > can't precise if that's still valid for the current version). > Importing glob and changing your data_files to look something like > this may help: > > # file setup.py > [...] > import glob > [...] > data_files=3D[("images", > ["images/BeefBuilder.ico", > "images/add-arrow.bmp", > "images/add-node.bmp", > "images/subtract.bmp", > "images/struct-a-file.gif", > "images/export.bmp", > "images/new.bmp", > "images/open.bmp", > "images/save.bmp"]), > ("pool", glob.glob("pool/*.py*"))] > [...] > > > > -- tacao > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKN= D > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > > --=20 Bruno Santos mailto:bms...@gm... "Treat people as they ought to be, and you will help them become what they are capable of being." - Goethe Grupo GMV SA. --------------------------------------------------------------------- Isaac Newton, 11 - PTM - Tres Cantos - 28760 Madrid --------------------------------------------------------------------- Phone: 91-8072100 Ext:3362 Fax: 91-8072199 --------------------------------------------------------------------- http://www.gmv.com http://www.gmv.es http://www.gmvsistemas.com http://www.sgi.es --------------------------------------------------------------------- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. |
From: E. A. T. <e.a...@te...> - 2004-06-18 09:35:47
|
In Friday, June 18, 2004, 6:13:29 AM, Bruno wrote: BS> Hi all, BS> I've developped a small application in Python and, I'm trying to use BS> py2exe to convert it into an executable. BS> My application has a root directory where the main script is along with BS> a few others. Then, when executed it loads all the ".py" or ".pyc" BS> files stored in module "pool" from the root directory. The idea is that BS> later on, other users can extend future files that will be used by the BS> main application stored in the root directory. BS> When converted into an executable, somehow I'm no longer able to load BS> the .py files from module pool. I've tryed several ways, but with no BS> success. BS> Here is my setup.py configuration: BS> # setup.py BS> from distutils.core import setup BS> import py2exe BS> setup( BS> version = "0.3.5", BS> author="Bruno Santos ", BS> author_email="bm...@gm...", BS> # targets to build BS> console = ["beefBuilder.py"], BS> scripts = ["Node.py", BS> "DataNode.py", BS> "datanodegui.py", BS> "gui.py" ], BS> data_files=[("images", ["images/BeefBuilder.ico", BS> "images/add-arrow.bmp", BS> "images/add-node.bmp", BS> "images/subtract.bmp", BS> "images/struct-a-file.gif", BS> "images/export.bmp", BS> "images/new.bmp", BS> "images/open.bmp", BS> "images/save.bmp", BS> "pool/classnode.py", BS> "pool/switchnode.py"]) ], BS> ) BS> Any idea why? BS> Regards, I once needed this and I used glob to do the trick (via py2exe 0.4; I can't precise if that's still valid for the current version). Importing glob and changing your data_files to look something like this may help: # file setup.py [...] import glob [...] data_files=[("images", ["images/BeefBuilder.ico", "images/add-arrow.bmp", "images/add-node.bmp", "images/subtract.bmp", "images/struct-a-file.gif", "images/export.bmp", "images/new.bmp", "images/open.bmp", "images/save.bmp"]), ("pool", glob.glob("pool/*.py*"))] [...] -- tacao |
From: Bruno S. <bms...@gm...> - 2004-06-18 09:15:44
|
Hi all, I've developped a small application in Python and, I'm trying to use py2exe to convert it into an executable. My application has a root directory where the main script is along with a few others. Then, when executed it loads all the ".py" or ".pyc" files stored in module "pool" from the root directory. The idea is that later on, other users can extend future files that will be used by the main application stored in the root directory. When converted into an executable, somehow I'm no longer able to load the .py files from module pool. I've tryed several ways, but with no success. Here is my setup.py configuration: # setup.py from distutils.core import setup import py2exe setup( version = "0.3.5", author="Bruno Santos ", author_email="bm...@gm...", # targets to build console = ["beefBuilder.py"], scripts = ["Node.py", "DataNode.py", "datanodegui.py", "gui.py" ], data_files=[("images", ["images/BeefBuilder.ico", "images/add-arrow.bmp", "images/add-node.bmp", "images/subtract.bmp", "images/struct-a-file.gif", "images/export.bmp", "images/new.bmp", "images/open.bmp", "images/save.bmp", "pool/classnode.py", "pool/switchnode.py"]) ], ) Any idea why? Regards, -- Bruno Santos mailto:bms...@gm... "Treat people as they ought to be, and you will help them become what they are capable of being." - Goethe Grupo GMV SA. --------------------------------------------------------------------- Isaac Newton, 11 - PTM - Tres Cantos - 28760 Madrid --------------------------------------------------------------------- Phone: 91-8072100 Ext:3362 Fax: 91-8072199 --------------------------------------------------------------------- http://www.gmv.com http://www.gmv.es http://www.gmvsistemas.com http://www.sgi.es --------------------------------------------------------------------- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. |
From: David F. <da...@sj...> - 2004-06-17 08:45:35
|
Denis Barmenkov wrote: >Hello, > >as far I know, Python source are easy recoverable from bytecode (*.pyc) >files, so you can send *.py ;-) > > If you're distributing proprietary software, then the fact that the source code is recoverable is not neccessarily the only important fact. License agreements can include agreeing not to recompile / reverse engineer the code, even if its an easy thing to do. Regards David |
From: Denis B. <bar...@bp...> - 2004-06-17 08:26:30
|
Hello, as far I know, Python source are easy recoverable from bytecode (*.pyc) files, so you can send *.py ;-) I suppose, for more detailed diagnostic you can use python profiler (profile module) or logging module (for timestamping function calling). Regards, Denis Barmenkov Date: Wed, 16 Jun 2004 08:25:45 +0200 From: "POYEN OP Olivier (DCL)" <Oli...@cl...> To: <py2...@li...> Subject: [Py2exe-users] Startupt time: .exe slower than .py Hi all, just subscribe to py2exe ml. python 2.3 py2exe 0.5.0 wxpython 2.4.2.4 Pentium 4, 512 Mb RAM/3.2 Ghz - Win 2K SP3 This may be a known issue (/feature) or perhaps this is totally = understandable once you know py2exe internals, but I have different = startup time between script and its .exe I saw that between a script launched in command line=20 python myscript.py and an executable from the same file made with py2exe ./myscript.exe the .exe is noticably slower to launch than the script The script is a wxpython software and after initialisation and creation = of the gui, I start the initialization of a cache system, which output = debug stuff. The whole system is also connecting to another propriatery system to = fecth data.=20 But anyway, those connections should "spend" the same time wheter they = came from script or from .exe And clearly, my debug output are far more slower to be printed in the = .exe stuff than in the script version. To give you borring details, both files, (sources, executables, = images,..) are on the networks, not on the local HD.=20 I really don't know why, but, like always, the only things I can deliver = are .exe and not .py files.=20 So, I have to stay with .exe. I tweak my script a lot, and it's startup time is reasonably low, but = the startup time of the .exe is like 4 or 5 times longer.=20 Is this a known issue, or the consequence of the whole py2exe system, = and then I can't do anything about it ?=20 Or does it came from the fact that I have to read from a big librairie = .zip file (2 MO. not so huge), in order to load primary modules, which = turns to be slow. Is there anything I can do about it ?=20 Or is there any debug options I can turn on to know more about what = happens ? Thanks for any comments/help/stuff..... And by the way, did I really need to say that I enjoy using py2exe, that = without it I would be obliged to use VB or VisualC++, or worse to stop = using python.=20 Thanks for giving my job some hapy(thon)ness ! ---OPQ Long signature following --__--__-- _______________________________________________ Py2exe-users mailing list Py2...@li... https://lists.sourceforge.net/lists/listinfo/py2exe-users End of Py2exe-users Digest |
From: POYEN OP O. (DCL) <Oli...@cl...> - 2004-06-16 06:25:53
|
Hi all, just subscribe to py2exe ml. python 2.3 py2exe 0.5.0 wxpython 2.4.2.4 Pentium 4, 512 Mb RAM/3.2 Ghz - Win 2K SP3 This may be a known issue (/feature) or perhaps this is totally = understandable once you know py2exe internals, but I have different = startup time between script and its .exe I saw that between a script launched in command line=20 python myscript.py and an executable from the same file made with py2exe ./myscript.exe the .exe is noticably slower to launch than the script The script is a wxpython software and after initialisation and creation = of the gui, I start the initialization of a cache system, which output = debug stuff. The whole system is also connecting to another propriatery system to = fecth data.=20 But anyway, those connections should "spend" the same time wheter they = came from script or from .exe And clearly, my debug output are far more slower to be printed in the = .exe stuff than in the script version. To give you borring details, both files, (sources, executables, = images,..) are on the networks, not on the local HD.=20 I really don't know why, but, like always, the only things I can deliver = are .exe and not .py files.=20 So, I have to stay with .exe. I tweak my script a lot, and it's startup time is reasonably low, but = the startup time of the .exe is like 4 or 5 times longer.=20 Is this a known issue, or the consequence of the whole py2exe system, = and then I can't do anything about it ?=20 Or does it came from the fact that I have to read from a big librairie = .zip file (2 MO. not so huge), in order to load primary modules, which = turns to be slow. Is there anything I can do about it ?=20 Or is there any debug options I can turn on to know more about what = happens ? Thanks for any comments/help/stuff..... And by the way, did I really need to say that I enjoy using py2exe, that = without it I would be obliged to use VB or VisualC++, or worse to stop = using python.=20 Thanks for giving my job some hapy(thon)ness ! ---OPQ Long signature following |
From: Thomas H. <th...@py...> - 2004-06-15 12:01:15
|
R.R...@ve... writes: > Hello > > if have a function which converts uft-16 to latin-1 > > import codecs > > def Uni2Latin(datei): > try: > inFile = codecs.open(datei, 'r', encoding="utf-16") > outFile = codecs.open(datei+'.txt', 'w', encoding="Latin-1") > lines = inFile.readlines() > outFile.writelines(lines) > inFile.close() > outFile.close() > return True > except: > return False > > This works fine, but if I use this func. in a program made by py2exe > this functions is not able to open a utf-16 files. > > Any advice would be appreciated Unqualified except's are bad, since they hide the error from you. If you change the code above into ... except: import traceback traceback.print_exc() ... than you would have seen the traceback when running the exe: Traceback (most recent call last): File "hello.py", line 17, in Uni2Latin File "codecs.pyc", line 569, in open LookupError: unknown encoding: utf-16 This at least gives a hint: the encodings are not included. They are imported dynamically, so you must help py2exe, either this way, to include all encodings: python setup.py py2exe -p encodings or in this way, to only include the utf-16 and Latin-1 encodings: python setup.py py2exe -i encodings.utf_16,encodings.latin_1 If you prefer to avoid the command line options (which is recommended), in your setup script you can write: setup(... options = {'py2exe': {'packages': 'encodings'}}, ...) or setup(... options = {'py2exe': {'includes': ['encodings.utf_16', 'encodings.latin_1']}}, ...) Thomas |
From: David F. <da...@sj...> - 2004-06-15 11:54:09
|
R.R...@ve... wrote: >Hello > >if have a function which converts uft-16 to latin-1 > > >import codecs > >def Uni2Latin(datei): > try: > inFile = codecs.open(datei, 'r', encoding="utf-16") > outFile = codecs.open(datei+'.txt', 'w', encoding="Latin-1") > lines = inFile.readlines() > outFile.writelines(lines) > inFile.close() > outFile.close() > return True > except: > return False > >This works fine, but if I use this func. in a program made by py2exe this functions is not able to open a utf-16 files. > >Any advice would be appreciated > >Thanks > >richard rossbach > > Try and include "encodings" in the list of packages you give to py2exe (-p encodings on the command line or in the options dictionary). Then it should work David |
From: <R.R...@ve...> - 2004-06-15 11:28:29
|
Hello if have a function which converts uft-16 to latin-1 import codecs def Uni2Latin(datei): try: inFile = codecs.open(datei, 'r', encoding="utf-16") outFile = codecs.open(datei+'.txt', 'w', encoding="Latin-1") lines = inFile.readlines() outFile.writelines(lines) inFile.close() outFile.close() return True except: return False This works fine, but if I use this func. in a program made by py2exe this functions is not able to open a utf-16 files. Any advice would be appreciated Thanks richard rossbach |
From: Thomas H. <th...@py...> - 2004-06-09 07:44:26
|
Weißmann Philipp <Phi...@br...> writes: > I for one would really need this functionality of stuffing all files > into one executable. It is too compilated to handle two files, > eventually only the exe file will be copied. > > I know thats not that efford to copy two files instead of one - but i > know that sooner or later some scripts will be broken because of the > zip file missing at the end users system. This request comes up from time to time - I know it would be nice but I don't have any use for it. My applications are installed by installers like wise or inno setup. There are third party tools which promise to do this - although I haven't tried them (one is named pebundle). And if someone creates a patch ;-) Thomas |
From: <Phi...@br...> - 2004-06-09 07:38:14
|
>TH> If winzip is installed, right clicking an exe-file which contains >TH> a zip-archive in explorer automatically gets 'Extract to ...' and >TH> 'Run with Winzip' menu entries, and doing a drag-drop operation >TH> with the right mouse button also, in addition to the usual 'Create >TH> Shortcut' entry. > >Not to mention that XP has a feature that shows zip files as >directories. > >TH> If you want to obscure the zip-archive imo the best way is to >TH> specify a filename with a different extension, say >TH> 'zipfile=3Dshared.dll' for example. At least this will avoid the >TH> winzip 'problem'. > >Yes. I'll try this. > >>> If I may suggest, I think there should be a way to select between >>> the old 'all-in-exe' style and the new 'library.zip' style. Do you >>> think it's doable/feasible? > >TH> In priciple it would be possible - zipimport can handle archives >TH> prepended by an exe-stub. I'll think about it - but it will not be >TH> in the soon-to-be-released 0.5.1. > >Ok, I'll also be waiting for the 0.6. 8^) Thank you for you attention >and suggestions. BTW I'm using py2exe since 0.3.3 (May of 2002) and >I'd like to congratulate you and everybody involved for your good work >with it! > >Thanks again. > >-- tacao > > I for one would really need this functionality of stuffing all files = into one executable. It is too compilated to handle two files, eventually only the exe file = will be copied. I know thats not that efford to copy two files instead of one - but i = know that sooner or later some scripts will be broken because of the zip = file missing at the end users system. Thanks for your efford, Philipp Wei=DFmann =20 ------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org _______________________________________________ Py2exe-users mailing list Py2...@li... https://lists.sourceforge.net/lists/listinfo/py2exe-users |
From: E. A. T. <e.a...@te...> - 2004-06-09 07:29:35
|
In Wednesday, June 9, 2004, 4:03:49 AM, Thomas wrote: [snip] TH> If winzip is installed, right clicking an exe-file which contains TH> a zip-archive in explorer automatically gets 'Extract to ...' and TH> 'Run with Winzip' menu entries, and doing a drag-drop operation TH> with the right mouse button also, in addition to the usual 'Create TH> Shortcut' entry. Not to mention that XP has a feature that shows zip files as directories. TH> If you want to obscure the zip-archive imo the best way is to TH> specify a filename with a different extension, say TH> 'zipfile=shared.dll' for example. At least this will avoid the TH> winzip 'problem'. Yes. I'll try this. >> If I may suggest, I think there should be a way to select between >> the old 'all-in-exe' style and the new 'library.zip' style. Do you >> think it's doable/feasible? TH> In priciple it would be possible - zipimport can handle archives TH> prepended by an exe-stub. I'll think about it - but it will not be TH> in the soon-to-be-released 0.5.1. Ok, I'll also be waiting for the 0.6. 8^) Thank you for you attention and suggestions. BTW I'm using py2exe since 0.3.3 (May of 2002) and I'd like to congratulate you and everybody involved for your good work with it! Thanks again. -- tacao |
From: Thomas H. <th...@py...> - 2004-06-09 07:04:15
|
"E. A. Tacao" <e.a...@te...> writes: > In Tuesday, June 8, 2004, 5:21:16 PM, Thomas wrote: > > TH> "E. A. Tacao" <e.a...@te...> writes: > >>> I wrote an app in Python 2.2.2/wxPython 2.4.2.4. While at that, I used >>> py2exe 0.4.1 to generate my dist under WinXP. The main .exe file was >>> about 800kB. >>> >>> Now I upgraded to Python 2.3.3/wxPython 2.5.1.5/py2exe 0.5.0 and I'm >>> facing an issue: my .exe file is only 44kB and there's a 'library.zip' >>> file that contains several modules. >>> >>> I guess on 0.4.1 the required modules were inside the .exe file (there >>> wasn't a 'library.zip' here and everything worked fine). How should I >>> tell py2exe 0.5.0 that I still want them inside the .exe file? > > TH> There's no way. It is now always in the zip file, the zip can be > TH> shared between several (possibly) related exe or dll files which > TH> you can build with one setup script. Technically, it should be > TH> possible to append the zip archive to the exe file itself, but > TH> what would you gain? One file less to distribute - is it worth the > TH> effort? > > I think so. Some apps are too shy and don't like curious end users to > be looking inside their 'library.zip' files. The problem with this is that it's possible anyway. If winzip is installed, right clicking an exe-file which contains a zip-archive in explorer automatically gets 'Extract to ...' and 'Run with Winzip' menu entries, and doing a drag-drop operation with the right mouse button also, in addition to the usual 'Create Shortcut' entry. If you want to obscure the zip-archive imo the best way is to specify a filename with a different extension, say 'zipfile=shared.dll' for example. At least this will avoid the winzip 'problem'. > If I may suggest, I think > there should be a way to select between the old 'all-in-exe' style and > the new 'library.zip' style. Do you think it's doable/feasible? In priciple it would be possible - zipimport can handle archives prepended by an exe-stub. I'll think about it - but it will not be in the soon-to-be-released 0.5.1. Thomas |
From: E. A. T. <e.a...@te...> - 2004-06-08 20:57:38
|
In Tuesday, June 8, 2004, 5:21:16 PM, Thomas wrote: TH> "E. A. Tacao" <e.a...@te...> writes: >> I wrote an app in Python 2.2.2/wxPython 2.4.2.4. While at that, I used >> py2exe 0.4.1 to generate my dist under WinXP. The main .exe file was >> about 800kB. >> >> Now I upgraded to Python 2.3.3/wxPython 2.5.1.5/py2exe 0.5.0 and I'm >> facing an issue: my .exe file is only 44kB and there's a 'library.zip' >> file that contains several modules. >> >> I guess on 0.4.1 the required modules were inside the .exe file (there >> wasn't a 'library.zip' here and everything worked fine). How should I >> tell py2exe 0.5.0 that I still want them inside the .exe file? TH> There's no way. It is now always in the zip file, the zip can be TH> shared between several (possibly) related exe or dll files which TH> you can build with one setup script. Technically, it should be TH> possible to append the zip archive to the exe file itself, but TH> what would you gain? One file less to distribute - is it worth the TH> effort? I think so. Some apps are too shy and don't like curious end users to be looking inside their 'library.zip' files. If I may suggest, I think there should be a way to select between the old 'all-in-exe' style and the new 'library.zip' style. Do you think it's doable/feasible? -- tacao |
From: Thomas H. <th...@py...> - 2004-06-08 20:22:50
|
"E. A. Tacao" <e.a...@te...> writes: > Hello, > > I wrote an app in Python 2.2.2/wxPython 2.4.2.4. While at that, I used > py2exe 0.4.1 to generate my dist under WinXP. The main .exe file was > about 800kB. > > Now I upgraded to Python 2.3.3/wxPython 2.5.1.5/py2exe 0.5.0 and I'm > facing an issue: my .exe file is only 44kB and there's a 'library.zip' > file that contains several modules. > > I guess on 0.4.1 the required modules were inside the .exe file (there > wasn't a 'library.zip' here and everything worked fine). How should I > tell py2exe 0.5.0 that I still want them inside the .exe file? There's no way. It is now always in the zip file, the zip can be shared between several (possibly) related exe or dll files which you can build with one setup script. Technically, it should be possible to append the zip archive to the exe file itself, but what would you gain? One file less to distribute - is it worth the effort? Thomas |
From: Thomas H. <th...@py...> - 2004-06-08 20:18:14
|
Jaco Smuts <JS...@cl...> writes: > Thanks a lot > > fixed it in boot_service.py > > now I'd like to know how do I go about submitting this as a patch to have > it included in the standard library? > Jaco, normally you should create a patch and upload it to the py2exe tracker pages on sourceforge. Not needed for this, I have committed a slight variation of what you posted. Thanks! Thomas |
From: E. A. T. <e.a...@te...> - 2004-06-05 01:02:33
|
Hello, I wrote an app in Python 2.2.2/wxPython 2.4.2.4. While at that, I used py2exe 0.4.1 to generate my dist under WinXP. The main .exe file was about 800kB. Now I upgraded to Python 2.3.3/wxPython 2.5.1.5/py2exe 0.5.0 and I'm facing an issue: my .exe file is only 44kB and there's a 'library.zip' file that contains several modules. I guess on 0.4.1 the required modules were inside the .exe file (there wasn't a 'library.zip' here and everything worked fine). How should I tell py2exe 0.5.0 that I still want them inside the .exe file? Thanks in advance, -- tacao |
From: Sean F <wsf...@ea...> - 2004-06-03 19:29:18
|
Never mind - figured it out. I hate it when that happens! changed: setup(com_server=["testcom.HelloWorld"] to: setup(com_server=["testcom"]) And all works well. Thanks anyway - Sean F Sean F wrote: > What do I need to do to build my script as a COM server with py2exe? > > As a learning tool, I'm using the code in the "Quick Start to Server > side COM" documentation included with win32all, saved as testcom.py > > # testcom.py > class HelloWorld: > _reg_clsid_ = "{1B6DDB9E-5817-4BD8-9085-625DBB6304C9}" > _reg_desc_ = "Python Test COM Server" > _reg_progid_ = "Python.TestServer" > _public_methods_ = ['Hello'] > _public_attrs_ = ['softspace', 'noCalls'] > _readonly_attrs_ = ['noCalls'] > > def __init__(self): > self.softspace = 1 > self.noCalls = 0 > > def Hello(self, who): > self.noCalls = self.noCalls + 1 > # insert "softspace" number of spaces > return "Hello" + " " * self.softspace + who > > if __name__=='__main__': > # ni only for 1.4! > import win32com.server.register > win32com.server.register.UseCommandLine(HelloWorld) > > When I run this script, the server is registered, and I can call it from > other apps. Exactly the behavior I want. > > So, now I want to build this with py2exe, so I built the following setup > script: > > # setup.py > from distutils.core import setup > import py2exe > > setup(com_server=["testcom.HelloWorld"]) > > When I run "python setup.py py2exe", it fails: > > Traceback (most recent call last): > File "setup.py", line 4, in ? > setup(com_server=["testcom.HelloWorld"]) > File "c:\python23\lib\distutils\core.py", line 149, in setup > dist.run_commands() > File "c:\python23\lib\distutils\dist.py", line 907, in > run_commands > self.run_command(cmd) > File "c:\python23\lib\distutils\dist.py", line 927, in run_command > cmd_obj.run() > File "c:\python23\lib\site-packages\py2exe\build_exe.py", line > 187, in run > self.find_needed_modules(mf, required_files, required_modules) > File "c:\python23\lib\site-packages\py2exe\build_exe.py", line > 809, in find_needed_modules > mf.import_hook(mod) > File "c:\python23\lib\modulefinder.py", line 125, in import_hook > m = self.load_tail(q, tail) > File "c:\python23\lib\modulefinder.py", line 191, in load_tail > raise ImportError, "No module named " + mname > ImportError: No module named testcom.HelloWorld > > I can clearly see what I am doing wrong - com_server needs to be > module.Class, but my script is not a module. > > I've tried putting testcom.py into site-packages - when I do, I'm able > to import it as a module, but the setup script fails with the same error. > > Any suggestions? > > Thanks - > > Sean F > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the new InstallShield X. > From Windows to Linux, servers to mobile, InstallShield X is the one > installation-authoring solution that does it all. Learn more and > evaluate today! http://www.installshield.com/Dev2Dev/0504 |
From: Sean F <wsf...@ea...> - 2004-06-03 19:01:20
|
What do I need to do to build my script as a COM server with py2exe? As a learning tool, I'm using the code in the "Quick Start to Server side COM" documentation included with win32all, saved as testcom.py # testcom.py class HelloWorld: _reg_clsid_ = "{1B6DDB9E-5817-4BD8-9085-625DBB6304C9}" _reg_desc_ = "Python Test COM Server" _reg_progid_ = "Python.TestServer" _public_methods_ = ['Hello'] _public_attrs_ = ['softspace', 'noCalls'] _readonly_attrs_ = ['noCalls'] def __init__(self): self.softspace = 1 self.noCalls = 0 def Hello(self, who): self.noCalls = self.noCalls + 1 # insert "softspace" number of spaces return "Hello" + " " * self.softspace + who if __name__=='__main__': # ni only for 1.4! import win32com.server.register win32com.server.register.UseCommandLine(HelloWorld) When I run this script, the server is registered, and I can call it from other apps. Exactly the behavior I want. So, now I want to build this with py2exe, so I built the following setup script: # setup.py from distutils.core import setup import py2exe setup(com_server=["testcom.HelloWorld"]) When I run "python setup.py py2exe", it fails: Traceback (most recent call last): File "setup.py", line 4, in ? setup(com_server=["testcom.HelloWorld"]) File "c:\python23\lib\distutils\core.py", line 149, in setup dist.run_commands() File "c:\python23\lib\distutils\dist.py", line 907, in run_commands self.run_command(cmd) File "c:\python23\lib\distutils\dist.py", line 927, in run_command cmd_obj.run() File "c:\python23\lib\site-packages\py2exe\build_exe.py", line 187, in run self.find_needed_modules(mf, required_files, required_modules) File "c:\python23\lib\site-packages\py2exe\build_exe.py", line 809, in find_needed_modules mf.import_hook(mod) File "c:\python23\lib\modulefinder.py", line 125, in import_hook m = self.load_tail(q, tail) File "c:\python23\lib\modulefinder.py", line 191, in load_tail raise ImportError, "No module named " + mname ImportError: No module named testcom.HelloWorld I can clearly see what I am doing wrong - com_server needs to be module.Class, but my script is not a module. I've tried putting testcom.py into site-packages - when I do, I'm able to import it as a module, but the setup script fails with the same error. Any suggestions? Thanks - Sean F |
From: David F. <da...@sj...> - 2004-06-02 10:16:40
|
Thomas Heller wrote: >David Fraser <da...@sj...> writes: > > > >>Hi >> >>Is it possible to set a list of packages to be included by py2exe in >>the setup script instead of on the command line? >>I tried packages=["wx"] but it didn't work. >> >> >py2exe uses standard distutils conventions: you can also provide an >options named parameter instead of command line options to the setup >function, in this way: > >setup(..., > options = {"py2exe": { "packages": ["wx"]}, > ...}, > ...) > > Brilliant, thanks Thomas, I didn't know this... >>BTW this is for building wxPRE, which is progressing ... we now have a >>wxPRE.exe generated by py2exe that seems to run fine >> >> >Have to look into this... > > At the moment its working fairly well (see the stuff on the wxPython list) Its going to be interesting working out how to use distutils + py2exe to bundle wxPRE either by itself or with an application Also looking at creating installers based on py2exe... David |
From: Jaco S. <JS...@cl...> - 2004-06-02 06:33:12
|
Thanks a lot fixed it in boot_service.py now I'd like to know how do I go about submitting this as a patch to have it included in the standard library? thanks Jaco I've made the following changes (from line 137): if do_install: for k in service_klasses: if hasattr(k, '_svc_deps_'): # check if there are dependencies svc_dependencies = getattr(k, '_svc_deps_') # get the value else: # if not svc_dependencies = None # set value to None svc_display_name = getattr(k, "_svc_display_name_", k._svc_name_) win32serviceutil.InstallService(None, k._svc_name_, svc_display_name, exeName = sys.executable, userName = userName, password = password, startType = startType, bRunInteractive = bRunInteractive, serviceDeps = svc_dependencies #include the serviceDeps in the installService call ) Thomas Heller <th...@py...> Sent by: py2...@li... 06/01/2004 09:34 PM To: Jaco Smuts <JS...@cl...> cc: py2...@li... Subject: Re: [Py2exe-users] win32 service dependency Jaco Smuts <JS...@cl...> writes: > hi there > > I've written a simple python that I want to run as a service on win2k. > > I've succefully compiled it and it works fine. > > however, it depends on another service and I don't know how to register > the dependancy. Currently when I reboot my machine it tries to startup > before the other service and subsequently fails. > > any advice would be appreciated. Please see the code in py2exe/boot_service.py, and lib/site-packages/win32/lib/win32serviceutil.py. Would you like to create a patch? Thomas ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Py2exe-users mailing list Py2...@li... https://lists.sourceforge.net/lists/listinfo/py2exe-users |
From: Phil R. <Phi...@ds...> - 2004-06-01 21:02:40
|
Hi Thomas and Dirk, > I think (*) you just have to provide them in the main script. Note that > each py2exe'd executable gets some 'boot' code which is executed before > the main script starts - for com servers it is > py2exe/boot_com_servers.py. Yup. Works like a charm. Thanks, Phil |
From: Thomas H. <th...@py...> - 2004-06-01 19:44:59
|
David Fraser <da...@sj...> writes: > Hi > > Is it possible to set a list of packages to be included by py2exe in > the setup script instead of on the command line? > I tried packages=["wx"] but it didn't work. py2exe uses standard distutils conventions: you can also provide an options named parameter instead of command line options to the setup function, in this way: setup(..., options = {"py2exe": { "packages": ["wx"]}, ...}, ...) > BTW this is for building wxPRE, which is progressing ... we now have a > wxPRE.exe generated by py2exe that seems to run fine Have to look into this... Thomas |