Running DrPython on OS X

  • hebertodelrio

    hebertodelrio - 2007-04-12

    Hi there, I want to run drpython in my iMac OS X 10.4.6 it has python 2.5 and wxPython 2.8.0 downloaded from

    When I run python drpython.pyw or python I get the same error

    > python
    Traceback (most recent call last):
      File "", line 4013, in <module>
      File "", line 3999, in main
        app = DrApp(0)
      File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/", line 7757, in __init__
      File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/", line 7354, in _BootstrapApp
        return _core_.PyApp__BootstrapApp(*args, **kwargs)
      File "", line 3983, in OnInit
        self.frame = DrFrame(None, 101, "DrPython - Untitled 1")
      File "", line 530, in __init__
      File "", line 3342, in ShowSourceBrowser
        self.SourceBrowser = drSourceBrowserPanel(target, -1, self.prefs.sourcebrowserpanel, i)
      File "/Users/heberto/Downloads/drpython/", line 166, in __init__
        self.classtree = drTree(self, -1, wx.Point(0, 0), wx.Size(400, 200), wx.TR_DEFAULT_STYLE|wx.TR_HIDE_ROOT, self.parent)
      File "/Users/heberto/Downloads/drpython/", line 73, in __init__
      File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/", line 2101, in SetFaceName
        return _gdi_.Font_SetFaceName(*args, **kwargs)
    wx._core.PyAssertionError: C++ assertion "status == noErr" failed at /BUILD/wxPython-src- in MacFindFont(): couldn't modify ATSU style

    Could anyone help me explain what all this mean and fix the proble so I can live happily ever after

    Thanks a lot


    • Franz Steinhaeusler

      I'm sorry, but you are the first tester on OSX (I don't have one)

      It seems, the font is not found.

      C:\Eigene Dateien\python\drpython\
      about line 493:
              self.sourcebrowserstyle = "fore:#FF0000,back:#FFFFFF,size:10,face:Sans Serif"
      What if you try to replace all the default fonts in DrPyhton, which gives error
      and try again
      (You could take a look at the wxPython demo and choose a font you like).
      It would be nice to let us know and maybe apply that patch then to DrPython.


    • hebertodelrio

      hebertodelrio - 2007-04-13

      I will definitely do it, thanks a lot


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks