WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: python2.7 - curses module missing  (Read 7204 times)

Offline andriscom

  • Newbie
  • *
  • Posts: 32
python2.7 - curses module missing
« on: May 18, 2011, 05:07:02 AM »
Hi,

 I would like to make an extension from http://guichaz.free.fr/iotop/ which is a top like disk utilization displaying tool. This is based on python and it's trying to use the curses module.

 The problem is that when I try to launch ./iotop.py I get:

Code: [Select]
File "./iotop.py", line 9 in <module>
   from iotop.ui import main
File "/home/tc/iotop-0.4.3/iotop/ui.py", line 19 in <module>
   import curses
File "/usr/local/lib/python2.7/curses/__init__.py", line 15 in <module>
   from _curses import *
ImportError: No module named _curses

 I've got the same error after installing ncurses with: tce-load -wi ncurses

 Has anyone any idea how to fix this? I think the problem is in the python2.7 extension, some bad or missing linking to the _curses module, or something like that since the "import curses" command fails.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: python2.7 - curses module missing
« Reply #1 on: May 18, 2011, 05:15:57 AM »
You can try Python-2.6 from the repo instead of 2.7, import curses works. Don't think 2.7 is a must have version for your apps.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python2.7 - curses module missing
« Reply #2 on: May 18, 2011, 05:23:54 AM »
I see the missing file, I will aim to fix it tonght.

Offline andriscom

  • Newbie
  • *
  • Posts: 32
Re: python2.7 - curses module missing
« Reply #3 on: May 18, 2011, 06:14:19 AM »
Oh... great  :D Thank you guys! ... you are reacting really fast! :)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python2.7 - curses module missing
« Reply #4 on: May 18, 2011, 09:36:17 PM »
The fixed python.tcz/python-dev.tcz  is uploaded to the repo.

I don't know what happened with the previous build, but "import curses" works fine now and the missing file is now in place.

Thanks for testing and reporting the problem.