could not start boa constructor on windows with python2.7

1.5k views Asked by At

I am trying to install Boa Constructor on windows 7. I am using python 27. After installing when i run Boa.py it gave me an error

Starting Boa Constructor v0.6.1
importing wxPython
reading user preferences
Created directory: C:\Users\SONY\.boa-constructor
Created directory: C:\Users\SONY\.boa-constructor\docs-cache
Created directory: C:\Users\SONY\.boa-constructor\Plug-ins
Traceback (most recent call last):
  File "C:\Python27\Lib\site-packages\boa-constructor\Boa.py", line 271, in <mod
ule>
    import Preferences, Utils
  File "C:\Python27\Lib\site-packages\boa-constructor\Preferences.py", line 151,
 in <module>
    execfile(file)
  File "C:\Users\SONY\.boa-constructor\prefs.rc.py", line 26, in <module>
    splitterStyle = wx.SP_LIVE_UPDATE | wx.SP_3DSASH | wx.NO_3D
AttributeError: 'module' object has no attribute 'NO_3D'

Can somebody please help

4

There are 4 answers

0
Werner On

If you want to keep using Boa you might want to look at this fork of it.

https://bitbucket.org/cwt/boa-constructor

Looks pretty active and seems to be running against recent versions of wxPython.

0
varun On

I too faced the same problem and downgrading to wxPython version 2.8.12.1 worked for me.

3
Mike Driscoll On

Boa Constructor appears to be importing wx incorrectly. It should not be doing this: import wxPython. That was deprecated many years ago. I am guessing you are using wxPython 3.x, which Boa Constructor does not support. If you want to continue using this tool, you will have to downgrade your wxPython installation.

0
kamzur On

to run the BOA Constructor in Python 2.7, you can use wxPython version 2.8.11.0. or 2.8.12.1

for a more complete solution, you can read it here : http://sourceforge.net/p/boa-constructor/discussion/5483/thread/e6f45f66/

to download wxpython version above, please go to here : http://www.lfd.uci.edu/~gohlke/pythonlibs/#wxpython