Installing st-dbscan==0.2.3 fails when using a newer version of setuptools(>=82.0). This occurs during the build step due to the removal of pkg_resources from setuptools.
ModuleNotFoundError: No module named 'pkg_resources'
Which originates in the package's setup.py:
from pkg_resources import VersionConflict, require
try:
require('setuptools>=38.3')
except VersionConflict:
print("Error: version of setuptools is too old (<38.3)!")
sys.exit(1)
Root Cause
pkg_resources is now deprecated and removed from setuptools>=82
- but package still depends on
pkg_resources.require() for version checking
- Build fails in modern envs, especially with pip's build isolation
Suggested Fix
- Remove
pkg_resources dependencies
- and move to updated packaging standards by adding a
pyproject.toml
Installing
st-dbscan==0.2.3fails when using a newer version ofsetuptools(>=82.0). This occurs during the build step due to the removal ofpkg_resourcesfrom setuptools.ModuleNotFoundError: No module named 'pkg_resources'Which originates in the package's
setup.py:from pkg_resources import VersionConflict, require try: require('setuptools>=38.3') except VersionConflict: print("Error: version of setuptools is too old (<38.3)!") sys.exit(1)Root Cause
pkg_resourcesis now deprecated and removed fromsetuptools>=82pkg_resources.require()for version checkingSuggested Fix
pkg_resourcesdependenciespyproject.toml