Boa with wxPython 2.8

Here's the stack trace:

{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'}

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

I did figure that I could go through the code with a regular expression
search and replace, maybe something like:

Search for : wx([A-Za-z])
Replace with: wx.\1

And then probably change the "from wxPython.wx import *" to "import wx",
or some such thing.

I'm new the the Python mailing lists, in general, do you know the name
of the Boa mailing list?

Thanks!!

- Aaron

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Friday, January 12, 2007 2:55 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Boa with wxPython 2.8

Aaron Rubin wrote:
> Hi -
>
> 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:

Have you asked about it on the BOA mail list?

>
> NameError: name 'wxSTC_STYLE_DEFAULT' is not defined
>
> I can give the full output with stack trace, if necessary,
but I would
> guess someone's seen this before?

Please aways provide the stack trace. Without it we can't
know if the exception is coming from Boa code, wxPython old
namespace code, or your code.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

Aaron Rubin wrote:

I'm new the the Python mailing lists, in general, do you know the name
of the Boa mailing list?
  

You can sign up for the list at: boa-constructor-users List Signup and Options

Once signed up, send emails to the list using this address: boa-constructor-users@lists.sourceforge.net

Tim Black

Hi Aaron,

Do you have a recent CVS copy of Boa 0.5.2?

This sounds familiar and looking at my copy of Boa it uses

"wx.stc.STC_STYLE_DEFAULT" etc.

Werner

Just for the archive here:

As pointed out by Wolfgang on the Boa list the solution to this issue is:

<http://sourceforge.net/mailarchive/forum.php?thread_id=30951986&forum_id=6905&gt;

In short: clean up stc-styles.rc.cfg in $HOME/.boa-constructor or simply
delete that file, it will be recreated with default settings.

Werner

Werner F. Bruhin wrote:

···

Hi Aaron,

Do you have a recent CVS copy of Boa 0.5.2?

This sounds familiar and looking at my copy of Boa it uses

"wx.stc.STC_STYLE_DEFAULT" etc.

Werner

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org