Menu

#1103 Problem with import wx

open
nobody
None
5
2010-03-28
2010-03-28
Cyan Ko
No

Hi,
OS : Windows 7 (64)
eclipse version : 1.2.2
pydev version : 1.5.5
wx version : 2.8 win64-unicode

Whenever I try to import wx from pydev, I get following error:

Traceback (most recent call last):
File "C:\eclipse_workspace\practice\src\new\NEWgui.py", line 6, in <module>
import wx
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py", line 45, in <module>
from wx._core import *
File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 6, in <module>
new_instancemethod = new.instancemethod
AttributeError: 'module' object has no attribute 'instancemethod'

After installing wxpython, I already tried removing and adding python interpreter on pydev
wx and wxpython is already included in Forced Builtins
import wx works fine on python shell but, for some reason, pydev doesn't recognize wx
Thanks

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.