ANN: psutil 5.9.2 released

117 views
Skip to first unread message

Giampaolo Rodola'

unread,
Sep 4, 2022, 4:22:38 PM9/4/22
to psu...@googlegroups.com, python-ann...@python.org
Hello all,
I'm glad to announce the release of psutil 5.9.2:
https://github.com/giampaolo/psutil

About
=====

psutil (process and system utilities) is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network) in Python. It is useful mainly for system monitoring, profiling and limiting process resources and management of running processes. It implements many functionalities offered by command line tools such as: ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap. It currently supports Linux, Windows, macOS, Sun Solaris, FreeBSD, OpenBSD, NetBSD and AIX, both 32-bit and 64-bit architectures.  Supported Python versions are 2.7 and 3.4+. PyPy is also known to work.

What's new
==========

2022-09-04

**Bug fixes**

- #2093, [FreeBSD], **[critical]**: `pids()`_ may fail with ENOMEM. Dynamically
  increase the ``malloc()`` buffer size until it's big enough.
- #2095, [Linux]: `net_if_stats()`_ returns incorrect interface speed for
  100GbE network cards.
- #2113, [FreeBSD], **[critical]**: `virtual_memory()`_ may raise ENOMEM due to
  missing ``#include <sys/param.h>`` directive.  (patch by Peter Jeremy)
- #2128, [NetBSD]: `swap_memory()`_ was miscalculated.  (patch by Thomas Klausner)

Links
=====

- Home page: https://github.com/giampaolo/psutil
- Download: https://pypi.org/project/psutil/#files
- Documentation: http://psutil.readthedocs.io
- What's new: https://github.com/giampaolo/psutil/blob/master/HISTORY.rst

Hashes
======

psutil-5.9.2-cp27-cp27m-manylinux2010_i686.whl
md5: 3b7be227ecfb5d4145facfd6bd509fa8
sha256: 8f024fbb26c8daf5d70287bb3edfafa22283c255287cf523c5d81721e8e5d82c

psutil-5.9.2-cp27-cp27m-manylinux2010_x86_64.whl
md5: 68ad3cca39ad97e3dc4baa8a938c0e14
sha256: b2f248ffc346f4f4f0d747ee1947963613216b06688be0be2e393986fe20dbbb

psutil-5.9.2-cp27-cp27m-win32.whl
md5: fb5fb61e6953a2a5069d5e91a5d9c2a3
sha256: b1928b9bf478d31fdffdb57101d18f9b70ed4e9b0e41af751851813547b2a9ab

psutil-5.9.2-cp27-cp27m-win_amd64.whl
md5: 821aed68496085fbc738d820a4b699fc
sha256: 404f4816c16a2fcc4eaa36d7eb49a66df2d083e829d3e39ee8759a411dbc9ecf

psutil-5.9.2-cp27-cp27mu-manylinux2010_i686.whl
md5: 750e2ed4c16a9136f7c89abe226ca336
sha256: 94e621c6a4ddb2573d4d30cba074f6d1aa0186645917df42c811c473dd22b339

psutil-5.9.2-cp27-cp27mu-manylinux2010_x86_64.whl
md5: 6930761e3c4d3efbd86719e64dab9662
sha256: 256098b4f6ffea6441eb54ab3eb64db9ecef18f6a80d7ba91549195d55420f84

psutil-5.9.2-cp310-cp310-macosx_10_9_x86_64.whl
md5: 24863f9b034c26dfa18ddf4e3f507589
sha256: 614337922702e9be37a39954d67fdb9e855981624d8011a9927b8f2d3c9625d9

psutil-5.9.2-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
md5: becb482a10ef6fe685c522094b0ffbe4
sha256: 39ec06dc6c934fb53df10c1672e299145ce609ff0611b569e75a88f313634969

psutil-5.9.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
md5: cd5afac601ba2b14fe635e8139e47176
sha256: e3ac2c0375ef498e74b9b4ec56df3c88be43fe56cac465627572dbfb21c4be34

psutil-5.9.2-cp36-cp36m-macosx_10_9_x86_64.whl
md5: 4be241d135b8bb51cbbd832c51d4957a
sha256: dc9bda7d5ced744622f157cc8d8bdd51735dafcecff807e928ff26bdb0ff097d

psutil-5.9.2-cp36-cp36m-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
md5: 6b005f751dfb9cedb4d537c0d1c0be90
sha256: d75291912b945a7351d45df682f9644540d564d62115d4a20d45fa17dc2d48f8

psutil-5.9.2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
md5: dfe8a7973fb193490de67b6da380b632
sha256: b4018d5f9b6651f9896c7a7c2c9f4652e4eea53f10751c4e7d08a9093ab587ec

psutil-5.9.2-cp37-cp37m-macosx_10_9_x86_64.whl
md5: 4d6e97409905eca44696969d18ef339d
sha256: 42638876b7f5ef43cef8dcf640d3401b27a51ee3fa137cb2aa2e72e188414c32

psutil-5.9.2-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
md5: ef2b49dacd368a4c6ef619d76379259d
sha256: 91aa0dac0c64688667b4285fa29354acfb3e834e1fd98b535b9986c883c2ce1d

psutil-5.9.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
md5: f2a0ec91064e94bf2aa33857cd44e7d2
sha256: 4fb54941aac044a61db9d8eb56fc5bee207db3bc58645d657249030e15ba3727

psutil-5.9.2-cp38-cp38-macosx_10_9_x86_64.whl
md5: ce7f0510b77d283412dc76cd2ba5ba91
sha256: fd331866628d18223a4265371fd255774affd86244fc307ef66eaf00de0633d5

psutil-5.9.2-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
md5: 1ee7c2b9b24da1d01be1b36064658f79
sha256: b315febaebae813326296872fdb4be92ad3ce10d1d742a6b0c49fb619481ed0b

psutil-5.9.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
md5: af32064ad978781f5ca95aeb8c847af9
sha256: f7929a516125f62399d6e8e026129c8835f6c5a3aab88c3fff1a05ee8feb840d

psutil-5.9.2-cp39-cp39-macosx_10_9_x86_64.whl
md5: 09f920d294d35184a3b61489f7df7e93
sha256: b3591616fa07b15050b2f87e1cdefd06a554382e72866fcc0ab2be9d116486c8

psutil-5.9.2-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
md5: e8dc0a815072478a8d412624648ae404
sha256: 14b29f581b5edab1f133563272a6011925401804d52d603c5c606936b49c8b97

psutil-5.9.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
md5: 2714ec88dcfec8efd27b7bde15e5cb1a
sha256: 4642fd93785a29353d6917a23e2ac6177308ef5e8be5cc17008d885cb9f70f12

psutil-5.9.2.tar.gz
md5: b7dae152c06d8d064dae67df7e7a8ee3
sha256: feb861a10b6c3bb00701063b37e4afc754f8217f0f09c42280586bd6ac712b5c

--

Giampaolo - https://gmpy.dev/about

Benjamin Hamon

unread,
Sep 5, 2022, 10:21:00 AM9/5/22
to psutil
Hi Giampaolo,

(Sorry if this is the wrong place to post this, seemed like the most appropriate)

There seems to be a problem with the distribution for Windows. The pip install fails, complaining about missing build tools for C++. Would that perhaps be an issue with the wheels uploaded to PyPi?

Here is the output when installing (on Windows with Python 3.7.9):

(venv-psutil-debug) PS C:\Temporary\Debug> python -m pip install --upgrade "psutil == 5.9.1"
Collecting psutil==5.9.1
  Using cached psutil-5.9.1-cp37-cp37m-win_amd64.whl (246 kB)
Installing collected packages: psutil
Successfully installed psutil-5.9.1

(venv-psutil-debug) PS C:\Temporary\Debug> python -m pip install --upgrade "psutil == 5.9.2"
Collecting psutil==5.9.2
  Using cached psutil-5.9.2.tar.gz (479 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: psutil
  Building wheel for psutil (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [38 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.7
      creating build\lib.win-amd64-3.7\psutil
      copying psutil\_common.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_compat.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_psaix.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_psbsd.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_pslinux.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_psosx.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_psposix.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_pssunos.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_pswindows.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\__init__.py -> build\lib.win-amd64-3.7\psutil
      creating build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\runner.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_aix.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_bsd.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_connections.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_contracts.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_linux.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_misc.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_osx.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_posix.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_process.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_sunos.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_system.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_testutils.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_unicode.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_windows.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\__init__.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\__main__.py -> build\lib.win-amd64-3.7\psutil\tests
      running build_ext
      building 'psutil._psutil_windows' extension
      error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for psutil
  Running setup.py clean for psutil
Failed to build psutil
Installing collected packages: psutil
  Attempting uninstall: psutil
    Found existing installation: psutil 5.9.1
    Uninstalling psutil-5.9.1:
      Successfully uninstalled psutil-5.9.1
  Running setup.py install for psutil ... error
  error: subprocess-exited-with-error

  × Running setup.py install for psutil did not run successfully.
  │ exit code: 1
  ╰─> [38 lines of output]
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.7
      creating build\lib.win-amd64-3.7\psutil
      copying psutil\_common.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_compat.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_psaix.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_psbsd.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_pslinux.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_psosx.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_psposix.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_pssunos.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\_pswindows.py -> build\lib.win-amd64-3.7\psutil
      copying psutil\__init__.py -> build\lib.win-amd64-3.7\psutil
      creating build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\runner.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_aix.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_bsd.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_connections.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_contracts.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_linux.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_misc.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_osx.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_posix.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_process.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_sunos.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_system.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_testutils.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_unicode.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\test_windows.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\__init__.py -> build\lib.win-amd64-3.7\psutil\tests
      copying psutil\tests\__main__.py -> build\lib.win-amd64-3.7\psutil\tests
      running build_ext
      building 'psutil._psutil_windows' extension
      error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Rolling back uninstall of psutil
  Moving to c:\temporary\debug\venv-psutil-debug\lib\site-packages\psutil-5.9.1.dist-info\
   from c:\temporary\debug\venv-psutil-debug\lib\site-packages\~sutil-5.9.1.dist-info
  Moving to c:\temporary\debug\venv-psutil-debug\lib\site-packages\psutil\
   from c:\temporary\debug\venv-psutil-debug\lib\site-packages\~sutil
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> psutil

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Giampaolo Rodola'

unread,
Sep 5, 2022, 10:25:40 AM9/5/22
to psutil
Hi, I don't know why but some windows wheels were not uploaded indeed. I just uploaded the followings right now:

psutil-5.9.2-cp310-cp310-win32.whl
md5: 4b6630364c3af015a27be431be80dddd
sha256: e4c4a7636ffc47b7141864f1c5e7d649f42c54e49da2dd3cceb1c5f5d29bfc85

psutil-5.9.2-cp310-cp310-win_amd64.whl
md5: 99e0d2a79fa3221d260364fc52bd0b2f
sha256: f4cb67215c10d4657e320037109939b1c1d2fd70ca3d76301992f89fe2edb1f1

psutil-5.9.2-cp36-cp36m-win32.whl
md5: 8fb12c9d47cf1160aa6f0ab7e5d46eaf
sha256: f40ba362fefc11d6bea4403f070078d60053ed422255bd838cd86a40674364c9

psutil-5.9.2-cp36-cp36m-win_amd64.whl
md5: 0a322aeaf3289e7f3a750390c4d256c0
sha256: 9770c1d25aee91417eba7869139d629d6328a9422ce1cdd112bd56377ca98444

psutil-5.9.2-cp37-cp37m-win32.whl
md5: d466f1667f4e74af96c2772ff658b205
sha256: 7cbb795dcd8ed8fd238bc9e9f64ab188f3f4096d2e811b5a82da53d164b84c3f

psutil-5.9.2-cp37-cp37m-win_amd64.whl
md5: 0851e0e32cc7bd82e2242de486b9daa8
sha256: 5d39e3a2d5c40efa977c9a8dd4f679763c43c6c255b1340a56489955dbca767c

psutil-5.9.2-cp38-cp38-win32.whl
md5: c0821f2ccfc4ef4ac9af273e1c6ca8e9
sha256: 561dec454853846d1dd0247b44c2e66a0a0c490f937086930ec4b8f83bf44f06

psutil-5.9.2-cp38-cp38-win_amd64.whl
md5: 641442873805eaf51d06528384aa27d6
sha256: 67b33f27fc0427483b61563a16c90d9f3b547eeb7af0ef1b9fe024cdc9b3a6ea

psutil-5.9.2-cp39-cp39-win32.whl
md5: 8912f159ed9bca3ddd98eea4e1b986d6
sha256: ed29ea0b9a372c5188cdb2ad39f937900a10fb5478dc077283bf86eeac678ef1

psutil-5.9.2-cp39-cp39-win_amd64.whl
md5: d9b313c033ca47ba2da258c1c8defbe9
sha256: 68b35cbff92d1f7103d8f1db77c977e72f49fcefae3d3d2b91c76b0e7aef48b8


Reply all
Reply to author
Forward
0 new messages