Skip to content

No module named 'pkg_resources' when using espaloma ff #19

@jbanderka

Description

@jbanderka

When running simprepper with the default ligand force field (espaloma), the preparation fails with a long traceback that ultimately originates from an OpenFF dependency:
ModuleNotFoundError: No module named 'pkg_resources'
The error occurs during ligand parameterization with Espaloma.

From a quick search, it appears that pkg_resources is no longer included/exposed in recent setuptools releases (>=82), while parts of the OpenFF/Espaloma dependency chain still rely on it. I have the setuptools 82.0.1 version.

Downgrading setuptools to an older version appears to resolve the issue.

It may be worth to specify a compatible version of setuptools in the README.md.

@Clownshift what is your version of setuptools? Do you encounter the same problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions