Skip to content

Bug: Import error for pkg_resources #1394

@samuelbray32

Description

@samuelbray32

Bug Report

Description

  • In fresh environment with datajoint installed, I hit an import error for pkg_resources here
  • Likely due to removal of pkg_resources in setuptool=82.0.0 release yesterday

Reproducibility

Include:

  • Linux
  • Python Version 3.13
  • DataJoint = 0.14.8
  • Minimum number of steps to reliably reproduce the issue:
import datajoint
  • Error Stack
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[2], line 1
----> 1 import datajoint as dj

File ~/mambaforge-pypy3/envs/dj_test_313/lib/python3.13/site-packages/datajoint/__init__.py:59
     20 __all__ = [
     21     "__author__",
     22     "__version__",
   (...)     55     "cli",
     56 ]
     58 from . import errors
---> 59 from .admin import kill, set_password
     60 from .attribute_adapter import AttributeAdapter
     61 from .blob import MatCell, MatStruct

File ~/mambaforge-pypy3/envs/dj_test_313/lib/python3.13/site-packages/datajoint/admin.py:7
      4 import pymysql
      5 from packaging import version
----> 7 from .connection import conn
      8 from .settings import config
      9 from .utils import user_choice

File ~/mambaforge-pypy3/envs/dj_test_313/lib/python3.13/site-packages/datajoint/connection.py:19
     17 from .dependencies import Dependencies
     18 from .hash import uuid_from_buffer
---> 19 from .plugin import connection_plugins
     20 from .settings import config
     21 from .version import __version__

File ~/mambaforge-pypy3/envs/dj_test_313/lib/python3.13/site-packages/datajoint/plugin.py:4
      1 import logging
      2 from pathlib import Path
----> 4 import pkg_resources
      5 from cryptography.exceptions import InvalidSignature
      6 from otumat import hash_pkg, verify

ModuleNotFoundError: No module named 'pkg_resources'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviortriageIndicates issues, pull requests, or discussions need to be reviewed for the first time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions