← Back to issue list

python snap fails to build no such file or directory in prime/bin

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1812435
Type
issue
State
open
Author
~dwoot
Labels
—
Created
Updated
Closed
—

Current evaluation

Snapcraft 2.43.1 fails while priming because apps.command references a missing prime/bin/mockpyairpulse; the supplied YAML lacks evidence about the source package's entry point.

Suggested action: needs triage

Reason: The traceback pinpoints the failure to the absent prime/bin/mockpyairpulse executable, and the follow-up provides the snapcraft.yaml but no source setup.py or primed-directory listing. With no labels or maintainer assessment, it remains unclear whether the project failed to declare/install the script or Snapcraft mishandled a valid Python entry point.

Evaluated by: mr-cal-bot

Impact: 30 Quick Win: 9 Complexity: 45 Confidence: 82 Actionability: 55

Issue body

Collecting pip Installing collected packages: pip Successfully installed pip-18.1 Fetching and installing wheel... Collecting wheel Using cached https://files.pythonhosted.org/packages/ff/47/1dfa4795e24fd6f93d5d58602dd716c3f101cfd5a77cd9acbe519b44a0a9/wheel-0.32.3-py2.py3-none-any.whl Saved ./parts/mockpyairpulse/python-packages/wheel-0.32.3-py2.py3-none-any.whl Successfully downloaded wheel Looking in links: /home/dwoot/bluepy/parts/mockpyairpulse/python-packages Collecting wheel Installing collected packages: wheel Successfully installed wheel-0.32.3 Fetching and installing setuptools... Collecting setuptools Using cached https://files.pythonhosted.org/packages/37/06/754589caf971b0d2d48f151c2586f62902d93dc908e2fd9b9b9f6aa3c9dd/setuptools-40.6.3-py2.py3-none-any.whl Saved ./parts/mockpyairpulse/python-packages/setuptools-40.6.3-py2.py3-none-any.whl Successfully downloaded setuptools Looking in links: /home/dwoot/bluepy/parts/mockpyairpulse/python-packages Collecting setuptools Installing collected packages: setuptools Successfully installed setuptools-40.6.3 Building mockpyairpulse Staging mockpyairpulse Priming mockpyairpulse 'grade' property not specified: defaulting to 'stable' Sorry, an error occurred in Snapcraft: Traceback (most recent call last): File "/usr/bin/snapcraft", line 9, in <module> load_entry_point('snapcraft==2.43.1', 'console_scripts', 'snapcraft')() File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1037, in invoke return Command.invoke(self, ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py", line 93, in run ctx.forward(lifecyclecli.commands["snap"]) File "/usr/lib/python3/dist-packages/click/core.py", line 552, in forward return self.invoke(cmd, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 136, in snap project = _execute(steps.PRIME, parts=[], **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 35, in _execute lifecycle.execute(step, project_config, parts) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 90, in execute executor.run(step, part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 196, in run self._create_meta(step, processed_part_names) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 359, in _create_meta self.config.validator.schema, File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 109, in create_snap_packaging packaging.write_snap_yaml() File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 312, in write_snap_yaml snap_yaml = self._compose_snap_yaml() File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 468, in _compose_snap_yaml snap_yaml["apps"] = self._wrap_apps(self._config_data["apps"]) File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 567, in _wrap_apps self._wrap_app(app, apps[app]) File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 575, in _wrap_app app[k] = self._wrap_exe(app[k], "{}-{}".format(k, name)) File "/usr/lib/python3/dist-packages/snapcraft/internal/meta/_snap_packaging.py", line 546, in _wrap_exe with open(exepath, "rb") as exefile: FileNotFoundError: [Errno 2] No such file or directory: '/home/dwoot/bluepy/prime/bin/mockpyairpulse'

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 30
Quick Win: 9
Complexity: 45
Confidence: 82
Actionability: 55
needs triage Snapcraft 2.43.1 fails while priming because apps.command references a missing prime/bin/mockpyairpulse; the supplied YAML lacks evidence about the source package's entry point.
stealth/space-bunny-alpha
Impact: 42
Quick Win: 17
Complexity: 38
Confidence: 91
Actionability: 66
needs triage Snapcraft 2.43.1 aborts because prime/bin/mockpyairpulse is absent; the supplied YAML is insufficient to show whether the source entry point or app command is misconfigured.
stealth/space-bunny-alpha
Impact: 30
Quick Win: 11
Complexity: 35
Confidence: 88
Actionability: 55
needs triage Snapcraft 2.43.1 aborts because prime/bin/mockpyairpulse is absent. Without snapcraft.yaml or maintainer assessment, it is unclear whether the expected Python entry point was not built or misdeclared.
stealth/space-bunny-alpha
Impact: 30
Quick Win: 3
Complexity: 50
Confidence: 91
Actionability: 20
close stale Snapcraft 2.43.1 raised FileNotFoundError for prime/bin/mockpyairpulse; this unanswered report concerns a legacy implementation later removed.
stealth/space-bunny-alpha
Impact: 28
Quick Win: 5
Complexity: 54
Confidence: 78
Actionability: 35
needs triage Snapcraft 2.43.1 crashes while priming a Python snap because prime/bin/mockpyairpulse is absent. Open and untriaged; the project recipe, fix, and full log are unavailable.
qwen/qwen3.8-27b
Impact: 20
Quick Win: 14
Staleness: 95
Complexity: 30
Confidence: 75
Support Request: 70
close stale Snapcraft 2.43.1 crashes with FileNotFoundError when an app's command is missing from prime/bin during snap packaging. Reported 2782 days ago with no comments, labels, or maintainer response. The legacy code path no longer exists in the current codebase.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 90
Support Request: 80
close stale Snapcraft build fails during prime step with FileNotFoundError for a missing executable in prime/bin. Issue is over 7 years old with no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 92
Support Request: 25
close stale Python snap build fails during prime step due to missing executable in prime/bin. Issue is over 7 years old with no activity or maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 99
Complexity: 20
Confidence: 92
Support Request: 45
close stale Snapcraft build fails during the prime step due to a missing executable in prime/bin. The report is over seven years old with no maintainer response or follow-up.

Update history

Date Change
created

Related issues

Issue Project State Summary Similarity
#1794636 Error when building snap package in priming stage snapcraft (launchpad) closed User error: the app's `command:` binary was never installed into prime/, causing FileNotFoundError in _wrap_exe. Reporter copied the built folder/file into prime/ themselves; no Snapcraft fix.
76%
#1795171 snapcraft fail to find built executable under prime $SNAP snapcraft (launchpad) closed Launchpad #1795171: crash was user error — app command used literal $SNAP/bin/ags. Maintainer @ogra gave the correct YAML (command: bin/ags), reporter confirmed; report later expired for 60 days inactivity.
73%
#1797378 Built executable is not copied to prime/bin/ snapcraft (launchpad) open Snapcraft 2.43.1 fails on missing prime/bin/prettier although build/bin contains only prettier.js. The report suggests a command/config mismatch, but lacks project files or maintainer triage.
73%
#1807117 FileNotFoundError: [Errno 2] No such file or directory: '/home/alpha/Desktop/updatedfileSM/testapp/prime/bin/hello' snapcraft (launchpad) closed Resolved: current Snapcraft reports missing command files without exposing a raw FileNotFoundError traceback; the failing build referenced a nonexistent prime/bin/hello.
71%