Hello,
Recently upgraded to 2.4.1.2 wxPython.
Now demo.py in
c:\python22\Lib\site-packages\wxPython\demo\
not running.
Traceback (most recent call last):
File "demo.py", line 3, in ?
import Main
File "C:\Python22\Lib\site-packages\wxPython\demo\Main.py", line 17, in ?
import wx.html
ImportError: No module named html
My %PYTHONPATH% contains:
C:\Python22\Lib\site-packages\wxPython
C:\Python22\Lib\site-packages\wxPython\demo
C:\Python22\Lib\site-packages\wxPython\lib
C:\python22\Lib\site-packages\wx
C:\python22\Lib\site-packages\wx\lib
Hello,
Recently upgraded to 2.4.1.2 wxPython.
Now demo.py in
c:\python22\Lib\site-packages\wxPython\demo\
not running.
Traceback (most recent call last):
File "demo.py", line 3, in ?
import Main
File "C:\Python22\Lib\site-packages\wxPython\demo\Main.py", line 17, in ?
import wx.html
ImportError: No module named html
My %PYTHONPATH% contains:
C:\Python22\Lib\site-packages\wxPython
C:\Python22\Lib\site-packages\wxPython\demo
C:\Python22\Lib\site-packages\wxPython\lib
C:\python22\Lib\site-packages\wx
C:\python22\Lib\site-packages\wx\lib
Your PYTHONPATH only needs to contain ...\site-packages (and it should already be searched by default) since all the others (except the demo) are Python packages and only need to have their parent directory on the PYTHONPATH. With what you have above the contents of ...\wxPython are going to be searched first and it will find the wx.py located there.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!