Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problem with exe from py2exe

Reply
Thread Tools

Problem with exe from py2exe

 
 
Francach
Guest
Posts: n/a
 
      10-30-2005
Hi,

I'm using python 2.4.1, wxPython 2.6.1.0 and py2exe 1.6.3 on Windows
XP.

My script runs fine with python, but the .exe produced with py2exe
crashes out with:

Traceback (most recent call last):
File "App1.py", line 4, in ?
File "wx\__init__.pyc", line 42, in ?
File "wx\_core.pyc", line 3163, in ?
AttributeError: 'module' object has no attribute
'wxEVT_SCROLL_ENDSCROLL'

I've looked under
http://starship.python.net/crew/theller/moin.cgi/Py2Exe to see if this
is a known issue, but no luck. Anybody seen this one before?

Thanks,
Martin.

 
Reply With Quote
 
 
 
 
Andrea Gavana
Guest
Posts: n/a
 
      10-31-2005
Hello Martin,

> My script runs fine with python, but the .exe produced with py2exe
> crashes out with:
>
> Traceback (most recent call last):
> File "App1.py", line 4, in ?
> File "wx\__init__.pyc", line 42, in ?
> File "wx\_core.pyc", line 3163, in ?
> AttributeError: 'module' object has no attribute
> 'wxEVT_SCROLL_ENDSCROLL'


Noting that you use wxPython 2.6.1.0, are you still using the old
namespace/import commands:

from wxPython.wx import *

?

If this is the case, please switch to the (relatively) new namespace/import
command:

import wx

The new syntax does not have wxEVT_SCROLL_ENDSCROLL but it does have
wx.EVT_SCROLL_ENDSCROLL.

The syntax has changed about 1 year ago (if not more), so if you are still
using the old namespace, I think the wxPython mailing list and the wxPython
main page should report:

"Use the NEW namespace"

In red blinking characters.

If this is not the case, I'm sorry I can't help you a lot. I always use
py2exe but I never encountered such problems.

HTH.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: [Py2exe-users] py2exe 0.6.9 released Chris Spencer Python 3 12-08-2008 05:17 PM
RE: [Py2exe-users] py2exe 0.6.9 released Mark Hammond Python 0 11-17-2008 05:27 AM
about py2exe, I installed it, but can't find py2exe.exe in my computer. python Python 3 05-22-2006 02:08 PM
[py2exe] py2exe and datetime -> No module named datetime F. GEIGER Python 0 08-16-2004 01:13 PM
Trying to build exe with py2exe and SOAPPy Steven Bell Python 0 10-09-2003 03:02 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57