[MacPorts] #16312: py25-wxpython causes an error message in the Python interactive interpreter help().
#16312: py25-wxpython causes an error message in the Python interactive interpreter help(). --------------------------------------------+------------------------------- Reporter: paidhi@mospheira.net | Owner: macports-tickets@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
#16312: py25-wxpython causes an error message in the Python interactive interpreter help(). -----------------------------------+---------------------------------------- Reporter: paidhi@mospheira.net | Owner: mww@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python wxwidgets wxpython py25 -----------------------------------+---------------------------------------- Changes (by macsforever2000@macports.org): * cc: jwa@macports.org (added) * owner: macports-tickets@lists.macosforge.org => mww@macports.org Comment: Assigning to maintainers. -- Ticket URL: <http://trac.macports.org/ticket/16312#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16312: py25-wxpython causes an error message in the Python interactive interpreter help(). -----------------------------------------+---------------------------------- Reporter: paidhi@mospheira.net | Owner: mww@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: python wxwidgets wxpython py25 Port: py25-wxpython, py-wxpython | -----------------------------------------+---------------------------------- Changes (by macsforever2000@macports.org): * port: => py25-wxpython, py-wxpython Comment: I just tried with version 2.8.9.1 of py25-wxpython and it simply hangs. {{{ help> modules Please wait a moment while I gather a list of all available modules... }}} -- Ticket URL: <http://trac.macports.org/ticket/16312#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16312: py25-wxpython causes an error message in the Python interactive interpreter help(). -------------------------------------+------------------------------------- Reporter: paidhi@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: python wxwidgets Port: py25-wxpython, py- | wxpython py25 wxpython | -------------------------------------+------------------------------------- Comment (by mojca@…): I notice that this ticket is 5 years old and probably a lot has changed in the meantime. I don't experience the problem with the new 64-bit {{{py27-wxpython-2.8 +gtk}}}, but I most probably need a volunteer to test it with {{{py25-wxpython-2.8 +carbon}}} on an "outdated OS". -- Ticket URL: <https://trac.macports.org/ticket/16312#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#16312: py25-wxpython causes an error message in the Python interactive interpreter help(). ------------------------------+-------------------------------------------- Reporter: paidhi@… | Owner: mojca@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: | Keywords: python wxwidgets wxpython py25 Port: | py25-wxpython-2.8 | ------------------------------+-------------------------------------------- Changes (by mojca@…): * owner: mww@… => mojca@… * status: new => assigned * port: py25-wxpython, py-wxpython => py25-wxpython-2.8 -- Ticket URL: <https://trac.macports.org/ticket/16312#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#16312: py25-wxpython causes an error message in the Python interactive interpreter help(). ------------------------------+-------------------------------------------- Reporter: paidhi@… | Owner: mojca@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: python wxwidgets wxpython py25 Port: | py25-wxpython-2.8 | ------------------------------+-------------------------------------------- Changes (by mojca@…): * cc: mww@… (added) * version: 1.6.0 => -- Ticket URL: <https://trac.macports.org/ticket/16312#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#16312: py25-wxpython causes an error message in the Python interactive interpreter help(). ------------------------------+-------------------------------------------- Reporter: paidhi@… | Owner: mojca@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: python wxwidgets wxpython py25 Port: | py25-wxpython-2.8 | ------------------------------+-------------------------------------------- Changes (by mojca@…): * status: assigned => closed * resolution: => fixed Comment: I tested this with `py25-wxpython-2.8 +carbon` on 10.6 and it seems to work. What fails is {{{ help> wx problem in wx - <type 'exceptions.ImportError'>: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /site-packages/wx-2.8-mac-unicode/wx/_core_.so, 2): no suitable image found. Did find: /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /site-packages/wx-2.8-mac-unicode/wx/_core_.so: mach-o, but wrong architecture }}} but honestly I have no clue how to properly run Python as `i386` in 10.6 and this is also out of scope for this ticket. I'm closing the ticket, but if anyone can still reproduce the error or has other problems with it, don't hesitate to reopen the ticket. -- Ticket URL: <https://trac.macports.org/ticket/16312#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts