[wxPython-users] beginner
Robin Dunn
robin at alldunn.com
Thu Sep 28 10:45:06 PDT 2006
Ketan Maheshwari wrote:
> Hi!
> I am a complete beginner to Python and wxPython.
> I have just installed wx on my machine but i m not able to run the samples.
> My environment looks like this ...
>
> $PYTHONPATH=/scratch/kmaheshw/wxPython-src-2.6.3.3/wxPython
> $WX_CONFIG=/scratch/kmaheshw/wxPython/bld/bin/wx-config
> $LD_LIBRARY_PATH=/scratch/kmaheshw/wxPython/bld/lib
>
> When I try to run the demo program as follows:
> demo > python2.3 demo.py
>
> I get following error ...
> Traceback (most recent call last):
> File "demo.py", line 3, in ?
> import Main
> File "/scratch/kmaheshw/wxPython-src-2.6.3.3/wxPython/demo/Main.py",
> line 32, in ?
> import wx # This module uses the new wx namespace
> ImportError: No module named wx
>
> What should I do?
Did you follow all of the build steps? If you didn't do the build step
for wxPython then wxPython-src-2.6.3.3/wxPython/wx won't get a
__init__.py file copied into it and you could end up with this error.
http://wxpython.org/builddoc.php
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list