I am new to programming. My computer has Python 2.1 installed and works
fine. I installed wxPython in directory "F:\wxpython\wxPython" using
"wxPython-2.2.5-Py20.EXE" (For windows 98). Running demo.py gave
following errors:
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
Typing "from wxPython.wx import *" in the Python shell gave following
error:
from wxPython.wx import *
Traceback (most recent call last):
File "<pyshell#1>", line 1, in ?
from wxPython.wx import *
ImportError: No module named wxPython.wx
In my system wxPython.wx is missing. I have never installed a extention
module in the Python. I am doing some thing wrong and don't know how to
correct it.
I am new to programming. My computer has Python 2.1 installed and works
fine. I installed wxPython in directory "F:\wxpython\wxPython" using
"wxPython-2.2.5-Py20.EXE" (For windows 98).
Problem #1: On windows the version of Python that the extension module was
compiled with matters, hence the "Py20" in the name. You'll need to go back
to Python 2.0 at least until I can get a build done and tested for Python
2.1.
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
Hi Robin,
Thank you very much for the suggestions. I installed Python 2.0 and wsPython is
working fine. Thanks again.
Jasbir Chauhan
Robin Dunn wrote:
···
> I am new to programming. My computer has Python 2.1 installed and works
> fine. I installed wxPython in directory "F:\wxpython\wxPython" using
> "wxPython-2.2.5-Py20.EXE" (For windows 98).
Problem #1: On windows the version of Python that the extension module was
compiled with matters, hence the "Py20" in the name. You'll need to go back
to Python 2.0 at least until I can get a build done and tested for Python
2.1.
> Running demo.py gave
> following errors:
>
> F:\wxpython\wxPython\demo>"F:\Program Files\Python21\python.exe" 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
>
>
> In my system wxPython.wx is missing.