I am not quite sure if this is the right place to ask the question,
please forgive me if it is not.
I have written an application using wxPython for the GUI. The app also
uses XRCed as well as sqlalchemy. I am trying to make the app into a
standalone executable. I have tried py2exe and everything went smothly
(i.e no errors).
However, when I try to run the .exe file that was generated nothing
happens--I see a briefly flashing window and no errors logged (at
least as far as I can tell). I have tried including a manifest with
the same result. Here is the setup file that I am using--I copied the
manifest and am not sure if it is appropriate for my system or how to
modify it (I am running windows XP).
Run it from the console to see if there's an error message.
···
On 8/15/2010 5:33 PM, Aref wrote:
I am not quite sure if this is the right place to ask the question,
please forgive me if it is not.
I have written an application using wxPython for the GUI. The app also
uses XRCed as well as sqlalchemy. I am trying to make the app into a
standalone executable. I have tried py2exe and everything went smothly
(i.e no errors).
However, when I try to run the .exe file that was generated nothing
happens--I see a briefly flashing window and no errors logged (at
least as far as I can tell). I have tried including a manifest with
the same result. Here is the setup file that I am using--I copied the
manifest and am not sure if it is appropriate for my system or how to
modify it (I am running windows XP).
I am not sure I understand you correctly. Do you mean run the .exe
file from the python console? How do you do that?
I ran the python program many many times and it runs fine from the
console with no errors at all.
···
On Aug 15, 6:38 pm, Michael Hipp <Mich...@Hipp.com> wrote:
Run it from the console to see if there's an error message.
On 8/15/2010 5:33 PM, Aref wrote:
> I am not quite sure if this is the right place to ask the question,
> please forgive me if it is not.
> I have written an application using wxPython for the GUI. The app also
> uses XRCed as well as sqlalchemy. I am trying to make the app into a
> standalone executable. I have tried py2exe and everything went smothly
> (i.e no errors).
> However, when I try to run the .exe file that was generated nothing
> happens--I see a briefly flashing window and no errors logged (at
> least as far as I can tell). I have tried including a manifest with
> the same result. Here is the setup file that I am using--I copied the
> manifest and am not sure if it is appropriate for my system or how to
> modify it (I am running windows XP).
> from distutils.core import setup
> import py2exe
No, run it from the Windows console (Command Prompt); it's the 'cmd' program. It's on the 'Accessories' menu from the start button.
Michael
···
On 8/15/2010 9:13 PM, Aref wrote:
I am not sure I understand you correctly. Do you mean run the .exe
file from the python console? How do you do that?
I ran the python program many many times and it runs fine from the
console with no errors at all.
On Aug 15, 6:38 pm, Michael Hipp<Mich...@Hipp.com> wrote:
Run it from the console to see if there's an error message.
On 8/15/2010 5:33 PM, Aref wrote:
I am not quite sure if this is the right place to ask the question,
please forgive me if it is not.
I have written an application using wxPython for the GUI. The app also
uses XRCed as well as sqlalchemy. I am trying to make the app into a
standalone executable. I have tried py2exe and everything went smothly
(i.e no errors).
However, when I try to run the .exe file that was generated nothing
happens--I see a briefly flashing window and no errors logged (at
least as far as I can tell). I have tried including a manifest with
the same result. Here is the setup file that I am using--I copied the
manifest and am not sure if it is appropriate for my system or how to
modify it (I am running windows XP).
I am not quite sure if this is the right place to ask the question,
please forgive me if it is not.
I have written an application using wxPython for the GUI. The app also
uses XRCed as well as sqlalchemy. I am trying to make the app into a
standalone executable. I have tried py2exe and everything went smothly
(i.e no errors).
However, when I try to run the .exe file that was generated nothing
happens--I see a briefly flashing window and no errors logged (at
least as far as I can tell). I have tried including a manifest with
the same result. Here is the setup file that I am using--I copied the
manifest and am not sure if it is appropriate for my system or how to
modify it (I am running windows XP).
Then when you install sqlalchemy using easy_install you have to make sure that you use the -Z option to install the egg unzipped. If you install with the -m (multi-version) option then you need this code in your setup.py:
import pkg_resources
pkg_resources.require("sqlalchemy==0.5.8") # get specific version
For packages you need at least the following (replace kinterbasdb with the appropriate database wrapper - mine is for Firebird SQL).
packages = ['kinterbasdb', 'sqlalchemy', ]
Then when using XRCed you need to force the include of some files in the "data_files" option, never used it but recall some questions about this and py2exe some time ago on this list.
Thank you Werner and Michael for taking the time to respond to my
question. The setup file needed some cleaning and certain imports
which I was doing dynamically in my script needed to be made at the
outset. Here is the setup.py file that works (for reference).
from distutils.core import setup
import py2exe
import pkg_resources
pkg_resources.require("sqlalchemy==0.6.1")
On Aug 16, 12:41 am, werner <wbru...@free.fr> wrote:
Hi Aref,
On 16/08/2010 00:33, Aref wrote:> I am not quite sure if this is the right place to ask the question,
> please forgive me if it is not.
> I have written an application using wxPython for the GUI. The app also
> uses XRCed as well as sqlalchemy. I am trying to make the app into a
> standalone executable. I have tried py2exe and everything went smothly
> (i.e no errors).
> However, when I try to run the .exe file that was generated nothing
> happens--I see a briefly flashing window and no errors logged (at
> least as far as I can tell). I have tried including a manifest with
> the same result. Here is the setup file that I am using--I copied the
> manifest and am not sure if it is appropriate for my system or how to
> modify it (I am running windows XP).
Then when you install sqlalchemy using easy_install you have to make
sure that you use the -Z option to install the egg unzipped. If you
install with the -m (multi-version) option then you need this code in
your setup.py:
import pkg\_resources
pkg\_resources\.require\("sqlalchemy==0\.5\.8"\) \# get specific version
For packages you need at least the following (replace kinterbasdb with
the appropriate database wrapper - mine is for Firebird SQL).
packages = ['kinterbasdb', 'sqlalchemy', ]
Then when using XRCed you need to force the include of some files in the
"data_files" option, never used it but recall some questions about this
and py2exe some time ago on this list.
I think you will need the manifest stuff (see the wiki) too. Have you tried the .exe on e.g. on Win XP which doesn't have Python etc?
Werner
···
On 17/08/2010 00:40, Aref wrote:
Thank you Werner and Michael for taking the time to respond to my
question. The setup file needed some cleaning and certain imports
which I was doing dynamically in my script needed to be made at the
outset. Here is the setup.py file that works (for reference).
from distutils.core import setup
import py2exe
import pkg_resources
pkg_resources.require("sqlalchemy==0.6.1")
Yes I tested the resulting executable on both Windows XP and Vista
which did not have python installed and the everything ran fine.
I ran the program from the dist folder and I don't know if that makes
any difference at all.
Again, thanks for taking the time to respond.
Aref
···
On Aug 17, 12:55 am, werner <wbru...@free.fr> wrote:
On 17/08/2010 00:40, Aref wrote:
> Thank you Werner and Michael for taking the time to respond to my
> question. The setup file needed some cleaning and certain imports
> which I was doing dynamically in my script needed to be made at the
> outset. Here is the setup.py file that works (for reference).