Describe the issue:
Python no longer bundles setuptools, so there is an implicit dependency on a package that might be missing, especially if running in a virtualenv.
Minimal Complete Verifiable Example:
python -m venv demo
source demo/bin/activate
pip install dask-glm==0.3.2
import dask_glm
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
import dask_glm
File "/.../demo/lib/python3.13/site-packages/dask_glm/__init__.py", line 1, in <module>
from pkg_resources import DistributionNotFound, get_distribution
ModuleNotFoundError: No module named 'pkg_resources'
Anything else we need to know?:
The workaround showing this is the issue, which still issues a UserWarning, but that is a separate issue.
pip install setuptools==80.9.0
import dask_glm
/.../demo/lib/python3.13/site-packages/dask_glm/__init__.py:1: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import DistributionNotFound, get_distribution
Environment:
- Dask version: dask-glm==0.3.2
- Python version: 3.13
- Operating System: MacOS
- Install method (conda, pip, source): pip
Describe the issue:
Python no longer bundles setuptools, so there is an implicit dependency on a package that might be missing, especially if running in a virtualenv.
Minimal Complete Verifiable Example:
python -m venv demo source demo/bin/activate pip install dask-glm==0.3.2Anything else we need to know?:
The workaround showing this is the issue, which still issues a
UserWarning, but that is a separate issue.Environment: