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 <module>
class MainWindow(wx.Frame):
AttributeError: 'module' object has no attribute 'Frame'I've recently installed on ubuntu (precise) following
InstallingOnUbuntuOrDebian - wxPyWiki and trying both
'natty' and 'precise' dist values.
Ubuntu's wxPython versions are currently the same as those in the wx repository, so you may have better luck using those since they will have been built specifically for 12.04.
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?
wx.__file__ should be .../wx/__init__.pyc, so somehow you got a rogue wx.py installed and it is importing that module instead of the full package.
···
On 9/23/12 11:16 AM, Gregg Caines wrote:
--
Robin Dunn
Software Craftsman