I have scoured the net looking or a similar example, but most posts
point to a version mismatch. I have checked it 3 times now and I am
almost 100% sure that I am installing the proper versions.
When I try to run my code from the command prompt, i get the following error:
Traceback (most recent call last
File “tracker.py”, line 1, in
import wx
ImportError: No module named wx
This
program is one that I have been programming elsewhere (without issue)
and took home to modify. My home computer is running Vista 32(not 64).
I didn’t have python installed before so I installed the 3 packages
that I needed to run the program: Python 2.6, pywin32-212.win32-py2.6
and wxPython2.8-win32-unicode-2.8.9.1-py26.
I can run simple scripts that use basic python modules (sys, etc) but when I try to use wx i get the above error.
the following commands give:
c:\Python26\tracker>python
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
import sys
print sys.path
[‘’, 'C:\hp\bin\Python\
python24.zip’, ‘C:\hp\bin\Python\DLLs’, ‘C:\hp\bin\Python\lib’, 'C:\hp\bi
n\Python\lib\plat-win’, ‘C:\hp\bin\Python\lib\lib-tk’, ‘C:\hp\bin\Python’, ‘C:\hp\bin\Python\li
b\site-packages’, ‘C:\hp\bin\Python\lib\site-packages\win32’, 'C:\hp\bin\Python\lib\site-packages\
\win32\lib’, ‘C:\hp\bin\Python\lib\site-packages\Pythonwin’]
I
notice that wx isn’t there, how do I correct? There is a
“wx-2.8-msw-unicode” folder in site-packages and the wx.pth file has
just one line in it: wx-2.8-msw-unicode
I did a simple install of only those 3 packages, and it “should” work
but not… This is the only version of python on this comp.
If any more information is needed, please let me know. I usually check in several times a day.