[Pythonmac-SIG] python help() problems
Chris Rebert
pythonmac at rebertia.com
Sat Dec 20 01:31:29 CET 2008
On Fri, Dec 19, 2008 at 1:14 PM, George Wright <georgewr at bigpond.net.au> wrote:
> Gidday
> I continue to have problems with python 2.5.1 and python2.4 on OSX 10.5.5
> I can't access help() > modules Here is the complete error report for 2.5
>
> geomacbk:~ georgewr$ python
> Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> help()
>
> Welcome to Python 2.5! This is the online help utility.
>
> If this is your first time using Python, you should definitely check out
> the tutorial on the Internet at http://www.python.org/doc/tut/.
>
> Enter the name of any module, keyword, or topic to get help on writing
> Python programs and using Python modules. To quit this help utility and
> return to the interpreter, just type "quit".
>
> To get a list of available modules, keywords, or topics, type "modules",
> "keywords", or "topics". Each module also comes with a one-line summary
> of what it does; to list the modules whose summaries contain a given word
> such as "spam", type "modules spam".
>
> help> modules
>
> Please wait a moment while I gather a list of all available modules...
>
> Leopard libedit detected.
> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pkgutil.py:110:
> DeprecationWarning: twisted.flow is unmaintained.
> __import__(name)
> /Library/Python/2.5/site-packages/Twisted-8.1.0-py2.5-macosx-10.5-i386.egg/twisted/words/im/__init__.py:8:
> UserWarning: twisted.im will be undergoing a rewrite at some point in the
> future.
> warnings.warn("twisted.im will be undergoing a rewrite at some point in the
> future.")
> 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!
>>>>
Doesn't sound very Mac-specific to me. Sounds like Python is trying to
import part of a package named 'wxPython-unicode-2.8.9.1' in the
course of probing for modules and that this import epic-fails. The
error sounds wxpython-related if anything. I'd try asking the wxpython
or c.l.p mailinglists rather than here.
Cheers,
Chris
--
Follow the path of the Iguana...
http://rebertia.com
More information about the Pythonmac-SIG
mailing list