Re: wxPython 2.8 with Boa 0.5.2
"Aaron Rubin" <Aaron.Rubin-9wuZ/[email protected]>
| Newsgroups | gmane.comp.ide.boa-constructor.user |
|---|---|
| Message-ID | <[email protected]> |
Ok, turns out I had deleted the wrong .cfg file. I have now deleted the
correct one and now I get this error message:
C:\Python24\Lib\site-packages\boa>python boa.py
Starting Boa Constructor v0.5.2
importing wxPython
reading user preferences
C:\Python24\Lib\site-packages\boa\Preferences.py:11: DeprecationWarning:
The wxP
ython compatibility package is no longer automatically generated or
activly main
tained. Please switch to the wx package as soon as possible.
#----------------------------------------------------------------------
Traceback (most recent call last):
File "boa.py", line 271, in ?
import Preferences, Utils
File "C:\Python24\Lib\site-packages\boa\Preferences.py", line 144, in
?
shutil.copy2(os.path.join(pyPath, 'Config', file), rcFile)
File "c:\python24\lib\shutil.py", line 92, in copy2
copyfile(src, dst)
File "c:\python24\lib\shutil.py", line 47, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory:
'C:\\Python24\\Lib\\site-packages\
\boa\\Config\\stc-styles.rc.cfg'
- Aaron
> -----Original Message-----
> From: Aaron Rubin
> Sent: Monday, January 29, 2007 2:35 PM
> To: Aaron Rubin; Wolfgang Strobl;
> boa-constructor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: RE: [Boa Constr] wxPython 2.8 with Boa 0.5.2
>
> Oops...forgot the rest of the stack trace:
>
>
> Traceback (most recent call last):
> File "boa.py", line 710, in ?
> main()
> File "boa.py", line 692, in main
> app = BoaApp()
> File "boa.py", line 496, in __init__
> wx.App.__init__(self, False)
> File
> "c:\python24\lib\site-packages\wx-2.8-msw-ansi\wx\_core.py",
> line 7748, i n __init__
> self._BootstrapApp()
> File
> "c:\python24\lib\site-packages\wx-2.8-msw-ansi\wx\_core.py",
> line 7345, i n _BootstrapApp
> return _core_.PyApp__BootstrapApp(*args, **kwargs)
> File "boa.py", line 544, in OnInit
> self.main.componentSB, self, self.main)
> File "C:\Python24\Lib\site-packages\boa\Editor.py", line
> 179, in __init__
> self.shell, self.shellPageIdx = self.addShellPage(shl,
> Shell, imgIdx)
> File "C:\Python24\Lib\site-packages\boa\Editor.py", line
> 570, in addShellPage
> shellEdit = tabPage = Shell(self.tabs, -1)
> File "C:\Python24\Lib\site-packages\boa\ShellEditor.py",
> line 67, in __init__
> StyledTextCtrls.PythonStyledTextCtrlMix.__init__(self, wId, ())
> File
> "C:\Python24\Lib\site-packages\boa\Views\StyledTextCtrls.py",
> line 761, i n __init__
> LanguageSTCMix.__init__(self, wId, margin, 'python',
> stcConfigPath)
> File
> "C:\Python24\Lib\site-packages\boa\Views\StyledTextCtrls.py",
> line 686, i n __init__
> (cfg, self.commonDefs, self.styleIdNames, self.styles,
> psgn, psg, olsgn,
> File
> "C:\Python24\Lib\site-packages\boa\Views\StyledTextCtrls.py",
> line 727, i n getSTCStyles
> return STCStyleEditor.initFromConfig(config, language)
> File
> "C:\Python24\Lib\site-packages\boa\Views\STCStyleEditor.py",
> line 1268, i n initFromConfig
> commonStyleIdNames = readPyValFromConfig(cfg,
> 'common.styleidnames')
> File
> "C:\Python24\Lib\site-packages\boa\Views\STCStyleEditor.py",
> line 1238, i n readPyValFromConfig
> return eval(value, ns)
> File "<string>", line 0, in ?
> NameError: name 'wxSTC_STYLE_DEFAULT' is not defined
>
> > -----Original Message-----
> > From: boa-constructor-users-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > [mailto:boa-constructor-users-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
> > On Behalf Of Aaron Rubin
> > Sent: Monday, January 29, 2007 2:22 PM
> > To: Wolfgang Strobl; boa-constructor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > Subject: Re: [Boa Constr] wxPython 2.8 with Boa 0.5.2
> >
> > Hi Wolfgang -
> >
> > Sorry it has taken me so long to get back to this. But I tried the
> > solution listed below with no luck.
> >
> > Again, here is the full output when I run Boa from the command line:
> >
> > C:\Python24\Lib\site-packages\boa>python boa.py Starting Boa
> > Constructor v0.5.2 importing wxPython reading user preferences
> > C:\Python24\Lib\site-packages\boa\Preferences.py:11:
> > DeprecationWarning:
> > The wxP
> > ython compatibility package is no longer automatically generated or
> > activly main tained. Please switch to the wx package as soon as
> > possible.
> >
> > #-------------------------------------------------------------
> > ---------
> > running main...
> > importing Models.Controllers
> > importing Models.EditorModels
> > importing Views
> > importing Views.SourceViews
> > importing Explorers.ExplorerNodes
> > importing Companions
> > importing PropertyEditors
> > importing Companions.FrameCompanions
> > importing Companions.WizardCompanions
> > importing Companions.ContainerCompanions importing
> > Companions.SizerCompanions importing Companions.BasicCompanions
> > importing Companions.ButtonCompanions importing
> > Companions.ListCompanions importing Companions.GizmoCompanion
> > importing Companions.LibCompanions importing
> Companions.UtilCompanions
> > importing Companions.DialogCompanions importing
> ZopeLib.ZopeCompanions
> > importing Models.PythonControllers importing
> Models.PythonEditorModels
> > importing Views.AppViews importing Views.PySourceView importing
> > Views.ProfileView importing Views.OGLViews importing
> > Explorers.FileExplorer importing Models.wxPythonControllers
> importing
> > Models.wxPythonEditorModels importing Views.Designer importing
> > Views.InspectableViews importing Views.CollectionEdit importing
> > Views.DataView importing Views.SizersView importing
> > Models.ConfigSupport importing Models.CPPSupport importing
> > Models.HTMLSupport importing Models.XMLSupport importing
> > ZopeLib.ZopeEditorModels executing plug-ins...
> > importing Explorers
> > importing ZopeLib.ZopeViews
> > importing ZopeLib.ZopeExplorer
> > importing Explorers.PrefsExplorer
> > importing Explorers.SVNExplorer
> > creating Palette
> > importing Palette
> > creating Inspector
> > importing Inspector
> > creating Editor
> > importing Editor
> > importing Explorers.CVSExplorer
> > importing Explorers.ZipExplorer
> > importing Explorers.FTPExplorer
> > importing Explorers.DAVExplorer
> > importing Explorers.SSHExplorer
> > {wxSTC_STYLE_DEFAULT: 'Style default',
> > wxSTC_STYLE_LINENUMBER: 'Line numbers', w
> > xSTC_STYLE_BRACELIGHT: 'Matched braces', wxSTC_STYLE_BRACEBAD:
> > 'Unmatched brace'
> > , wxSTC_STYLE_CONTROLCHAR: 'Control characters',
> > wxSTC_STYLE_INDENTGUIDE: 'Inden
> > t guide'}
> >
> > Then I get the error dialog: name 'wxSTC_STYLE_DEFAULT' is
> not defined
> >
> > I had thought I was on to something when I thought I had
> both versions
> > of Boa installed at the same time, but I subsequently deleted the
> > older Boa and it still gives me this error.
> >
> > Any thoughts?
> >
> > - Aaron
> >
> > > -----Original Message-----
> > > From: boa-constructor-users-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > > [mailto:boa-constructor-users-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
> > > On Behalf Of Wolfgang Strobl
> > > Sent: Saturday, January 13, 2007 4:40 AM
> > > To: boa-constructor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > > Subject: Re: [Boa Constr] wxPython 2.8 with Boa 0.5.2
> > >
> > > "Aaron Rubin" <Aaron.Rubin-9wuZ/[email protected]>:
> > >
> > > >I've upgraded from wxPython 2.6 to 2.8. I just upgraded from
> > > Boa 0.4.4
> > > >to 0.5.2 I get the following error message when I try to run Boa:
> > > >
> > > >NameError: name 'wxSTC_STYLE_DEFAULT' is not defined
> > > >
> > > >Stack trace below, but I would guess someone's seen this before?
> > > >
> > > >Any help would be greatly appreciated!
> > >
> > > <http://sourceforge.net/mailarchive/forum.php?thread_id=309519
> > > 86&forum_id=6905>
> > >
> > > In short: clean up stc-styles.rc.cfg in $HOME/.boa-constructor or
> > > simply delete that file, it will be recreated with
> default settings.
> > >
> > >
> > > --
> > > Thank you for observing all safety precautions
> > >
> > >
> > > --------------------------------------------------------------
> > > -----------
> > > Take Surveys. Earn Cash. Influence the Future of IT Join
> > > SourceForge.net's Techsay panel and you'll get the chance
> to share
> > > your opinions on IT & business topics through brief surveys -
> > and earn cash
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge
> > > &CID=DEVDEV
> > > _______________________________________________
> > > Boa-constructor-users mailing list
> > > Boa-constructor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
> > >
> >
> > --------------------------------------------------------------
> > -----------
> > Take Surveys. Earn Cash. Influence the Future of IT Join
> > SourceForge.net's Techsay panel and you'll get the chance to share
> > your opinions on IT & business topics through brief surveys
> - and earn
> > cash http://www.techsay.com/default.php?page=join.php&p=sourceforge
> > &CID=DEVDEV
> > _______________________________________________
> > Boa-constructor-users mailing list
> > Boa-constructor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
> >
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV