Problem with exe from py2exe

F

Francach

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.
 
A

Andrea Gavana

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top