wx.stc.py problem in wxPython 2.7.1.1

I've just installed wxPython 2.7.1.1 (Mac-unicode) in ActiveState's
Python 2.4.3 for Mac OS X. I'm wanting to work on the Firedrop2
blogging app which uses wax, a wrapper on wxPython. wax tries to
import wxPython and fails with an exception:
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wax/styledtextbox.py",
line 7, in ?
    import wxPython.stc as stc
  File
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.7.1-mac-unicode/wxPython/stc.py",
line 282, in ?
    wxSTC_LEX_ASP = wx.stc.STC_LEX_ASP
AttributeError: 'module' object has no attribute 'STC_LEX_ASP'

I've checked in wx.stc and yes indeed, that attribute is missing. Is
this a bug, or a feature? :slight_smile:

thanks
Stewart

···

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Stewart Midwinter wrote:

I've just installed wxPython 2.7.1.1 (Mac-unicode) in ActiveState's
Python 2.4.3 for Mac OS X. I'm wanting to work on the Firedrop2
blogging app which uses wax, a wrapper on wxPython. wax tries to
import wxPython and fails with an exception:
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wax/styledtextbox.py",
line 7, in ?
    import wxPython.stc as stc
  File
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.7.1-mac-unicode/wxPython/stc.py",
line 282, in ?
    wxSTC_LEX_ASP = wx.stc.STC_LEX_ASP
AttributeError: 'module' object has no attribute 'STC_LEX_ASP'

I've checked in wx.stc and yes indeed, that attribute is missing. Is
this a bug, or a feature? :slight_smile:

It's a bug, and it's been fixed.

···

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