py to exe

I've been using py2exe. It can be found at py2exe.org

Bertrand Son Kintanar wrote:

···

Hi guys... is there a way to create an windows executable out of a wx program?

--
b3rx

http://se.b3rx.com/ - site

"Don't be trapped by dogma - which is living with the results of other people's thinking. - Steve Jobs"

`There are only 10 people in this world who can read binary...'

You'll have to supply more details (like the actual error
message or backtrace). In the meantime, there's the usual
source of answers:

http://www.py2exe.org/index.cgi/FAQ
http://www.py2exe.org/index.cgi/GeneralTipsAndTricks
http://www.py2exe.org/index.cgi/WorkingWithVariousPackagesAndModules
http://www.py2exe.org/index.cgi/Py2exeAndwxPython

···

On 2007-09-05, Bertrand Son Kintanar <b3rxkintanar@gmail.com> wrote:

On 9/5/07, Brad Larson <blarson@meridianhouse.com> wrote:

I've been using py2exe. It can be found at py2exe.org

Thanks to both of you. I have one question. the tutorial states that i need
to create a setup.py that contains some lines of your main python file. When
trying to run my program 'windows executable' it warns me that i have no
wxPython installed. but if i run it using the python interpreter, it works
fine.

anyone can help?

--
Grant Edwards grante Yow! These PRESERVES
                                  at should be FORCE-FED to
                               visi.com PENTAGON OFFICIALS!!

No i only have one python im afraid. It tries to run the program but it tells me that i dont have wxPython installed.

···

On 9/5/07, Peter Damoc pdamoc@gmail.com wrote:

Do you have multiple python versions installed?


b3rx

http://se.b3rx.com/ - site

“Don’t be trapped by dogma - which is living with the results of other people’s thinking. - Steve Jobs”

`There are only 10 people in this world who can read binary…’

I know it sounds silly… but are do you have wxpython installed? Take a look in site-package. What version does it says is installed?

···

On 9/6/07, Bertrand Son Kintanar b3rxkintanar@gmail.com wrote:

On 9/5/07, Peter Damoc pdamoc@gmail.com wrote:

Do you have multiple python versions installed?

No i only have one python im afraid. It tries to run the program but it tells me that i dont have wxPython installed.


b3rx

http://se.b3rx.com/ - site

“Don’t be trapped by dogma - which is living with the results of other people’s thinking. - Steve Jobs”

`There are only 10 people in this world who can read binary…’


There is NO FATE, we are the creators.

Hi Bertrand,

Bertrand Son Kintanar wrote:

    I know it sounds silly... but are do you have wxpython installed?
    Take a look in site-package. What version does it says is installed?

lol... yes it is installed. my wxpython version is `wx-2.8-msw-unicode.` it gives me a popup that states the wxversion needed is 2.8 or higher. i am using the wxversion.ensureMinimal ( '2.8' ) in my wx application. don't know if that matters.

Yeap, you should not use this with py2exe, change your code to something like this:

    if not hasattr(sys, 'frozen'):
        import wxversion
        wxversion.ensureMinimal('2.8')

sys.frozen is only there if you used something like py2exe or cxfreeze etc.

Werner

···

On 9/6/07, *Peter Damoc* <pdamoc@gmail.com <mailto:pdamoc@gmail.com>> > wrote: