wx import error

Peter Hansen wrote:

Ketan Maheshwari wrote:

hi *:
i am setting wxpython and running into this problem when i try to run a simple program:
*************************************
   ketan@nimrod:~$ python2.4 -u y.py
   Traceback (most recent call last):
   File "y.py", line 1, in ?
   import wx
   ImportError: No module named wx
*************************************
python is python2.4
wx is wx-2.6.3.3
*(i know they work together)

How do you know that? What happens if you just do "import wx" at the interactive Python interpreter prompt?

I have already worked with that configuration. however, it is installed on a machine that I can not use anymore. The machine I am installing is another machine. However, I do not have admin rights. when i do import wx on interactive prompt, i get the following message:
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named wx

···

-Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Hi Ketan,

Ketan Maheshwari wrote:

>> Looks like wxPython is not installed or is not in the Path.
I already installed the wxpython.
also updated LD_LIBRARY_PATH, PYTHONPATH and PATH.
could you echo out your environment variables here, may be that will help.
thanks.

I am on Windows and the wxPython installer does this all for me. But I just checked and I don't see any env. variables related to wxPython. My shortcuts point to the appropriate folder.

Maybe you wx.pth file in "\Python24\Lib\site-packages" is not correct?

Werner