Opened 16 years ago

Closed 11 years ago

#16312 closed defect (fixed)

py25-wxpython causes an error message in the Python interactive interpreter help().

Reported by: paidhi@… Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: python wxwidgets wxpython py25 Cc: jyrkiwahlstedt, mf2k (Frank Schima), mww@…
Port: py25-wxpython-2.8

Description

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,
-Markus-

Change History (8)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Cc: jwa@… added
Owner: changed from macports-tickets@… to mww@…

Assigning to maintainers.

comment:2 Changed 16 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:3 Changed 16 years ago by mf2k (Frank Schima)

Port: py25-wxpython py-wxpython added

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...

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:5 Changed 11 years ago by mojca (Mojca Miklavec)

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".

comment:6 Changed 11 years ago by mojca (Mojca Miklavec)

Owner: changed from mww@… to mojca@…
Port: py25-wxpython-2.8 added; py25-wxpython py-wxpython removed
Status: newassigned

comment:7 Changed 11 years ago by mojca (Mojca Miklavec)

Cc: mww@… added
Version: 1.6.0

comment:8 Changed 11 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.