I think I ran into the same problem: there two versions of wxPython install on Ubuntu: 2.6 and 2.8. For some reason, the default version is 2.6.
I haven’t figured out how to fix that (I lost interest). However, I discovered that if I added two lines before my ‘import wx’:
+import wxversion
+wxversion.select(‘2.8’)
import wx
Then my application worked. It’s temporary fix: I don’t want to limit myself to 2.8 permanently, but at least I can still run.
···
On Sun, Sep 23, 2012 at 11:16 AM, Gregg Caines cainus@gmail.com wrote:
Hey all, I’m getting the following when trying to use wx in a simple script:
Traceback (most recent call last):
File “hello.py”, line 179, in
class MainWindow(wx.Frame):
AttributeError: ‘module’ object has no attribute ‘Frame’
I’ve recently installed on ubuntu (precise) following http://wiki.wxpython.org/InstallingOnUbuntuOrDebian and trying both ‘natty’ and ‘precise’ dist values.
python version is 2.7.3
dir(wx) is just [‘builtins’, ‘doc’, ‘file’, ‘name’, ‘package’, ‘file_get_contents’]
wx.file is ‘/usr/local/lib/python2.7/dist-packages/wx.pyc’
Do I have a broken installation? Can anyone tell me what I probably did wrong if so?
Thanks!
–
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en