← Back to issue list

Chains of parts with python contents can fail with pkg_resources import error

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1768233
Type
issue
State
open
Author
~jocave
Labels
Created
Updated
Closed

Current evaluation

Python part wheel build fails with pkg_resources.py31compat ImportError for bitstring on xenial. 8+ years old, zero comments, no labels. Parts system since rewritten in craft-parts with modern pip/setuptools, making this error no longer reproducible.

Suggested action: close stale

Reason: Issue is 3044 days old with zero maintainer interaction, no labels, and no comments. The parts system has been completely rewritten into craft-parts, and the python plugin now uses modern pip/setuptools (craft_parts/plugins/python_plugin.py defaults to pip+setuptools+wheel). The pkg_resources.py31compat module was removed from setuptools long ago, and the old pip/setuptools version mismatch that caused this error no longer exists in the current codebase.

Impact: 10 Quick Win: 7.5 Staleness: 95 Complexity: 25 Confidence: 75 Support Request: 15

Issue body

Testing in a clean up-to-date xenial container and snapcraft installed from git master using a virtualenv as described in HACKING file. The attached snapcraft.yaml fails to build with an error building the wheel for the python-package in the final part. Excerpt of error: ImportError: No module named 'pkg_resources.py31compat' ---------------------------------------- Failed building wheel for bitstring Running setup.py clean for bitstring Failed to build bitstring ERROR: Failed to build one or more wheels

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 10
Quick Win: 7.5
Staleness: 95
Complexity: 25
Confidence: 75
Support Request: 15
close stale Python part wheel build fails with pkg_resources.py31compat ImportError for bitstring on xenial. 8+ years old, zero comments, no labels. Parts system since rewritten in craft-parts with modern pip/setuptools, making this error no longer reproducible.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 45
Confidence: 95
Support Request: 10
close stale Build failure in snapcraft when chaining Python parts due to a pkg_resources import error. Issue is over 8 years old with no maintainer interaction or updates.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 90
Support Request: 10
close stale Snapcraft build failure when chaining Python parts, failing due to a missing pkg_resources.py31compat module during wheel compilation. Unaddressed for 8 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 45
Confidence: 90
Support Request: 10
close stale Snapcraft fails to build chained python parts due to a deprecated pkg_resources import error. Unaddressed for over 8 years with no maintainer interaction.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 20
Confidence: 95
Support Request: 10
close stale Building Python packages in chained snapcraft parts fails with a pkg_resources.py31compat ImportError. The report is open, unassigned, and has no comments or labels, awaiting triage and investigation.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.