John, To see where Python is looking for libraries open an interactive Python prompt and type >>> import sys >>> print sys.path You will get a list of paths where Python will look for modules. Also check to see if you have the PYTHONPATH environment variable set. If /usr/lib is not in the path list then Python won't be able to import wx from there. To test your wx app, you can append to sys.path the path of your wx module then try to import again.
Hope this helps, Nick V. [EMAIL PROTECTED] wrote: > How can we find that it is not using the right version of Python ? > > John Salerno wrote: > > [EMAIL PROTECTED] wrote: > > > Error message "cannot find wx" > > > > > > infact I have wxpython in /usr/lib/ > > > > > > I installed it using the rpms given on the wxPython website. Do I need > > > to set some path or something. > > > > Could it be that it is trying to use another, pre-installed version of > > Python -- one which doesn't have wxPython installed with it? -- http://mail.python.org/mailman/listinfo/python-list