hey i want to learn the wxpython ,
i am on working on ubuntu 12.04
i am following this tutorials
http://wiki.wxpython.org/AnotherTutorial
whant i started
i faced
import wx
app = wx.App()
Traceback (most recent call last):
File “”, line 1, in
AttributeError: ‘module’ object has no attribute ‘App’
i have tried this-
sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n
sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev
but still facing problem
please suggest me what to do now
http://wiki.wxpython.org/InstallingOnUbuntuOrDebian
Did you run the meta-data update line from above URL?
I don’t know if this could be your issue but I see the last release was for Ubuntu 11.4. Might be compiler flags changed between versions. I’m not familiar with Ubuntu enough to help further.
JAI PRAKASH SINGH wrote:
hey i want to learn the wxpython ,
i am on working on ubuntu 12.04
i am following this tutorials
http://wiki.wxpython.org/AnotherTutorial
whant i started
i faced
>>> import wx
>>> app = wx.App()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'App'
My guess is that you have a file in your local directory called "wx.py",
perhaps that you were trying as an experiment, or maybe a directory
called "wx" that you were playing with. Python always looks for a local
match before looking in the standard libraries.
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.