ImportError: No module named wx

I try using codeEditor and I get this error:

python ./codeEditor.py

Traceback (most recent call last):
   File "./codeEditor.py", line 13, in <module>
     from PythonCard import about, configuration, dialog, log, menu, model, resource, util
   File "/usr/local/lib/python2.5/site-packages/PythonCard/about.py", line 8, in <module>
     import wx
ImportError: No module named wx

I have the following wx rpms installed on Red Hat Release

  rpm -qa | grep wx
wxPython2.8-gtk2-unicode-2.8.4.0-fc6_py2.4
wxPython-common-gtk2-unicode-2.8.4.0-fc6_py2.4
wxPython2.8-devel-gtk2-unicode-2.8.4.0-fc6_py2.4

I installed PythinCard from the PythonCard-0.8.2.tar file. I am running python 2.5.1

Does any one see where the problem lies?

Thank you!

Julian Bentayeb wrote:

I try using codeEditor and I get this error:

python ./codeEditor.py

Traceback (most recent call last):
  File "./codeEditor.py", line 13, in <module>
    from PythonCard import about, configuration, dialog, log, menu, model, resource, util
  File "/usr/local/lib/python2.5/site-packages/PythonCard/about.py", line 8, in <module>
    import wx
ImportError: No module named wx

I have the following wx rpms installed on Red Hat Release

rpm -qa | grep wx
wxPython2.8-gtk2-unicode-2.8.4.0-fc6_py2.4
wxPython-common-gtk2-unicode-2.8.4.0-fc6_py2.4
wxPython2.8-devel-gtk2-unicode-2.8.4.0-fc6_py2.4

I installed PythinCard from the PythonCard-0.8.2.tar file. I am running python 2.5.1

Does any one see where the problem lies?

As you can see from the package names you only have wxPython installed for Python 2.4. You'll need to either build another set of packages for Python 2.5, or just do a manual build.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!