[Pythonmac-SIG] python help() >modules problem

George Wright georgewr at bigpond.net.au
Sat Nov 22 21:54:30 CET 2008


Gidday
When I start python2.5 (on OSX 2.5.4) in Terminal
then help()
then modules
I don't get the expected list of modules but this error:
help> modules
Please wait a moment while I gather a list of all available modules...
Leopard libedit detected.
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site.py", line 348, in __call__
 return pydoc.help(*args, **kwds)
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pydoc.py", line 1647, in __call__
 self.interact()
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pydoc.py", line 1665, in interact
 self.help(request)
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pydoc.py", line 1681, in help
 elif request == 'modules': self.listmodules()
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pydoc.py", line 1802, in listmodules
 ModuleScanner().run(callback)
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pydoc.py", line 1853, in run
 for importer, modname, ispkg in pkgutil.walk_packages():
 File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/pkgutil.py", line 110, in walk_packages
 __import__(name)
 File "/usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- 
packages/wxaddons/__init__.py", line 29, in <module>
 config = wx.Config("wxaddons")
 File "//usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- 
packages/wx-2.8-mac-unicode/wx/_misc.py", line 3298, in __init__
 _misc_.Config_swiginit(self,_misc_.new_Config(*args, **kwargs))
wx._core.PyNoAppError: The wx.App object must be created first!
I don't understand why it is interested in wx.App ??
If I try to run wx demos from the developer examples I get a similar 
response:
python2.5 /Developer/Examples/wxWidgets/wxPython/demo/SizedControls.py
Traceback (most recent call last):
 File "/Developer/Examples/wxWidgets/wxPython/demo/ 
SizedControls.py", line 2, in <module>
 import wxaddons.sized_controls as sc
 File "/usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- 
packages/wxaddons/__init__.py", line 29, in <module>
 config = wx.Config("wxaddons")
 File "//usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- 
packages/wx-2.8-mac-unicode/wx/_misc.py", line 3298, in __init__
 _misc_.Config_swiginit(self,_misc_.new_Config(*args, **kwargs))
wx._core.PyNoAppError: The wx.App object must be created first!
Furthermore:
If I start python2.6 I do get the asked for list of modules but the 
Python application fires up
and bounces in dock until it eventually stops and reports "Application 
Not Responding"
Anyone help?
George Wright
georgewr at bigpond.net.au
http://mywebsite.bigpond.net.au/georgewr
http://www.labyrinth.net.au/~gwright


More information about the Pythonmac-SIG mailing list

AltStyle によって変換されたページ (->オリジナル) /