Repository navigation
Bug: conda-forge Python 3.13 | ModuleNotFoundError: No module named 'pkg_resources' #1218
Description
Activity
- addedbugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviortriageIndicates issues, pull requests, or discussions need to be reviewed for the first timeIndicates issues, pull requests, or discussions need to be reviewed for the first time
on Mar 21, 2025 - removedtriageIndicates issues, pull requests, or discussions need to be reviewed for the first timeIndicates issues, pull requests, or discussions need to be reviewed for the first time
on Mar 21, 2025 - addedtriageIndicates issues, pull requests, or discussions need to be reviewed for the first timeIndicates issues, pull requests, or discussions need to be reviewed for the first time
on Mar 21, 2025 - removedtriageIndicates issues, pull requests, or discussions need to be reviewed for the first timeIndicates issues, pull requests, or discussions need to be reviewed for the first time
on Mar 21, 2025 - changed the title
[-]Bug: py3.13 | ModuleNotFoundError: No module named 'pkg_resources'[/-][+]Bug: conda-forge Python 3.13 | ModuleNotFoundError: No module named 'pkg_resources'[/+]on Mar 21, 2025 - added a commit that references this issue
on Mar 24, 2025 - added a commit that references this issue
on Mar 24, 2025 I still get the issue installing the package using pip:
In [2]: import datajoint
ModuleNotFoundError Traceback (most recent call last)
Cell In[2], line 1
----> 1 import datajointFile ~/Documents/datajoint_playground/.venv/lib/python3.12/site-packages/datajoint/init.py:61
59 from .version import version
60 from .settings import config
---> 61 from .connection import conn, Connection
62 from .schemas import Schema
63 from .schemas import VirtualModule, list_schemasFile ~/Documents/datajoint_playground/.venv/lib/python3.12/site-packages/datajoint/connection.py:19
17 from .blob import pack, unpack
18 from .hash import uuid_from_buffer
---> 19 from .plugin import connection_plugins
21 logger = logging.getLogger(name.split(".")[0])
22 query_log_max_length = 300File ~/Documents/datajoint_playground/.venv/lib/python3.12/site-packages/datajoint/plugin.py:2
1 from .settings import config
----> 2 import pkg_resources
3 from pathlib import Path
4 from cryptography.exceptions import InvalidSignatureModuleNotFoundError: No module named 'pkg_resources'
I still get the issue installing the package using pip:
In [2]: import datajoint
ModuleNotFoundError Traceback (most recent call last)
Cell In[2], line 1
----> 1 import datajointFile ~/Documents/datajoint_playground/.venv/lib/python3.12/site-packages/datajoint/init.py:61
59 from .version import version
60 from .settings import config
---> 61 from .connection import conn, Connection
62 from .schemas import Schema
63 from .schemas import VirtualModule, list_schemasFile ~/Documents/datajoint_playground/.venv/lib/python3.12/site-packages/datajoint/connection.py:19
17 from .blob import pack, unpack
18 from .hash import uuid_from_buffer
---> 19 from .plugin import connection_plugins
21 logger = logging.getLogger(name.split(".")[0])
22 query_log_max_length = 300File ~/Documents/datajoint_playground/.venv/lib/python3.12/site-packages/datajoint/plugin.py:2
1 from .settings import config
----> 2 import pkg_resources
3 from pathlib import Path
4 from cryptography.exceptions import InvalidSignatureModuleNotFoundError: No module named 'pkg_resources'
Can you please show your
pip list? I'd expect you don't have setup tools installed?Reacted by timonmerkYou're right @yambottle! That was the issue. Maybe setuptools could be then added to the pyproject.toml
You're right @yambottle! That was the issue. Maybe setuptools could be then added to the pyproject.toml
Yeah, I made a PR added it already, it's linked to this issue if you look at the activity trace of this issue. It'll be an explicit dependency in the next release, and it's coming soon!
Bug Report
Description
While working with conda-forge release, I found the datajoint-feedtest test would fail for me on python 3.13
Reproducibility
Include:
Expected Behavior
Additional Research and Context
setuptools isn't a default dependency of Python 3.13 anymore, suggest to add to the pyproject.toml.
However, I also tried the same on Mac, which installed the conda default channel's python 3.13 for osx-64, it does include
setuptools, which didn't cause the same issue.I suggest we explicitly include setuptools in pyproject.yaml as a dependency(not a build dependency, but a package dependency)
Also setuptools.pkg_resources will be deprecated.