Skip to content

[BUG] No ModuleNotFoundError: No module named 'pkg_resources' #26

Description

@chillerb

What issues are you experiencing?

Hi, I just discovered cytomulate and PyCytoData - very cool! Unfortunately, I got this error:

>>> import PyCytoData
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bjarne/workspace/cytomulate-demo/.venv/lib/python3.12/site-packages/PyCytoData/__init__.py", line 1, in <module>
    from PyCytoData.data import DataLoader, PyCytoData, FileIO
  File "/home/bjarne/workspace/cytomulate-demo/.venv/lib/python3.12/site-packages/PyCytoData/data.py", line 15, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

The issue seems to be caused by relying on an old version of setuptools, as pkg_resources is deprecated in setuptools>=82.

Expected behavior

Importing PyCytoData does not raise an error.

Your environment:

  • OS: Debian
  • Python Version: 3.12
  • Python Distribution: UV
  • PyCytoData version: '0.1.3'
  • PyCytoData distribution: PyPI

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions