wxpython error

Questions about the project and the distribution - obviously no support questions here please

wxpython error

Postby BlakeR721 on Mon Feb 06, 2012 9:38 pm

when attempting to write this code in python:

import wx

app = wx.App()

frame = wx.Frame(None, -1, 'simple.py')


I get this error:
File "/home/loveriot/Programming/python/simple.py", line 1, in <module>
import wx
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 6, in <module>
new_instancemethod = new.instancemethod
AttributeError: 'module' object has no attribute 'instancemethod'

Any idea one what could be causing this? I'm pretty sure I have the correct packages installed for wxpython. In the interpreter I do not get an error when I type import wx.
Level 1
Level 1
Posts: 1
Joined: Mon Feb 06, 2012 9:28 pm

Linux Mint is funded by ads and donations.

Return to Non-technical Questions

Who is online

Users browsing this forum: No registered users and 2 guests