[MacPorts] #14017: py25-curses 2.5.1 Runtime error, unable to import curses.panel

MacPorts noreply at macports.org
Mon Jul 28 18:33:42 PDT 2008


#14017: py25-curses 2.5.1 Runtime error, unable to import curses.panel
----------------------------------+-----------------------------------------
  Reporter:  greg at tsukasa.net.au  |       Owner:  mww at macports.org         
      Type:  defect               |      Status:  new                      
  Priority:  Normal               |   Milestone:  Port Bugs                
 Component:  ports                |     Version:  1.7.0                    
Resolution:                       |    Keywords:  py25-curses, import error
----------------------------------+-----------------------------------------
Comment (by aetherknight at gmail.com):

 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.

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


More information about the macports-tickets mailing list