Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#14017 closed defect (fixed)

py25-curses 2.5.1 Runtime error, unable to import curses.panel

Reported by: greg@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: import error curses Cc: blb@…
Port: py25-curses


When I try the following:

python2.5 -c 'import curses.panel'

I get the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/local/lib/python2.5/curses/", line 8, in <module>
    from _curses_panel import *
ImportError: dlopen(/opt/local/lib/python2.5/site-packages/, 2): Symbol not found: _bottom_panel
  Referenced from: /opt/local/lib/python2.5/site-packages/
  Expected in: dynamic lookup

Change History (5)

comment:1 Changed 10 years ago by jmroot (Joshua Root)

  • Cc greg@… mww@… removed
  • Owner changed from macports-tickets@… to mww@…

comment:2 Changed 9 years ago by aetherknight@…

I had a similar error to the above, and I made the following modification to py25-curses 2.5.2's to get it working:

--- /opt/local/var/macports/sources/  2007-02-17 12:08:53.000000000 -0800
+++ files/      2008-07-28 18:22:32.000000000 -0700
@@ -25,6 +25,6 @@
       ext_modules = [Extension('_curses_panel', ['_curses_panel.c'],
                                include_dirs = inc_dirs,
-                               libraries = libs,
+                               libraries = libs + ["panelw"],
                                library_dirs = lib_dirs)]
       ) did not include libpanel or libpanelw as a needed library for the _curses_panel module, so symbols provided by either of those libraries aren't found at runtime.

comment:3 Changed 9 years ago by blb@…

  • Cc blb@… added
  • Keywords curses added; py25-curses removed
  • Port py25-curses added

Still an issue with 2.5.4 and aetherknight's patch works for me as well. Markus can we update py25-curses with this?

comment:4 Changed 9 years ago by blb@…

  • Resolution set to fixed
  • Status changed from new to closed

Updated in r48504 (maintainer timeout).

comment:5 Changed 9 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.