import question on wx ?

diffuser78 at gmail.com diffuser78 at gmail.com
Thu Jul 27 12:56:37 EDT 2006


I think what you say makes perfect sense

I am using 2.4.2 python (I typed pthon -V on console to get)

How can I find what my SPE editor is using ?




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.




More information about the Python-list mailing list