You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pkg_resources module was removed from setuptools 82.0.0 (released Feb 10, 2026). DataJoint 0.14's plugin.py imports it directly for plugin discovery and verification.
Current usage in plugin.py:
importpkg_resources# Distribution metadatabase_meta=pkg_resources.get_distribution(base_name)
plugin_meta=pkg_resources.get_distribution(plugin_name)
# Package paths for signature verificationplugin_meta.module_pathbase_meta.egg_infoplugin_meta.get_metadata(f"{plugin_name}.sig")
# Entry point discoverypkg_resources.iter_entry_points("datajoint_plugins.{}".format(category))
Solution options
Option
Pros
Cons
Pin setuptools<82
Minimal change, quick fix
Temporary; blocks newer setuptools
Migrate to importlib.metadata
Proper fix, uses stdlib
More code changes; module_path and egg_info equivalents require workarounds
Recommendation
Since 0.14.x is approaching end of life and this was properly addressed in DataJoint 2.x (which uses importlib.metadata), we'll go with the minimal fix: pin setuptools<82 in the runtime dependencies.
This unblocks users immediately while they transition to 2.x.
Activity
dimitri-yatsenko commentedon Feb 11, 2026
Analysis
The
pkg_resourcesmodule was removed from setuptools 82.0.0 (released Feb 10, 2026). DataJoint 0.14'splugin.pyimports it directly for plugin discovery and verification.Current usage in
plugin.py:Solution options
setuptools<82importlib.metadatamodule_pathandegg_infoequivalents require workaroundsRecommendation
Since 0.14.x is approaching end of life and this was properly addressed in DataJoint 2.x (which uses
importlib.metadata), we'll go with the minimal fix: pinsetuptools<82in the runtime dependencies.This unblocks users immediately while they transition to 2.x.
Fix: Pin setuptools<82 for pkg_resources compatibility
Fix: Pin setuptools<82 for pkg_resources compatibility
samuelbray32 commentedon Feb 12, 2026
Thanks! Just to know if I should add a version pin of
setuptoolson our package's end; Do you plan on a0.14patch release with this?dimitri-yatsenko commentedon Feb 13, 2026
Yes, I will release this as 0.14.9 or 0.14.10 tomorrow.
CBroz1 commentedon Feb 13, 2026
Is there a set date for the 0.14.x EOL?
dimitri-yatsenko commentedon Feb 17, 2026
Merging #1400 and cutting 0.14.9
dimitri-yatsenko commentedon Feb 17, 2026
Fixed in v0.14.9 (https://github.com/datajoint/datajoint-python/releases/tag/v0.14.9) via PR #1396.