psutil v5.8.0 Release Notes

  • 2020-12-19

    โœจ Enhancements

    • 1863_: disk_partitions()_ exposes 2 extra fields: maxfile and maxpath, which are the maximum file name and path name length.
    • ๐Ÿ 1872_, [Windows]: added support for PyPy 2.7.
    • ๐ŸŽ 1879_: provide pre-compiled wheels for Linux and macOS (yey!).
    • ๐Ÿ‘ท 1880_: get rid of Travis and Cirrus CI services (they are no longer free). CI testing is now done by GitHub Actions on Linux, macOS and FreeBSD (yes). AppVeyor is still being used for Windows CI.

    ๐Ÿ› Bug fixes

    • ๐Ÿง 1708_, [Linux]: get rid of sensors_temperatures()_ duplicates. (patch by Tim Schlueter).
    • ๐Ÿ 1839_, [Windows], [critical]: always raise AccessDenied_ instead of WindowsError when failing to query 64 processes from 32 bit ones by using NtWoW64 APIs.
    • ๐Ÿ 1866_, [Windows], [critical]: Process.exe(), Process.cmdline(), Process.environ()_ may raise "[WinError 998] Invalid access to memory location" on Python 3.9 / VS 2019.
    • 1874_, [SunOS]: wrong swap output given when encrypted column is present.
    • ๐Ÿ 1875_, [Windows], [critical]: Process.username()_ may raise ERROR_NONE_MAPPED if the SID has no corresponding account name. In this case AccessDenied_ is now raised.
    • ๐ŸŽ 1886_, [macOS]: EIO error may be raised on Process.cmdline()_ and Process.environ(). Now it gets translated into AccessDenied.
    • ๐Ÿ 1887_, [Windows], [critical]: OpenProcess may fail with "[WinError 0] The operation completed successfully"." Turn it into AccessDenied_ or NoSuchProcess_ depending on whether the PID is alive.
    • ๐ŸŽ 1891_, [macOS]: get rid of deprecated getpagesize().