Web lists-archives.com

Python issue?




Hi, I use phwmon [1] to have some system monitors on the taskbar.

Since last system update I have this message (and phwmon tries to
launch but fails):

$ phwmon.py
Traceback (most recent call last):
  File "Software/phwmon-master-b162e53dccc4adf8f11f49408d05fd85d9c6c909/phwmon.py",
line 341, in <module>
    HardwareMonitor()
  File "Software/phwmon-master-b162e53dccc4adf8f11f49408d05fd85d9c6c909/phwmon.py",
line 128, in __init__
    self.initDiskIo()
  File "Software/phwmon-master-b162e53dccc4adf8f11f49408d05fd85d9c6c909/phwmon.py",
line 274, in initDiskIo
    v = psutil.disk_io_counters(perdisk=False)
  File "/usr/lib/python2.7/dist-packages/psutil/__init__.py", line
2026, in disk_io_counters
    rawdict = _psplatform.disk_io_counters(**kwargs)
  File "/usr/lib/python2.7/dist-packages/psutil/_pslinux.py", line
1115, in disk_io_counters
    for entry in gen:
  File "/usr/lib/python2.7/dist-packages/psutil/_pslinux.py", line
1088, in read_procfs
    raise ValueError("not sure how to interpret line %r" % line)
ValueError: not sure how to interpret line '   8       0 sda 752155
419171 18693084 3393871 247845 1174668 17206000 688827 0 2271452
2271460 0 0 0 0\n'

Any hint/clue?

This seems to have already happened like a month ago [2], but the code
on GitLab hasn't changed in more than a year, so, the fix must have
come from some other way...

Thanks!

[1] https://gitlab.com/o9000/phwmon
[2] https://gitlab.com/o9000/phwmon/issues/3