import question on wx ?

SPE - Stani's Python Editor spe.stani.be at gmail.com
Thu Jul 27 12:58:06 EDT 2006


John Salerno wrote:
> diffuser78 at gmail.com wrote:
> > I have installed wx and everything looks fine. I have written a small
> > app that uses wx.
> >
> > When I run my program from the console like
> > ubuntu $ python PROGRAM_NAME.py
> >
> > it gives error
> > Traceback (most recent call last):
> >   File "Project.py", line 6, in ?
> >     import wx
> > ImportError: No module named wx
> >
> >
> > But if I run the program from SPE (Stani's Python Editor) it just runs
> > fine.
>
> It could be that the Python version you are using to launch the app from
> the console is the preinstalled version on your system and therefore
> wxPython wasn't installed into that version. Do you have multiple
> versions of Python installed? Probably SPE is using the other version
> which *does* have wxPython in it.
To see which versions SPE uses, go to Help>About and the versions are
mentioned under "Program info". Compare that to the version which
appears if you just type "python" in the command prompt. I've posted a
"howto" on the ubuntuforums how to install the latest wxpython and SPE
on Ubuntu:
http://www.ubuntuforums.org/showthread.php?t=218001&highlight=wxpython

Stani




More information about the Python-list mailing list