Bug 5524 - _curses module is missing from latest python
Summary: _curses module is missing from latest python
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
: 5547 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-20 22:12 CEST by mnaud mnaud
Modified: 2012-04-22 18:58 CEST (History)
3 users (show)

See Also:
Source RPM: python-2.7.3-1.mga2.src.rpm
CVE:
Status comment:


Attachments

Description mnaud mnaud 2012-04-20 22:12:03 CEST
Description of problem:

iotop rpm package is not functional 


Version-Release number of selected component (if applicable):

2_b3 fresh install
iotop-0.4.4-1.mga2.noarch.rpm

How reproducible:
Steps to Reproduce:
1.install iotop
2.try to use it ... and see the error message


installation de iotop-0.4.4-1.mga2.noarch.rpm depuis /var/cache/urpmi/rpms                         
Préparation...                   #################################################################
      1/1: iotop                 #################################################################
[XXX@localhost ~]$ iotop
No module named _curses
To run an uninstalled copy of iotop,
launch iotop.py in the top directory
Comment 1 Jani Välimaa 2012-04-21 08:43:29 CEST
Currently _curses module isn't build when building latest python.

A snippet from python build log:
======
Python build finished, but the necessary bits to build these modules were not found:
bsddb185           sunaudiodev                        
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_curses            _curses_panel                      
======

CC: (none) => fundawang, jani.valimaa

Comment 2 Jani Välimaa 2012-04-21 10:03:47 CEST
It seems python build doesn't know from where to look for curses.h header file coming from ncursesw-devel pkg.

More detailed error msg:
In file included from /home/iurt/rpm/BUILD/Python-2.7.3/Modules/_cursesmodule.c:114:0:
Include/py_curses.h:50:20: fatal error: curses.h: No such file or directory
compilation terminated.
In file included from /home/iurt/rpm/BUILD/Python-2.7.3/Modules/_curses_panel.c:15:0:
Include/py_curses.h:50:20: fatal error: curses.h: No such file or directory
compilation terminated.
Jani Välimaa 2012-04-22 08:43:48 CEST

Summary: iotop-0.4.4-1.mga2.noarch.rpm is not functional => _curses module is missing from latest python
Source RPM: (none) => python-2.7.3-1.mga2.src.rpm

Comment 3 Jani Välimaa 2012-04-22 08:45:19 CEST
*** Bug 5547 has been marked as a duplicate of this bug. ***

CC: (none) => scott

Comment 4 Jani Välimaa 2012-04-22 10:33:09 CEST
Should be fixed in -2.mga2

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 5 Scott Karns 2012-04-22 18:58:43 CEST
Confirmed that -2.mga2 (x86_64) fixes the problem. Thanks!

Note You need to log in before you can comment on or make changes to this bug.