Re: [SE|PY-macdev] New error at SEPY startup on OS X
Brought to you by:
sephiroth_tmm
|
From: Richard W. <rwa...@ma...> - 2004-07-30 19:57:37
|
Greetings -
Yes, that's where I am with it right now. However, swapping out the
"images.getp_charBitmap()" call in line 946 with another one (mine just
duplicates the "images.getc_packageBitmap()" call from the previous
line) gets past the error. It seems the bitmap returned by
getp_chatBitmap() isn't the correct size that the imagelist_1 object is
expecting. Weird though that this doesn't happen on windows machines.
After doing this however, the new error message I get is as follows:
File
"//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/wx/_core.py", line 10528, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/usr/local/src/SciTE/SEPY.py", line 403, in
__checkForNewDocument
self.OnNewDocument(0)
File "/usr/local/src/SciTE/SEPY.py", line 2299, in OnNewDocument
view = Editor(editor_parent, id, doc_name, self, text, stat,
newlines, classpaths = classpaths)
File "/usr/local/src/SciTE/Editor.py", line 252, in __init__
self.RegisterImage(4, getEmptyBitmap())
File
"//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/wx/stc.py", line 1400, in RegisterImage
return _stc.StyledTextCtrl_RegisterImage(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "bitmap.GetWidth() == m_width
&& bitmap.GetHeight() == m_height" failed in
/usr/local/src/wxWidgets/src/generic/imaglist.cpp(74): invalid bitmap
size in wxImageList: this might work on this platform but definitely
won't under Windows.
To get around this just to see what happens, I performed a similar
workaround and replaced line 252 with:
self.RegisterImage(4, getPrototype3Bitmap())
Doing this results in the following error:
File
"//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/wx/_core.py", line 10528, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/usr/local/src/SciTE/SEPY.py", line 403, in
__checkForNewDocument
self.OnNewDocument(0)
File "/usr/local/src/SciTE/SEPY.py", line 2299, in OnNewDocument
view = Editor(editor_parent, id, doc_name, self, text, stat,
newlines, classpaths = classpaths)
File "/usr/local/src/SciTE/Editor.py", line 254, in __init__
self.SetupScrollBars()
File "/usr/local/src/SciTE/Editor.py", line 1638, in SetupScrollBars
v_bar = self.dyn_sash.GetVScrollBar(self)
AttributeError: 'Notebook' object has no attribute 'GetVScrollBar'
And that's pretty much where I am now...
Using:
OS X 10.3.4
python 2.3.4
wxPython 2.5.2.3p
Also, thanks so much for all your work on this Ale! Seeing the SEPY
mailing lists spike with all the recent feedback is making me all the
more excited to get this working.
Richard
On Jul 30, 2004, at 2:29 PM, valley wrote:
> Hi there,
>
> i got a new error message when using Python2.3.4 and the newest
> wxPython
> version
> (2.5.2.3p.20040723) on OS X Panther (10.3.4) when starting SEPY:
>
> [Debug] 20:14:29: Unrecognized accel key 'CAPSLOCK', accel string
> ignored.
> [Debug] 20:14:29: Unrecognized accel key 'CAPSLOCK', accel string
> ignored.
> Traceback (most recent call last):
> File "/Users/valley/Desktop/SEPY/SciTE/SEPY.py", line 139, in Notify
> frame = main_window(parent=None, id=wx.NewId(), title=About_title,
> dialog = self.dialog)
> File "/Users/valley/Desktop/SEPY/SciTE/SEPY.py", line 258, in
> __init__
> self.__set_properties()
> File "/Users/valley/Desktop/SEPY/SciTE/SEPY.py", line 946, in
> __set_properties
> imagelist_1.Add(images.getp_charBitmap()) # Characters
> File "//Library/Python/2.3/wx/_gdi.py", line 4359, in Add
> return _gdi_.ImageList_Add(*args, **kwargs)
> wx._core.PyAssertionError: C++ assertion "bitmap.GetWidth() == m_width
> &&
> bitmap.GetHeight() == m_height" failed in
> /tmp/BUILD/wxPythonSrc-2.5.2.3p.20040723/src/generic/imaglist.cpp(74):
> invalid bitmap size in wxImageList: this might work on this platform
> but
> definitely won't under Windows.
>
> i'm not sure but didn't someone else also once discovered a bitmap
> error
> on os x ?
> hope this helps a little bit further ;-)
>
> valley
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by OSTG. Have you noticed the changes on
> Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
> one more big change to announce. We are now OSTG- Open Source
> Technology
> Group. Come see the changes on the new OSTG site. www.ostg.com
> _______________________________________________
> sepy-macdev mailing list
> sep...@li...
> https://lists.sourceforge.net/lists/listinfo/sepy-macdev
>
|