Hi there,
And thanks for this package! We've used it for many years in the CD of https://github.com/pyxem/orix and related repos.
outdated v0.2.2 errors with the recently released Setuptools v82.0.0. The reason is that pkg_resources, used in the check_outdated function, is no longer packaged with Setuptools:
|
from pkg_resources import parse_version |
To reproduce
Setup in a fresh conda environment
$ pip install -U outdated
...
$ pip list
Package Version
------------------ --------
certifi 2026.1.4
charset-normalizer 3.4.4
idna 3.11
littleutils 0.2.4
outdated 0.2.2
packaging 26.0
pip 26.0.1
requests 2.32.5
setuptools 82.0.0
urllib3 2.6.3
Test check_outdated():
$ python
Python 3.13.12 | packaged by conda-forge | (main, Feb 5 2026, 06:11:05) [Clang 19.1.7 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from outdated import check_outdated
/opt/homebrew/Caskroom/miniforge/base/envs/outdated-test/lib/python3.13/site-packages/outdated/utils.py:14: OutdatedCheckFailedWarning: Failed to check for latest version of package.
Set the environment variable OU
S
>
KeyboardInterrupt
>>> from outdated import check_outdated
>>> check_outdated("orix", "0.14.2")
Traceback (most recent call last):
File "<python-input-2>", line 1, in <module>
check_outdated("orix", "0.14.2")
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniforge/base/envs/outdated-test/lib/python3.13/site-packages/outdated/__init__.py", line 36, in check_outdated
from pkg_resources import parse_version
ModuleNotFoundError: No module named 'pkg_resources'
If I install pip install "setuptools<82", check_outdated() works.
Solution?
According to pypa/setuptools#3085, replacing pkg_resources with importlib.metadata and importlib.resources is the way forward.
Hi there,
And thanks for this package! We've used it for many years in the CD of https://github.com/pyxem/orix and related repos.
outdated v0.2.2 errors with the recently released Setuptools v82.0.0. The reason is that
pkg_resources, used in thecheck_outdatedfunction, is no longer packaged with Setuptools:outdated/outdated/__init__.py
Line 36 in 26c8c28
To reproduce
Setup in a fresh conda environment
Test
check_outdated():If I install
pip install "setuptools<82",check_outdated()works.Solution?
According to pypa/setuptools#3085, replacing
pkg_resourceswithimportlib.metadataandimportlib.resourcesis the way forward.