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

ValueError: not sure how to interpret line '8[OS] title in lxcfs 5.0.0 #2148

Open
ghtian123 opened this issue Sep 28, 2022 · 6 comments
Open

Comments

@ghtian123
Copy link

ghtian123 commented Sep 28, 2022

Summary

  • OS: { type-or-version }
  • Architecture: { 64bit, 32bit, ARM, PowerPC, s390 }
  • Psutil version: { pip3 show psutil }
  • Python version: { python3 -V }
  • Type: { core, doc, performance, scripts, tests, wheels, new-api, installation }

Description

in lxcfs-5.0.0

[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.__version__
'5.9.2'
>>> psutil.disk_io_counters()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/psutil/__init__.py", line 2064, in disk_io_counters
    rawdict = _psplatform.disk_io_counters(**kwargs)
  File "/usr/local/lib/python3.5/dist-packages/psutil/_pslinux.py", line 1154, in disk_io_counters
    for entry in gen:
  File "/usr/local/lib/python3.5/dist-packages/psutil/_pslinux.py", line 1127, in read_procfs
    raise ValueError("not sure how to interpret line %r" % line)
ValueError: not sure how to interpret line '8       0 sda 0 0 0 0 46 0 977 34 0 2 0 0 0 0\n'
@giampaolo
Copy link
Owner

Could you paste the output of cat /proc/diskstats?

@ghtian123
Copy link
Author

Could you paste the output of cat /proc/diskstats?

cat /proc/diskstats
8       0 sda 0 0 0 0 2 0 42 7 0 0 0 0 0 0

@ghtian123
Copy link
Author

Python 3.5.3 (default, Nov  4 2021, 15:29:10)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.disk_io_counters()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/psutil/__init__.py", line 2064, in disk_io_counters
    rawdict = _psplatform.disk_io_counters(**kwargs)
  File "/usr/local/lib/python3.5/dist-packages/psutil/_pslinux.py", line 1154, in disk_io_counters
    for entry in gen:
  File "/usr/local/lib/python3.5/dist-packages/psutil/_pslinux.py", line 1127, in read_procfs
    raise ValueError("not sure how to interpret line %r" % line)
ValueError: not sure how to interpret line '8       0 sda 0 0 0 0 10 0 206 23 0 0 0 0 0 0\n'
>>> psutil.__version__
'5.9.2'
>>> exit()
root@nginx-xxx:/home# cat /proc/diskstats
8       0 sda 0 0 0 0 10 0 206 23 0 0 0 0 0 0

@giampaolo
Copy link
Owner

What linux version is this? What's the output of uname -a?

@ghtian123
Copy link
Author

ghtian123 commented Sep 29, 2022

What linux version is this? What's the output of uname -a?

Linux 4.19.0-10-amd64 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux

@haaver
Copy link

haaver commented Nov 8, 2023

similar on 5.15.0-86-generic #96~20.04.1-Ubuntu SMP Thu Sep 21 13:23:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux:
not sure how to interpret line ' 7 0 loop0 11 0 28 0 0 0 0 0 0 4 0 0 0 0 0 0 0\n'

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

3 participants