Skip to content

To address missing pkg_resources error#104

Open
brookeslawski wants to merge 2 commits into
NatLabRockies:dev_wrapfrom
brookeslawski:dev_wrap
Open

To address missing pkg_resources error#104
brookeslawski wants to merge 2 commits into
NatLabRockies:dev_wrapfrom
brookeslawski:dev_wrap

Conversation

@brookeslawski
Copy link
Copy Markdown
Collaborator

@brookeslawski brookeslawski commented Feb 18, 2026

When I build the conda/mamba environment from environment.yaml, the most updated version of setuptools that gets installed does not have pkg_resources because it has been deprecated. As a bandaid fix, this PR pins the setuptools version to avoid missing pkg_resources error.

With this fix, we still see this warning when running pvade:
/kfs2/projects/pvade/bstanisl/envs/pvade/lib/python3.10/site-packages/ufl/__init__.py:244: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources

@brookeslawski
Copy link
Copy Markdown
Collaborator Author

There might be a better way to address this so feel free to suggest otherwise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants