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

[Linux] ValueError("not sure how to interpret line %r" % line) #1697

Closed
rbn42 opened this issue Feb 17, 2020 · 2 comments
Closed

[Linux] ValueError("not sure how to interpret line %r" % line) #1697

rbn42 opened this issue Feb 17, 2020 · 2 comments

Comments

@rbn42
Copy link

rbn42 commented Feb 17, 2020

ArchLinux

  • 5.6.7
  • python 3.8

Bug description
I have a script. The script was able to work before, but it cannot work now. This is the output of the script.

$ python disk.py 
Traceback (most recent call last):
  File "disk.py", line 19, in <module>
    print(next(start(3)))
  File "disk.py", line 7, in start
    data = psutil.disk_io_counters(perdisk=False)
  File "/usr/lib/python3.8/site-packages/psutil/__init__.py", line 2168, in disk_io_counters
    rawdict = _psplatform.disk_io_counters(**kwargs)
  File "/usr/lib/python3.8/site-packages/psutil/_pslinux.py", line 1125, in disk_io_counters
    for entry in gen:
  File "/usr/lib/python3.8/site-packages/psutil/_pslinux.py", line 1098, in read_procfs
    raise ValueError("not sure how to interpret line %r" % line)
ValueError: not sure how to interpret line '   8       0 sda 23531 18723 1862205 9367 10550 14296 455716 11521 0 17907 8067 0 0 0 0 1251 3221\n'

Downstream issue.

Test results
{ output of python -c psutil.tests (failures only, not full result) } Sorry, Cloning psutil repo takes too much time for the network here. Please let me know if you really need the test results.

@rbn42 rbn42 added the bug label Feb 17, 2020
@giampaolo
Copy link
Owner

I just released a new version which fixes this issue.

@rbn42
Copy link
Author

rbn42 commented Feb 19, 2020

Thank you.

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

No branches or pull requests

2 participants