RunDemo fails

I guess I hadn't tried running the demo in 2.5.1.0p8 before. When I tried today I got the following message...

Traceback (most recent call last):
   File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/Main.py", line 756, in OnClose
     frame = wxPythonDemo(None, -1, "wxPython: (A Demonstration)")
   File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/Main.py", line 443, in __init__
     self.txt = DemoCodeViewer(self.nb, -1)
   File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/Main.py", line 244, in __init__
     PythonSTC.__init__(self, parent, ID)
   File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/wxStyledTextCtrl_2.py", line 142, in __init__
     self.RegisterImage(3, images.getCopyBitmap())
   File "//Library/Python/2.3/wx/stc.py", line 1392, in RegisterImage
     return _stc.StyledTextCtrl_RegisterImage(*args, **kwargs)
wx.core.PyAssertionError: C++ assertion "bitmap.GetWidth() == m_width && bitmap.GetHeight() == m_height" failed in ../src/generic/imaglist.cpp(74): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.

I eventually have to Force Quit the app, it is stuck displaying the startup image and trying to Quit normally just repeats the traceback. I'm running Panther and installed from the disk image over the previous 2.5.1.0p7 disk image.

ka

Hi Kevin,

One problem I see that could cause problems (but probably shouldn't) is that you're running the 2.4 demo with 2.5. Could you try it with the 2.5.1 demo and see if you get the same problem? (BTW, for 2.5 releases the demo is not installed into Applications, it is left on the disk image.)

Thanks,

Kevin

···

On Mar 2, 2004, at 2:24 PM, Kevin Altis wrote:

I guess I hadn't tried running the demo in 2.5.1.0p8 before. When I tried today I got the following message...

Traceback (most recent call last):
  File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/Main.py", line 756, in OnClose
    frame = wxPythonDemo(None, -1, "wxPython: (A Demonstration)")
  File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/Main.py", line 443, in __init__
    self.txt = DemoCodeViewer(self.nb, -1)
  File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/Main.py", line 244, in __init__
    PythonSTC.__init__(self, parent, ID)
  File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/wxStyledTextCtrl_2.py", line 142, in __init__
    self.RegisterImage(3, images.getCopyBitmap())
  File "//Library/Python/2.3/wx/stc.py", line 1392, in RegisterImage
    return _stc.StyledTextCtrl_RegisterImage(*args, **kwargs)
wx.core.PyAssertionError: C++ assertion "bitmap.GetWidth() == m_width && bitmap.GetHeight() == m_height" failed in ../src/generic/imaglist.cpp(74): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.

I eventually have to Force Quit the app, it is stuck displaying the startup image and trying to Quit normally just repeats the traceback. I'm running Panther and installed from the disk image over the previous 2.5.1.0p7 disk image.

ka

Son of a *****. Okay, my bad. Of course, I just assumed I was running the 2.5.x demo because the directory name gets the ... style of name truncation in the Finder and I thought I had managed to delete all remnants of wxPython 2.4.x on Mac OS X. I feel the need to blurt out one more, ARGH! Of course, the correct demo starts up.

So a wxPython folder isn't going to get created in Applications with the wxPython demo, PyShell, samples, documentation, etc. installed? I think not creating the folder would be a mistake.

ka

···

On Mar 2, 2004, at 2:48 PM, Kevin Ollivier wrote:

Hi Kevin,

One problem I see that could cause problems (but probably shouldn't) is that you're running the 2.4 demo with 2.5. Could you try it with the 2.5.1 demo and see if you get the same problem? (BTW, for 2.5 releases the demo is not installed into Applications, it is left on the disk image.)

Thanks,

Kevin

On Mar 2, 2004, at 2:24 PM, Kevin Altis wrote:

I guess I hadn't tried running the demo in 2.5.1.0p8 before. When I tried today I got the following message...

Traceback (most recent call last):
  File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/Main.py", line 756, in OnClose
    frame = wxPythonDemo(None, -1, "wxPython: (A Demonstration)")
  File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/Main.py", line 443, in __init__
    self.txt = DemoCodeViewer(self.nb, -1)
  File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/Main.py", line 244, in __init__
    PythonSTC.__init__(self, parent, ID)
  File "/Applications/wxPythonOSX-2.4.2.4-panther/demo/wxStyledTextCtrl_2.py", line 142, in __init__
    self.RegisterImage(3, images.getCopyBitmap())
  File "//Library/Python/2.3/wx/stc.py", line 1392, in RegisterImage
    return _stc.StyledTextCtrl_RegisterImage(*args, **kwargs)
wx.core.PyAssertionError: C++ assertion "bitmap.GetWidth() == m_width && bitmap.GetHeight() == m_height" failed in ../src/generic/imaglist.cpp(74): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.

I eventually have to Force Quit the app, it is stuck displaying the startup image and trying to Quit normally just repeats the traceback. I'm running Panther and installed from the disk image over the previous 2.5.1.0p7 disk image.

ka

Kevin Altis wrote:

Son of a *****. Okay, my bad. Of course, I just assumed I was running the 2.5.x demo because the directory name gets the ... style of name truncation in the Finder and I thought I had managed to delete all remnants of wxPython 2.4.x on Mac OS X. I feel the need to blurt out one more, ARGH! Of course, the correct demo starts up.

So a wxPython folder isn't going to get created in Applications with the wxPython demo, PyShell, samples, documentation, etc. installed? I think not creating the folder would be a mistake.

I take it that you didn't read the ReadMe 1st file in the disk image? Or the release notes for pre7? http://starship.python.net/crew/robind/wxPython/preview/2.5.1.0p7/

:wink:

Lots of people told me that installing apps to /Applications was very un-Mac-like, and that they prefered just dragging the .app's out of the disk image and being able to drop it where ever they wanted. Add to that the fact that I never seemed to be able to get the permissions and such correct on those files, and it just seemed a ton easier to do it this way.

···

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

Kevin Altis wrote:

Son of a *****. Okay, my bad. Of course, I just assumed I was running the 2.5.x demo because the directory name gets the ... style of name truncation in the Finder and I thought I had managed to delete all remnants of wxPython 2.4.x on Mac OS X. I feel the need to blurt out one more, ARGH! Of course, the correct demo starts up.
So a wxPython folder isn't going to get created in Applications with the wxPython demo, PyShell, samples, documentation, etc. installed? I think not creating the folder would be a mistake.

I take it that you didn't read the ReadMe 1st file in the disk image? Or the release notes for pre7? http://starship.python.net/crew/robind/wxPython/preview/2.5.1.0p7/

:wink:

That is a whole different level of testing, I'm only doing the bleeding edge stuff where I can get cut.

Lots of people told me that installing apps to /Applications was very un-Mac-like, and that they prefered just dragging the .app's out of the disk image and being able to drop it where ever they wanted. Add to that the fact that I never seemed to be able to get the permissions and such correct on those files, and it just seemed a ton easier to do it this way.

Fair enough. Then I suggest putting everything besides the readme 1st and .pkg into a wxPython folder to simplify dragging to the Applications folder as well as putting appropriate instructions, maybe just another folder on the disk image that says "Drag the wxPython folder to Applications after installing the .pkg file" or something like that. I'm sure the pythonmac-sig folks will have opinions on what is the proper Mac way.

ka

···

On Mar 2, 2004, at 5:29 PM, Robin Dunn wrote: