Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iotop and ncurses compatible versions? #59

Open
techie2000 opened this issue Oct 12, 2021 · 6 comments
Open

iotop and ncurses compatible versions? #59

techie2000 opened this issue Oct 12, 2021 · 6 comments

Comments

@techie2000
Copy link
Contributor

techie2000 commented Oct 12, 2021

I previously used iotop without issue.
I came to use it the other day and got errors.
On taking a closer look today I have managed to avoid the errors by manually installing an older version of ncurses.

Errors observed running nerdpack version iotop-0.6-x86_64-1_fs.tgz and ncurses-terminfo-6.1.20191130-x86_64-1.txz :

Traceback (most recent call last):
  File "/usr/sbin/iotop", line 17, in <module>
    main()
  File "/usr/lib64/python2.7/site-packages/iotop/ui.py", line 620, in main
    main_loop()
  File "/usr/lib64/python2.7/site-packages/iotop/ui.py", line 610, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib64/python2.7/site-packages/iotop/ui.py", line 508, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib64/python2.7/curses/wrapper.py", line 22, in wrapper
    stdscr = curses.initscr()
  File "/usr/lib64/python2.7/curses/__init__.py", line 33, in initscr
    fd=_sys.__stdout__.fileno())
_curses.error: setupterm: could not find terminal

Installing versionhttps://slackware.uk/slackware/slackware64-14.2/slackware64/l/ncurses-5.9-x86_64-4.txz returns iotop to operational status.

@techie2000
Copy link
Contributor Author

techie2000 commented Oct 15, 2021

Looking at https://github.com/Tomas-M/iotop it would appear that the version of iotop in nerdpack (0.6) is massively out of date, with v1.20 being releases very recently - and includes pretty graphs of each process.

Could we get this version added?

@bitcoredotorg
Copy link

Hello @techie2000 , what commands did you issue to install the slackware ncurses version on undraid?
I am experiencing this issue as well, and I also echo your comments about the software being out of date.
Thank you all,

@MossyGreen
Copy link

Having the same issue. iotop worked previously, however when I tried to use it today I received the error above.

@boomam
Copy link

boomam commented Jan 2, 2022

Same issue here, too.

@boomam
Copy link

boomam commented Jan 2, 2022

Quick and dirty fix (done for unraid communinty, so adapt as needed)
https://forums.unraid.net/topic/35866-unraid-6-nerdpack-cli-tools-iftop-iotop-screen-kbd-etc/?do=findComment&comment=1079739

cd /mnt/user/XXXX (where XXXX is a share of yours)

wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/ncurses-5.9-x86_64-4.txz

upgradepkg --install-new ncurses-5.9-x86_64-4.txz

@techie2000
Copy link
Contributor Author

Hello @techie2000 , what commands did you issue to install the slackware ncurses version on undraid? I am experiencing this issue as well, and I also echo your comments about the software being out of date. Thank you all,

@boomam has provided a solution to keep running the nerd version (0.6) of iotop (#59 (comment)).
For now, I'm keeping ncurses-5.9-x86_64-4.txz in /boot/extra so it's available when I need it (after each reboot) and without having to think why it's not working and how to resolve it.
Of course, one needs to take care that a newer version of ncurses is not required for some feature of core unraid in a future release...

I think it's probably a job for a wknd for me to recompile v1.20 on my box and keep that in my /boot/extra instead - best of both worlds - no downgrading of ncurses and newer/latest version of iotop :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants