Running DrPython on OS X

Help
2007-04-12
2013-04-26
  • 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 pythonmac.org/packages

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

    > python drpython.py
    Traceback (most recent call last):
      File "drpython.py", line 4013, in <module>
        main()
      File "drpython.py", 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/_core.py", line 7757, in __init__
        self._BootstrapApp()
      File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 7354, in _BootstrapApp
        return _core_.PyApp__BootstrapApp(*args, **kwargs)
      File "drpython.py", line 3983, in OnInit
        self.frame = DrFrame(None, 101, "DrPython - Untitled 1")
      File "drpython.py", line 530, in __init__
        self.ShowSourceBrowser()
      File "drpython.py", line 3342, in ShowSourceBrowser
        self.SourceBrowser = drSourceBrowserPanel(target, -1, self.prefs.sourcebrowserpanel, i)
      File "/Users/heberto/Downloads/drpython/drSourceBrowser.py", 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/drSourceBrowser.py", line 73, in __init__
        w.SetFaceName(yarrr[0])
      File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_gdi.py", line 2101, in SetFaceName
        return _gdi_.Font_SetFaceName(*args, **kwargs)
    wx._core.PyAssertionError: C++ assertion "status == noErr" failed at /BUILD/wxPython-src-2.8.3.0/src/mac/carbon/font.cpp(378) 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

    Heberto

     
    • 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\drPreferences.py
      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.

      regards,

       
    • hebertodelrio
      hebertodelrio
      2007-04-13

      I will definitely do it, thanks a lot