← Back to issue list

Fail to build snap python3 distutils project

View original Github issue

Metadata

Project
snapcraft
Number
#45
Type
issue
State
closed
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

A Python3 build failure in snapcraft was reported. The author submitted PR #58 to fix it, but the maintainer closed the issue by announcing a return to Launchpad for bug tracking, superseding the fix and PR.

Suggested action:

No scores available.

Issue body

I created a simple hello world python3 project, using distutils. Building a snap for it failed will the following error: Building hello py3versions -i python3 /home/ubuntu/snapcraft-test/parts/hello/build/tmp62lgq3op install --install-layout=deb --prefix=/home/ubuntu/snapcraft-test/parts/hello/install/usr running install Checking .pth file support in /home/ubuntu/snapcraft-test/parts/hello/install/usr/lib/python3/dist-packages/ usr/bin/python3 -E -c pass unable to execute 'usr/bin/python3': No such file or directory error: command 'usr/bin/python3' failed with exit status 1 Failed doing build for hello! Launchpad Details: [#LP1507357](https://bugs.launchpad.net/bugs/1507357) Björn Tillenius - 2015-10-18 15:27:05 -0300

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b A Python3 build failure in snapcraft was reported. The author submitted PR #58 to fix it, but the maintainer closed the issue by announcing a return to Launchpad for bug tracking, superseding the fix and PR.
qwen/qwen3.6-35b-a3b A python3 setuptools build failure in snapcraft was reported. The author submitted a fix via PR #58. The maintainer closed the issue, noting bugs are tracked via Launchpad. The fix was addressed through the linked pull request.
qwen/qwen3.6-35b-a3b Closed and abandoned after maintainers reverted to Launchpad for bug tracking. A related pull request (#58) addressing the python3 build path error was submitted but not merged.
qwen3.6-35b-a3b-mtp-q6 Superseded and redirected to Launchpad. A fix for the python3 path error was proposed in PR #58. The project reverted to Launchpad for bug tracking, closing this GitHub issue.
qwen3.6-35b-a3b-mtp-q6 A Python3 setuptools build failure in snapcraft was reported. A fix was submitted via PR #58. The issue was closed as bug tracking was redirected back to Launchpad.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1507357 Fail to build snap python3 distutils project snapcraft (launchpad) closed Closed without resolution. The snap build failure for Python3 distutils projects, caused by a missing usr/bin/python3 path, appears abandoned due to zero comments and extended inactivity.
82%
#1864589 “ModuleNotFoundError: No module named ‘distutils.util’” when trying to build snaps on Launchpad (but works locally) snapcraft (launchpad) open Snapcraft Launchpad builds fail with 'No module named distutils.util' due to stage-directory caching of python3 deps; workaround (add python3-distutils to stage-packages) documented in body. Untriaged, no comments, inactive ~5 years.
73%
#1778716 snapcraft clean snapcraft fails as it cannot find python snapcraft (launchpad) closed Closed without comments or explicit resolution, likely abandoned or resolved in a later release. The bug reported a MissingPythonCommandError during snapcraft clean due to python3 path resolution ordering.
72%
#5408 Unable to build usable Python snaps which use Ubuntu-provided python3-* dependencies using strict confinement with core24 using snapcraft 8.8.0 (8.x/stable) snapcraft closed Closed as completed. The author applied a PYTHONPATH workaround in snapcraft.yaml to access staged packages. Maintainers declined a code fix, marking the issue as a reference for a future Python plugin rewrite.
71%
#1808782 Python snap that checks for 3.x at build time fails snapcraft (launchpad) closed Closed without resolution. The report detailed a Python snap build failure caused by a version check mismatch, but received no comments or fixes, indicating the issue was abandoned.
71%