[MacPorts] #16312: py25-wxpython causes an error message in the Python interactive interpreter help().

MacPorts noreply at macports.org
Thu Aug 14 05:23:55 PDT 2008


#16312: py25-wxpython causes an error message in the Python interactive interpreter
help().
--------------------------------------------+-------------------------------
 Reporter:  paidhi at mospheira.net            |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                          |      Status:  new                                  
 Priority:  Normal                          |   Milestone:  Port Bugs                            
Component:  ports                           |     Version:  1.6.0                                
 Keywords:  python wxwidgets wxpython py25  |  
--------------------------------------------+-------------------------------
 After installing py25-wxpython trying to show all available modules in the
 Python interpreter fails with an error message.

 Here is how to reproduce it:


 {{{
 $ python
 Python 2.5.2 (r252:60911, Aug  8 2008, 22:25:12)
 [GCC 4.0.1 (Apple Inc. build 5484)] 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...

 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.py",
 line 346, in __call__
     return pydoc.help(*args, **kwds)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pydoc.py",
 line 1648, in __call__
     self.interact()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pydoc.py",
 line 1666, in interact
     self.help(request)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pydoc.py",
 line 1682, in help
     elif request == 'modules': self.listmodules()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pydoc.py",
 line 1803, in listmodules
     ModuleScanner().run(callback)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pydoc.py",
 line 1854, in run
     for importer, modname, ispkg in pkgutil.walk_packages():
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pkgutil.py",
 line 110, in walk_packages
     __import__(name)
   File "/opt/local/lib/python2.5/site-packages/wxaddons/__init__.py", line
 29, in <module>
     config = wx.Config("wxaddons")
   File "/opt/local/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!
 >>>
 }}}


 My environment:

 MacOS 10.5.4


 {{{
 $ port version
 Version: 1.600

 $ port installed |grep wx
   py25-wxpython @2.8.8.1_0 (active)
   wxWidgets @2.8.8_0 (active)
 }}}

 After uninstalling py25-wxpython it works.


 Thanks for any help,
 [[BR]]
 -Markus-

-- 
Ticket URL: <http://trac.macports.org/ticket/16312>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list