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: disk_io_counters() is broken on python 3 #968

Closed
giampaolo opened this issue Feb 3, 2017 · 0 comments
Closed

Linux: disk_io_counters() is broken on python 3 #968

giampaolo opened this issue Feb 3, 2017 · 0 comments

Comments

@giampaolo
Copy link
Owner

======================================================================
ERROR: psutil.tests.test_system.TestSystemAPIs.test_disk_io_counters
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/giampaolo/svn/psutil/psutil/tests/test_system.py", line 664, in test_disk_io_counters
    ret = psutil.disk_io_counters(perdisk=False)
  File "/home/giampaolo/svn/psutil/psutil/__init__.py", line 2047, in disk_io_counters
    rawdict = _psplatform.disk_io_counters()
  File "/home/giampaolo/svn/psutil/psutil/_pslinux.py", line 1025, in disk_io_counters
    sector_size = get_sector_size(name)
  File "/home/giampaolo/svn/psutil/psutil/_pslinux.py", line 248, in get_sector_size
    with open(b"/sys/block/%s/queue/hw_sector_size" % partition) as f:
TypeError: %b requires bytes, or an object that implements __bytes__, not 'str'
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

1 participant