[wxPython] problem with BOA

Hi...

I am new with BOA and Python and I cant run BOA. I get this error...

···

----------------------------

importing Prefs

importing wxPython...
Traceback (most recent call last):
  File "C:\Python21\Pythonwin\pywin\framework\scriptutils.py", line 301, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\Python21\Boa\Boa.py", line 60, in ?
    import Preferences
  File "C:\Python21\Boa\Preferences.py", line 16, in ?
    from wxPython import wx
ImportError: No module named wxPython
-------------
I use Win98, ActiveState Python 2.1 , BOA 0.05 and WXPython 2.3

The problem is with Python, BOA or WXPython? (or windows??? :slight_smile:
Thank's

Marcos de Carvalho

Marcos Oliveira de Carvalho wrote:

ImportError: No module named wxPython
-------------
I use Win98, ActiveState Python 2.1 , BOA 0.05 and WXPython 2.3

The problem is with Python, BOA or WXPython? (or windows??? :slight_smile:
Thank's

You don't appear to have wxPython installed, or at least not correctly.
Python works by importing various modules that add functionality.
wxPython is one of them, and the error above indicates that Python can't
find it. Check the wxPython install procedure, and try to see if you can
run the line:

from wxPython import wx

at the Python command line. Until you can get wx to import without
error, you won't be able to run BOA.

Another hint: it might be worth starting out wiht a little basic Python
to get the hang of it before starting on Boa. Go to www.python.org and
go through the tutorial. There is also a page there with links to a
bunch of other good web sites for newbies.

-good luck,

-Chris

···

--
Christopher Barker,
Ph.D.
ChrisHBarker@home.net --- --- ---
http://members.home.net/barkerlohmann ---@@ -----@@ -----@@
                                   ------@@@ ------@@@ ------@@@
Oil Spill Modeling ------ @ ------ @ ------ @
Water Resources Engineering ------- --------- --------
Coastal and Fluvial Hydrodynamics --------------------------------------
------------------------------------------------------------------------

ImportError: No module named wxPython
-------------
I use Win98, ActiveState Python 2.1 , BOA 0.05 and WXPython 2.3

The problem is with Python, BOA or WXPython? (or windows??? :slight_smile:

Did you install wxPython somewhere not on the PYTHONPATH, or perhaps for a
different version of Python?

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!