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>
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__
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__
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__
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-220.127.116.11/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
I'm sorry, but you are the first tester on OSX (I don't have one)
It seems, the font is not found.
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.
I will definitely do it, thanks a lot
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.