[Tutor] Cannot run the demo.py of wxPythonDemo
kbond
kbond@free.fr
Wed Nov 27 16:13:02 2002
Hi,
I am not sure this is the right place to ask this question but i didn't
find a better one.
Few days ago I have downloaded the tarball wxPythonDemo from
(http://www.wxpython.org/download.php).
when I try to run the demo.py Iget the following message:
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/yml/download/python/wxPython-demo-2.3.3.1/demo/demo.py",
line 3, in ?
import Main
File "./Main.py", line 20, in ?
import images
File "images.py", line 4, in ?
from wxPython.wx import wxImageFromStream
ImportError: cannot import name wxImageFromStream
the file wxImageFromStream.py is in the same directory than demo.py
Thank you for you help,
Yann
conf: debian woody
>>> sys.path
['/home/yml/download', '/usr/lib/idle-python2.1', '/usr/bin',
'/usr/lib/python2.1', '/usr/lib/python2.1/plat-linux2',
'/usr/lib/python2.1/lib-tk', '/usr/lib/python2.1/lib-dynload',
'/usr/local/lib/python2.1/site-packages',
'/usr/lib/python2.1/site-packages',
'/usr/lib/python2.1/site-packages/Bobo',
'/usr/lib/python2.1/site-packages/HTMLgen',
'/usr/lib/python2.1/site-packages/Numeric',
'/usr/lib/python2.1/site-packages/PIL',
'/usr/lib/python2.1/site-packages/gadfly', '/usr/lib/site-python']
>>> sys.version
'2.1.3 (#1, Apr 20 2002, 10:14:34) \n[GCC 2.95.4 20011002 (Debian
prerelease)]'