Web lists-archives.com

iotop not working

Hi List,

I run Stretch, I've just installed iotop and when I try to run it I get this:

# iotop
Traceback (most recent call last):
  File "/usr/sbin/iotop", line 17, in <module>
  File "/usr/lib/python3/dist-packages/iotop/ui.py", line 620, in main
  File "/usr/lib/python3/dist-packages/iotop/ui.py", line 610, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib/python3/dist-packages/iotop/ui.py", line 508, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib/python3.5/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python3/dist-packages/iotop/ui.py", line 501, in run_iotop_window
  File "/usr/lib/python3/dist-packages/iotop/ui.py", line 155, in run
  File "/usr/lib/python3/dist-packages/iotop/ui.py", line 434, in refresh_display
    lines = self.get_data()
  File "/usr/lib/python3/dist-packages/iotop/ui.py", line 415, in get_data
    return list(map(format, processes))
  File "/usr/lib/python3/dist-packages/iotop/ui.py", line 388, in format
    cmdline = p.get_cmdline()
  File "/usr/lib/python3/dist-packages/iotop/data.py", line 292, in get_cmdline
    proc_status = parse_proc_pid_status(self.pid)
  File "/usr/lib/python3/dist-packages/iotop/data.py", line 196, in parse_proc_pid_status
    key, value = line.split(':\t', 1)
ValueError: not enough values to unpack (expected 2, got 1)

Any help appreciated.


Rob McCathie