psutil breaking changes
Updated December 4, 2026
On this page
Latest version 7.2.2, released January 28, 2026. Source repository
Its 7.0.0 release drops Python 2.7. Python end of life dates.
- From 6.1.1 to 7.2.2: 97 breaking changes in 7 versions.
- From 5.0.0 to 7.2.2: 470 breaking changes in 20 versions.
psutil 7.2.2 breaking changes
- Behavior changed
Process.cmdline
On macOS, cmdline() that previously failed with OSError now raises AccessDenied. Code that catches OSError for this case must catch AccessDenied instead. github.com - Behavior changed
Process.environ
On macOS, environ() that previously failed with OSError now raises AccessDenied. Code that catches OSError for this case must catch AccessDenied instead. github.com
psutil 7.2.0 breaking changes
- Removed
psutil.tests
Unit tests are no longer part of the distribution and now live under tests/. Importing psutil.tests no longer works, so code importing it must change. pypi.org
psutil 7.1.3 breaking changes
- Signature changed
psutil.tests.test_scripts.TestExampleScripts.assert_stdout
Was @staticmethod def assert_stdout(exe, *args, **kwargs); now @staticmethod def assert_stdout(exe, *args). pypi.org
psutil 7.1.2 breaking changes
- Removed
32-bit CPython is still supported, but psutil must now be built from source on 32-bit Python. Users installing on 32-bit Python need a local build toolchain. github.com - Removed
psutil.tests.test_bsd.getpagesize
psutil.tests.test_bsd.getpagesize was removed in psutil 7.1.2 pypi.org - Removed
psutil.tests.test_osx.getpagesize
psutil.tests.test_osx.getpagesize was removed in psutil 7.1.2 pypi.org - Removed
psutil.tests.test_osx.POSIX
psutil.tests.test_osx.POSIX was removed in psutil 7.1.2 pypi.org - Removed
psutil.tests.test_posix.getpagesize
psutil.tests.test_posix.getpagesize was removed in psutil 7.1.2 pypi.org - Removed
psutil.tests.test_process.TestProcess.test_cpu_times_2
TestProcess.test_cpu_times_2 was removed in psutil 7.1.2 pypi.org
psutil 7.1.1 breaking changes
- Removed
SunOS 10 is no longer supported by this release. Users on SunOS 10 must stay on an earlier psutil version. github.com - Removed
psutil.tests.print_sysinfo
psutil.tests.print_sysinfo was removed in psutil 7.1.1 pypi.org
psutil 7.1.0 breaking changes
- Removed
FreeBSD 8 and earlier are no longer supported, so users on those systems must upgrade the operating system. github.com - Removed
psutil.tests.PsutilTestCase.assertProcessGone
PsutilTestCase.assertProcessGone was removed in psutil 7.1.0 pypi.org - Removed
psutil.tests.PsutilTestCase.assertProcessZombie
PsutilTestCase.assertProcessZombie was removed in psutil 7.1.0 pypi.org - Removed
psutil.tests.test_linux.PYPY
psutil.tests.test_linux.PYPY was removed in psutil 7.1.0 pypi.org - Removed
psutil.tests.test_linux.PYTEST_PARALLEL
psutil.tests.test_linux.PYTEST_PARALLEL was removed in psutil 7.1.0 pypi.org - Removed
psutil.tests.test_system.IS_64BIT
psutil.tests.test_system.IS_64BIT was removed in psutil 7.1.0 pypi.org - Removed
psutil.tests.test_windows.TestSystemAPIs.test_boot_time_fluctuation
TestSystemAPIs.test_boot_time_fluctuation was removed in psutil 7.1.0 pypi.org - Renamed
psutil.tests.PsutilTestCase.assertPidGone
Use PsutilTestCase.assert_pid_gone instead. pypi.org - Renamed
psutil.tests.PsutilTestCase.spawn_testproc
Use PsutilTestCase.spawn_subproc instead. pypi.org - Renamed
psutil.tests.spawn_testproc
Use psutil.tests.spawn_subproc instead. pypi.org
And 3 more in this version. Sign up to see every change
Older versions
15 older versions, each with its first changes. Sign up to see every change
Show 15 older versions
psutil 7.0.0 breaking changes
- Removed
Python 2.7 is no longer supported. Users on Python 2.7 must stay on psutil 6.1.x. github.com - Removed
psutil.Process.memory_info_ex
Process.memory_info_ex() was removed. Call Process.memory_full_info() instead. pypi.org
And 70 more in this version.
psutil 6.1.1 breaking changes
- Removed
psutil.tests.test_linux.EMPTY_TEMPERATURES
psutil.tests.test_linux.EMPTY_TEMPERATURES was removed in psutil 6.1.1 pypi.org - Removed
psutil.tests.test_linux.SIOCGIFCONF
psutil.tests.test_linux.SIOCGIFCONF was removed in psutil 6.1.1 pypi.org
And 3 more in this version.
psutil 6.1.0 breaking changes
- Removed
psutil.tests.PsutilTestCase.__str__
PsutilTestCase.__str__ was removed in psutil 6.1.0 pypi.org - Removed
psutil.tests.PsutilTestCase.assertRaisesRegex
PsutilTestCase.assertRaisesRegex was removed in psutil 6.1.0 pypi.org
And 8 more in this version.
psutil 6.0.0 breaking changes
- Removed
disk_partitions.maxfile
The namedtuple returned by disk_partitions() no longer has maxfile and maxpath fields. Stop reading those fields. github.com - Removed
disk_partitions.maxpath
The namedtuple returned by disk_partitions() no longer has maxfile and maxpath fields. Stop reading those fields. github.com
And 17 more in this version.
psutil 5.9.8 breaking changes
- Removed
psutil.tests.create_exe
psutil.tests.create_exe was removed in psutil 5.9.8 pypi.org - Removed
psutil.tests.test_connections.thisproc
psutil.tests.test_connections.thisproc was removed in psutil 5.9.8 pypi.org
And 19 more in this version.
psutil 5.9.7 breaking changes
- Renamed
psutil.tests.test_linux.TestMisc.test_users_mocked
Use TestMisc.test_users instead. pypi.org
psutil 5.9.6 breaking changes
- Removed
The release ends support for Python 3.4 and 3.5. Users on those versions must stay on psutil 5.9.5 or upgrade their Python. github.com - Removed
psutil.tests.test_linux.TestProcess.test_cwd_zombie
TestProcess.test_cwd_zombie was removed in psutil 5.9.6 pypi.org
And 2 more in this version.
psutil 5.9.5 breaking changes
- Removed
psutil.tests.PYTHON_EXE
psutil.tests.PYTHON_EXE was removed in psutil 5.9.5 pypi.org - Removed
psutil.tests.test_linux.TestSystemVirtualMemory
psutil.tests.test_linux.TestSystemVirtualMemory was removed in psutil 5.9.5 pypi.org
And 10 more in this version.
psutil 5.9.1 breaking changes
- Removed
This release stops supporting Python 2.6. Code running on Python 2.6 must move to a newer Python version before upgrading. github.com - Removed
psutil.tests.test_aix.unittest
psutil.tests.test_aix.unittest was removed in psutil 5.9.1 pypi.org
And 38 more in this version.
psutil 5.9.0 breaking changes
- Removed
psutil.Error.__init__
Error() was removed in psutil 5.9.0 pypi.org - Removed
psutil.Error.msg
Error.msg was removed in psutil 5.9.0 pypi.org
And 14 more in this version.
psutil 5.8.0 breaking changes
- Removed
psutil.tests.CIRRUS
psutil.tests.CIRRUS was removed in psutil 5.8.0 pypi.org - Removed
psutil.tests.get_kernel_version
psutil.tests.get_kernel_version was removed in psutil 5.8.0 pypi.org
And 20 more in this version.
psutil 5.7.3 breaking changes
- Removed
psutil.NoSuchProcess.__path__
NoSuchProcess.__path__ was removed in psutil 5.7.3 pypi.org - Removed
psutil.tests.test_linux.TestSensorsBattery.test_emulate_no_base_files
TestSensorsBattery.test_emulate_no_base_files was removed in psutil 5.7.3 pypi.org
And 3 more in this version.
psutil 5.7.1 breaking changes
- Removed
psutil.tests.create_proc_children_pair
psutil.tests.create_proc_children_pair was removed in psutil 5.7.1 pypi.org - Removed
psutil.tests.create_zombie_proc
psutil.tests.create_zombie_proc was removed in psutil 5.7.1 pypi.org
And 196 more in this version.
psutil 5.7.0 breaking changes
- Removed
Minimum supported Windows version is now Windows Vista. Code that must run on Windows XP or Server 2003 should stay on an older psutil release. github.com - Removed
psutil.tests.runner.BROWN
psutil.tests.runner.BROWN was removed in psutil 5.7.0 pypi.org
And 18 more in this version.
psutil 5.0.0 breaking changes
- Removed
psutil.tests.test_memory_leaks.Base
psutil.tests.test_memory_leaks.Base was removed in psutil 5.0.0 pypi.org - Removed
psutil.tests.test_memory_leaks.callable
psutil.tests.test_memory_leaks.callable was removed in psutil 5.0.0 pypi.org
And 22 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.