"ImportError: No module named wx"

I got an “ImportError: No module named wx” error
when trying to run the fftsink.py file in the wxgui stuff. I have suse
10-2,
gunradio-3.0.2 installed in /usr/gnuradio-3.0.2 and
/usr/lib/python2.5/site-packages/wxPython-src-2.8.1.1 and
file:///usr/lib/python2.5/site-packages/wxPython-src-2.8.1.1/wxWidgets-2.8.0
I
have tried it in /usr/local as well with the same results. Any help
would be
greatly appreciated. thanks Larry

Larry wrote:

I got an “ImportError: No module named wx” error

Is wx in your pythonpath? Try this:

[email protected] ~ $ python
Python 2.4.3 (#1, Oct 13 2006, 16:57:39)
[GCC 4.1.1 (Gentoo 4.1.1)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import sys
print sys.path
[’’, ‘/usr/lib/portage/pym’, ‘/usr/lib/python24.zip’,
‘/usr/lib/python2.4’, ‘/usr/lib/python2.4/plat-linux2’,
‘/usr/lib/python2.4/lib-tk’, ‘/usr/lib/python2.4/lib-dynload’,
‘/usr/lib/python2.4/site-packages’,
‘/usr/lib/python2.4/site-packages/Numeric’,
‘/usr/lib/python2.4/site-packages/dbus’,
‘/usr/local/lib/python2.4/site-packages’,
‘/usr/lib/python2.4/site-packages/gtk-2.0’,
‘/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode’]

Chris

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs