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 21:28:07
|
That got rid of the error message, but I'm still not able to create a =20= new document or open an existing one. The error message now is: Traceback (most recent call last): File "/usr/local/src/SciTE/SEPY.py", line 2299, in OnNewDocument view =3D Editor(editor_parent, id, doc_name, self, text, stat, =20 newlines, classpaths =3D classpaths) File "/usr/local/src/SciTE/Editor.py", line 276, in __init__ self.SetCodePage(stc.STC_CP_UTF8) File =20 "//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-=20= packages/wx/stc.py", line 1069, in SetCodePage return _stc.StyledTextCtrl_SetCodePage(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "codePage !=3D wxSTC_CP_UTF8" =20= failed in /usr/local/src/wxWidgets/contrib/src/stc/stc.cpp(423): =20 wxSTC_CP_UTF8 may not be used when wxUSE_UNICODE is off. And this looks like it's more to do with how I compiled wxWidgets. Is =20= there a way to run SEPY without it being dependant on unicode =20 functionality, or do I need to recompile wxWidgets and wxPython with =20 unicode enabled? If I remember correctly, there was an issue in the =20 wxWidgets code that prevented unicode compilation on FreeBSD and OSX =20 machines the last time I tried (about a month ago). Haven't checked to =20= see if its been resolved yet... -Richard On Jul 30, 2004, at 4:24 PM, Alessandro Crugnola *sephiroth* wrote: > Yes, you're right about the image size. It seems i wrong the size of =20= > certain icons.. Sorry > It was 19x17 > Anyway, as I sayd i will export all icons in PNG format in order to =20= > have more control of them. > > For the second issue. This is another thing i forget.. Since wxMac =20 > does not support the dynamic sash (the document splitter) this is > not used in mac (at least till wxPython will not support that under =20= > mac os) > > In the editor.py you should change the 'SetupScrollBars' method into =20= > this: > > # ------------------ > # DEFINE SCROLLBARS > # ------------------ > def SetupScrollBars(self): > # hook the scrollbars provided by the wxDynamicSashWindow > # to this view > if wx.Platform =3D=3D '__WXMSW__': > v_bar =3D self.dyn_sash.GetVScrollBar(self) > h_bar =3D self.dyn_sash.GetHScrollBar(self) > v_bar.Bind(wx.EVT_SCROLL, self.OnSBScroll) > h_bar.Bind(wx.EVT_SCROLL, self.OnSBScroll) > v_bar.Bind(wx.EVT_SET_FOCUS, self.OnSBFocus) > h_bar.Bind(wx.EVT_SET_FOCUS, self.OnSBFocus) > # And set the wxStyledText to use these scrollbars instead > # of its built-in ones. > self.SetVScrollBar(v_bar) > self.SetHScrollBar(h_bar) > else: > pass > > And let's see next errors ^_^ > > > Alessandro Crugnola - sephiroth > --------------------------------------------- > Macromedia Flash Team Volunteer > http://www.macromedia.com/go/team > Flash && PHP developer > ale...@se... > > *relax with SEPY http://www.sf.net/projects/sepy > --------------------------------------------- > > > ::-----Original Message----- > ::From: sep...@li... > ::[mailto:sep...@li...] On Behalf Of > ::Richard Wallace > ::Sent: venerd=EC 30 luglio 2004 20.57 > ::To: sep...@li... > ::Subject: Re: [SE|PY-macdev] New error at SEPY startup on OS X > :: > ::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/python > ::2.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 =3D Editor(editor_parent, id, doc_name, self, text, > ::stat, newlines, classpaths =3D 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/python > ::2.3/site- > ::packages/wx/stc.py", line 1400, in RegisterImage > :: return _stc.StyledTextCtrl_RegisterImage(*args, **kwargs) > ::wx._core.PyAssertionError: C++ assertion "bitmap.GetWidth() > ::=3D=3D m_width && bitmap.GetHeight() =3D=3D 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/python > ::2.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 =3D Editor(editor_parent, id, doc_name, self, text, > ::stat, newlines, classpaths =3D 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 =3D 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 =3D main_window(parent=3DNone, id=3Dwx.NewId(), > ::title=3DAbout_title, > ::> dialog =3D 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() > ::=3D=3D m_width > ::> && > ::> bitmap.GetHeight() =3D=3D m_height" failed in > ::> > ::/tmp/BUILD/wxPythonSrc-2.5.2.3p.20040723/src/generic/=20 > 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 > ::> > :: > :: > :: > ::------------------------------------------------------- > ::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 > > > > > ------------------------------------------------------- > 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 =20 > 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 > |