Pin setuptools version in fenics environment to fix pkg_resources import#616
Merged
brownbaerchen merged 4 commits intomasterfrom Feb 10, 2026
Merged
Pin setuptools version in fenics environment to fix pkg_resources import#616brownbaerchen merged 4 commits intomasterfrom
brownbaerchen merged 4 commits intomasterfrom
Conversation
Co-authored-by: pancetta <7158893+pancetta@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix currently failing fenics CI tests
Add setuptools to fenics environment to fix pkg_resources import
Feb 10, 2026
Member
|
@copilot fenics jobs are still failing, look e.g. FAILED pySDC/tests/test_tutorials/test_step_7.py::test_A - ModuleNotFoundError: No module named 'pkg_resources' from https://github.com/Parallel-in-Time/pySDC/actions/runs/21859533966/job/63084845035?pr=616 |
Co-authored-by: pancetta <7158893+pancetta@users.noreply.github.com>
Contributor
Author
Fixed in b969896. The issue was that setuptools 82.0+ removed |
Co-authored-by: pancetta <7158893+pancetta@users.noreply.github.com>
Copilot
AI
changed the title
Add setuptools to fenics environment to fix pkg_resources import
Pin setuptools version in fenics environment to fix pkg_resources import
Feb 10, 2026
brownbaerchen
approved these changes
Feb 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FEniCS CI tests failing across all Python versions (3.10-3.13) with
ModuleNotFoundError: No module named 'pkg_resources'when UFL imports its version metadata.Changes
setuptools>=40.0,<70.0toetc/environment-fenics.ymlconda dependenciesPython 3.12+ no longer bundles setuptools by default. Additionally, setuptools 70.0+ deprecated and removed the
pkg_resourcesmodule in favor ofimportlib.metadata. Since UFL (part of FEniCS) still relies onpkg_resources, the version constraint ensures a compatible version of setuptools is installed that includes this module while maintaining a reasonable minimum version.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.