I am a completely new guy to wxPython.
Just downloaded and installed 'wxPythonWIN32-2.3.3.1u-Py22.exe ' on my win2k
machine. and tried to run the demo. the
following error came.
I have python2.2.1 and ActivePython 2 installed.
Can any one guide me to the wonderful world of wxPython?
Regards
MVR.Murty
···
----------------------------------------------------------------------------
---------------------------------------------------
C:\Program Files\WinPython\Lib\site-packages\wxPython\demo>python demo.py
Traceback (most recent call last):
File "demo.py", line 3, in ?
import Main
File "Main.py", line 15, in ?
from wxPython.wx import *
ImportError: No module named wxPython.wx
----------------------------------------------------------------------------
-------------------------------------------------------
Why do you have python installed twice ??
If you do this you have to make sure that the right installation has the
wxpython package installed.
Check what you're executing when calling "python". Since you have it installed
twice you have 2 different python executables. Each of them includes
different directories as search path for modules.
Check if the python interpreter you're calling is acutally dearching for it's
files in C:\Program Files\WinPython\
start python (from a shell without any parameters)
type:
import sys
print sys.path
check what it prints. It has to include the
C:\Program Files\WinPython\Lib\site-packages directory. Otherwise it will
throw the error you have.
You can always specify the full path to the python interpreter you want to
use. So if your python.exe that has the wxPython module installed is in
C:\Program Files\WinPython\ you might want to try calling
C:\Program Files\WinPython\python.exe demo.py
···
On Wednesday 04 December 2002 10:46 pm, RamanaMurty M wrote:
I am a completely new guy to wxPython.
Just downloaded and installed 'wxPythonWIN32-2.3.3.1u-Py22.exe ' on my
win2k machine. and tried to run the demo. the
following error came.
I have python2.2.1 and ActivePython 2 installed.
Can any one guide me to the wonderful world of wxPython?
Regards
MVR.Murty
---------------------------------------------------------------------------
- ---------------------------------------------------
C:\Program Files\WinPython\Lib\site-packages\wxPython\demo>python demo.py
Traceback (most recent call last):
File "demo.py", line 3, in ?
import Main
File "Main.py", line 15, in ?
from wxPython.wx import *
ImportError: No module named wxPython.wx
---------------------------------------------------------------------------
- -------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
--
UC
--
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417