Re: Installing Boa Constructor

"Werner F. Bruhin" <[email protected]> Mon, 22 Jun 2009 10:29:20 +0200
Newsgroups gmane.comp.ide.boa-constructor.user
Message-ID <[email protected]>
Hi Grant,

Grant Ito wrote:
> 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:
..
> 
> 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.
IIRC this has to do with a change in wxPython 2.8 and in my local copy 
of Boa I have this code in boa/Preferences.py:

# wx.FileConfig files
for confFile, version in (('stc-styles.rc.cfg', 1),):
     file = os.path.join(rcPath, confFile)
     confVersion = 0
     if os.path.exists(file):
         # don't do the wx.FileConfig version verification/upgrade until 
Riaan can fix this
         pass
         #c = wx.FileConfig(localFilename=file, style= 
wx.CONFIG_USE_LOCAL_FILE)
         #confVersion = c.ReadInt('/resourceconfig/version')

         #if confVersion < version:
         #    _backupAndCopyNewestConfig(confFile, file, '.cfg')
     else:
         shutil.copy2(os.path.join(pyPath, 'Config', confFile), file)


Hope this helps
Werner


------------------------------------------------------------------------------
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