From: <bar...@vo...> - 2008-09-17 10:00:29
Attachments:
setup.py
|
First of all, thanks for replying, I was a bit in a hurry when I wrote my first message so it was not very clear; I forgot to put a proper subject and I didn’t attach the “setup.py” file… I’ve no problems with QT, PyQt, SIP and others. The missing files belong to my application: Packages Qtg.QtgData.Handler.v1_0, Qtg.QtgPrintManager.Handler.v1_0 These packages are actually dynamically imported as they might be upgraded in the future. But, since I explicitly ask py2exe to take these packages in my setup file, I thought that it would take them into account. In fact, they are copied in the temporary “build” folder but not byte-compiled by the next step. So, of I well understand what you say, it is a normal behaviour? Laurent PS: I’ve attached a light version of my setup.py file. > Message du 16/09/08 à 21h39 > De : "Larry Bates" <lar...@we...> > A : py2...@li... > Copie à : > Objet : Re: [Py2exe-users] *** SPAM ***Py2Exe > > bar...@vo... wrote: > > Hello, > > > > I’m encountering an issue while trying to use Py2exe with my program. > > It seems like Py2exe, “forgets” some package/modules when byte compiling. > > > > I have no error message but when I check the output of my setup.py script I can see that all my packages/modules are well copied in the “build” folder, but some do not appear in the byte-compiling phase and, therefore, are not included in the final zip file. > > > > I have attached a light version of my setup.py file. > > > > Here is my folder structure: > > > > > > ├───bin > > ├───etc > > │ └───qtg > > │ └───amendment > > └───src > > └───Qtg > > ├───QtgData > > │ ├───Handler > > │ │ └───v1_0 > > │ ├───QtgBOContainers > > │ ├───QtgDataAction > > │ ├───QtgDoc > > │ └───QtgDocData > > ├───QtgDocManager > > ├───QtgPrintManager > > │ └───Handler > > │ └───v1_0 > > ├───QtgUi > > │ └───QtUi > > └───QtgUtile > > └───ExcelCom > > ├───ExcelComSubDriver > > └───ExceptionsSubDriver > > > > > > Am I doing something wrong? > > Thanks for any kind of help. > > L. Pailhès > > > > PS: I use py2exe-0.6.5 for python 2.4.4 > > > > > > ____________________________________________________ > > > > BB Brunes sur Voila avec Musiline ! http://musiline.voila.fr > > > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Py2exe-users mailing list > > Py2...@li... > > https://lists.sourceforge.net/lists/listinfo/py2exe-users > > Perhaps this will help: > > http://www.py2exe.org/index.cgi/Py2exeAndPyQt > > You didn't tell us what it was missing, so I can't be of more assistance. > Generally, py2exe can't include modules that are "dynamically" imported as it > never actually sees that they should be imported. Many GUI frameworks, PIL, > and I believe older versions of elementTree fall into that category. > > -Larry > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > ____________________________________________________ BB Brunes sur Voila avec Musiline ! http://musiline.voila.fr |
From: Larry B. <lar...@we...> - 2008-09-18 12:43:52
|
bar...@vo... wrote: > First of all, thanks for replying, > > I was a bit in a hurry when I wrote my first message so it was not very clear; I forgot to put a proper subject and I didn’t attach the “setup.py” file… > > I’ve no problems with QT, PyQt, SIP and others. The missing files belong to my application: > Packages Qtg.QtgData.Handler.v1_0, Qtg.QtgPrintManager.Handler.v1_0 > > These packages are actually dynamically imported as they might be upgraded in the future. > > But, since I explicitly ask py2exe to take these packages in my setup file, I thought that it would take them into account. > > In fact, they are copied in the temporary “build” folder but not byte-compiled by the next step. > > So, of I well understand what you say, it is a normal behaviour? > > Laurent > > PS: I’ve attached a light version of my setup.py file. > > > >> Message du 16/09/08 à 21h39 >> De : "Larry Bates" <lar...@we...> >> A : py2...@li... >> Copie à : >> Objet : Re: [Py2exe-users] *** SPAM ***Py2Exe >> >> bar...@vo... wrote: >>> Hello, >>> >>> I’m encountering an issue while trying to use Py2exe with my program. >>> It seems like Py2exe, “forgets” some package/modules when byte compiling. >>> >>> I have no error message but when I check the output of my setup.py script I can see that all my packages/modules are well copied in the “build” folder, but some do not appear in the byte-compiling phase and, therefore, are not included in the final zip file. >>> >>> I have attached a light version of my setup.py file. >>> >>> Here is my folder structure: >>> >>> >>> ├───bin >>> ├───etc >>> │ └───qtg >>> │ └───amendment >>> └───src >>> └───Qtg >>> ├───QtgData >>> │ ├───Handler >>> │ │ └───v1_0 >>> │ ├───QtgBOContainers >>> │ ├───QtgDataAction >>> │ ├───QtgDoc >>> │ └───QtgDocData >>> ├───QtgDocManager >>> ├───QtgPrintManager >>> │ └───Handler >>> │ └───v1_0 >>> ├───QtgUi >>> │ └───QtUi >>> └───QtgUtile >>> └───ExcelCom >>> ├───ExcelComSubDriver >>> └───ExceptionsSubDriver >>> >>> >>> Am I doing something wrong? >>> Thanks for any kind of help. >>> L. Pailhès >>> >>> PS: I use py2exe-0.6.5 for python 2.4.4 >>> >>> >>> ____________________________________________________ >>> >>> BB Brunes sur Voila avec Musiline ! http://musiline.voila.fr >>> >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Py2exe-users mailing list >>> Py2...@li... >>> https://lists.sourceforge.net/lists/listinfo/py2exe-users >> Perhaps this will help: >> >> http://www.py2exe.org/index.cgi/Py2exeAndPyQt >> >> You didn't tell us what it was missing, so I can't be of more assistance. >> Generally, py2exe can't include modules that are "dynamically" imported as it >> never actually sees that they should be imported. Many GUI frameworks, PIL, >> and I believe older versions of elementTree fall into that category. >> >> -Larry >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Py2exe-users mailing list >> Py2...@li... >> https://lists.sourceforge.net/lists/listinfo/py2exe-users >> > > ____________________________________________________ > > BB Brunes sur Voila avec Musiline ! http://musiline.voila.fr > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users You didn't post you setup.py file so I can't tell how you are including the two packages. Here is a link to solutions for a number of such problems, one of which I'm sure will help: http://www.py2exe.org/index.cgi/WorkingWithVariousPackagesAndModules -Larry |