Ticket #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 |
Description
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/panel.py", line 8, in <module>
from _curses_panel import *
ImportError: dlopen(/opt/local/lib/python2.5/site-packages/_curses_panel.so, 2): Symbol not found: _bottom_panel
Referenced from: /opt/local/lib/python2.5/site-packages/_curses_panel.so
Expected in: dynamic lookup
Change History
comment:1 Changed 5 years ago by jmr@…
- Cc greg@…, mww@… removed
- Owner changed from macports-tickets@… to mww@…
comment:2 Changed 5 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 setup.py to get it working:
--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py25-curses/files/setup.py 2007-02-17 12:08:53.000000000 -0800
+++ files/setup.py 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)]
)
setup.py 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 4 years ago by blb@…
- Cc blb@… added
- Keywords curses added; py25-curses, removed
- Port set to py25-curses
Still an issue with 2.5.4 and aetherknight's patch works for me as well. Markus can we update py25-curses with this?
Note: See
TracTickets for help on using
tickets.

