Skip to content

[Bug]: Mattersim 1.2.0 fails to import due to removed pkg_resources in SetupTools>=82 #140

@astroboi-G

Description

@astroboi-G

Contact Details

A01795033@tec.mx

Bug Description

When installing mattersim from package repository, the dependencies require a setuptools>=45 but as of version 82 and above they have removed pkg_resources which breaks the current implementation.

MatterSim Version

v1.2.0

Python Version

3.10

Reproduction Steps

  1. Install mattersim from package repository like Pypi with nothing else installed on env constraining to setuptools<=82
  2. import mattersim

Expected Behavior

Should import without issue by not depending on pkg_resources or constraining to a setuptools<=82

Actual Behavior

Error on import due to No module named 'pkg_resources'

Error Logs

>>> import mattersim
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/mnt/c/Users/acort/source/materials/pipeline/environments/.venv-sim/lib/python3.10/site-packages/mattersim/__init__.py", line 2, in <module>
    from .__version__ import __version__  # noqa: F401
  File "/mnt/c/Users/acort/source/materials/pipeline/environments/.venv-sim/lib/python3.10/site-packages/mattersim/__version__.py", line 2, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Code of Conduct

  • I agree to follow the project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions