Installing Boa Constructor

Grant Ito <[email protected]> Mon, 22 Jun 2009 00:05:53 -0700
Newsgroups gmane.comp.ide.boa-constructor.user
Message-ID <[email protected]>
Hello.

I'm brand new to Boa Constructor, though I've been programming in Python
for a while now. Boa Constructor was recommended to me and the screen
shots look great!

That said, I'm having problems with the installation. I'm trying to
install it on my Linux box (OpenSuse 11.1, running KDE 4.1.3). I've
followed the instructions from
http://boa-constructor.sourceforge.net/Installation.html:

> Linux
> Generic
>
> 1. Install Python, if not already installed. Most distrubutions will
> come with python pre-installed.
>
> 2. Install glibc, gtk+, if not already installed. Most distrubutions
> will come with both of these libraries, or compiled versions can be
> readily downloaded. A good resource for getting or building these
> libraries can be found on the www.wxpython.org .
>
> 3. Download wxPython from www.wxpython.org . wxPython is typically
> installed in the Python directory (/usr/lib/python2.2 for example).
> See http://www.wxpython.org/download.php#build if a pre-built binary
> is not available.
>
> 4. Download the latest Boa Constructor from
> http://boa-constructor.sourceforge.net . Un-zip Boa into the Python
> directory (/usr/lib/python2.2 for example).
>
> 5. The following command line should start Boa Constructor(This can be
> added as a link to Application on your desktop):
>
>          <path to python>/python <path to python directory>/boa/Boa.py
>
>            EX: /usr/bin/python /usr/lib/python2.2/boa/Boa.py
>
> Boa is ready to run!


Both glibc and gtk+ were already on my machine, as was wxPython though
it was not installed in the directory suggested by the instructions;
rather, yast installed it in
/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/

I did install Boa Constructor in its own subdirectory of
/usr/lib/python2.6, though.

I ran Boa.py from root mode and it did a bunch of stuff including
installing files in /root/.boa-constructor and then the program windows
came up. Boa Constructor looks great!

Unfortunately, after closing them down and trying to run Boa.py again, I
got a traceback error:

> Starting Boa Constructor v0.6.1
> importing wxPython
> reading user preferences
> Traceback (most recent call last):
>   File "Boa.py", line 271, in <module>
>     import Preferences, Utils
>   File "/usr/lib/python2.6/boa-constructor-0.6.1/Preferences.py", line
> 174, in <module>
>     c = wx.FileConfig(localFilename=file, style=
> wx.CONFIG_USE_LOCAL_FILE)
>   File
> "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py",
> line 3313, in __init__
>     _misc_.FileConfig_swiginit(self,_misc_.new_FileConfig(*args,
> **kwargs))
> wx._core.PyNoAppError: The wx.App object must be created first!

The same traceback message comes up when I try to run it from user mode.


Can anyone please suggest how I can get this working?

Many thanks,
Grant.

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org