[wxPython-users] py to exe

Werner F. Bruhin werner.bruhin at free.fr
Thu Sep 6 02:12:20 PDT 2007


Hi Bertrand,

Bertrand Son Kintanar wrote:
> On 9/6/07, *Peter Damoc* <pdamoc at gmail.com <mailto:pdamoc at gmail.com>> 
> 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




More information about the wxpython-users mailing list