psutil v5.7.0 Release Notes

Release Date: 2020-02-18 // over 2 years ago
  • 2020-02-18

    โœจ Enhancements

    • โšก๏ธ 1637_, [SunOS]: add partial support for old SunOS 5.10 Update 0 to 3.
    • ๐Ÿง 1648_, [Linux]: sensors_temperatures()_ looks into an additional /sys/device/ directory for additional data. (patch by Javad Karabi)
    • ๐Ÿ 1652_, [Windows]: dropped support for Windows XP and Windows Server 2003. Minimum supported Windows version now is Windows Vista.
    • ๐Ÿ‘ท 1671_, [FreeBSD]: add CI testing/service for FreeBSD (Cirrus CI).
    • ๐Ÿ 1677_, [Windows]: Process.exe()_ will succeed for all process PIDs (instead of raising AccessDenied_).
    • ๐Ÿ 1679_, [Windows]: net_connections()_ and Process.connections()_ are 10% faster.
    • ๐Ÿ‘ท 1682_, [PyPy]: added CI / test integration for PyPy via Travis.
    • ๐Ÿ 1686_, [Windows]: added support for PyPy on Windows.
    • ๐Ÿ 1693_, [Windows]: boot_time(), Process.create_time() and users()_'s login time now have 1 micro second precision (before the precision was of 1 second).

    ๐Ÿ› Bug fixes

    • 1538_, [NetBSD]: Process.cwd()_ may return ENOENT instead of NoSuchProcess_.
    • ๐Ÿง 1627_, [Linux]: Process.memory_maps()_ can raise KeyError.
    • 1642_, [SunOS]: querying basic info for PID 0 results in FileNotFoundError.
    • 1646_, [FreeBSD], [critical]: many Process_ methods may cause a segfault due to a backward incompatible change in a C type on FreeBSD 12.0.
    • ๐Ÿ 1656_, [Windows]: Process.memory_full_info()_ raises AccessDenied_ even for the current user and os.getpid().
    • ๐Ÿ 1660_, [Windows]: Process.open_files()_ complete rewrite + check of errors.
    • ๐Ÿ 1662_, [Windows], [critical]: Process.exe()_ may raise "[WinError 0] The operation completed successfully".
    • ๐Ÿง 1665_, [Linux]: disk_io_counters()_ does not take into account extra fields added to recent kernels. (patch by Mike Hommey)
    • 1672_: use the right C type when dealing with PIDs (int or long). Thus far (long) was almost always assumed, which is wrong on most platforms.
    • 1673_, [OpenBSD]: Process.connections(), Process.num_fds() and Process.threads()_ returned improper exception if process is gone.
    • 1674_, [SunOS]: disk_partitions()_ may raise OSError.
    • ๐Ÿง 1684_, [Linux]: disk_io_counters()_ may raise ValueError on systems not having /proc/diskstats.
    • ๐Ÿง 1695_, [Linux]: could not compile on kernels <= 2.6.13 due to PSUTIL_HAVE_IOPRIO not being defined. (patch by Anselm Kruis)