FileNotFoundError: [Errno 2] No such file or directory: '/home/alpha/Desktop/updatedfileSM/testapp/prime/bin/hello'
Metadata
Current evaluation
Resolved: current Snapcraft reports missing command files without exposing a raw FileNotFoundError traceback; the failing build referenced a nonexistent prime/bin/hello.
Resolution: closed resolved
Reason: Closing maintainer @~mr-cal confirmed that Snapcraft no longer produces a traceback for missing command files. No specific fixing PR or commit was identified in the available issue activity.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Successfully installed setuptools-40.6.2
Building testapp
Staging testapp
Priming testapp
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 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_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/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/alpha/Desktop/updatedfileSM/testapp/prime/bin/hello'
We would appreciate it if you created a bug report at
https://launchpad.net/snapcraft/+filebug with the above text included.
how to fix it
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Resolved: current Snapcraft reports missing command files without exposing a raw FileNotFoundError traceback; the failing build referenced a nonexistent prime/bin/hello. | |
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft no longer emits a raw traceback for missing command files; dedicated error handling was added in #2539 (e0cb7cb94), and the closing comment confirmed the old behavior is gone. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. Fixed by improving Snapcraft's error handling to gracefully manage missing command files, eliminating the traceback. The reported FileNotFoundError is no longer produced in newer versions. | |
| qwen/qwen3.8-27b |
Impact:
5
Quick Win:
4
Staleness:
100
Complexity:
15
Confidence:
90
Support Request:
85
|
close stale | Snapcraft 2.43.1 crashes with FileNotFoundError when wrapping app command bin/hello missing from prime. 2825 days old, zero comments, no labels, code path no longer exists in current codebase. User asks how to fix their snapcraft.yaml configuration. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
10
Confidence:
90
Support Request:
90
|
close not a bug | Reports a FileNotFoundError during snapcraft v2.43.1 build and requests troubleshooting help. Over seven years old with no maintainer interaction or labels. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
100
Complexity:
15
Confidence:
90
Support Request:
85
|
close stale | Snapcraft 2.43.1 build fails with FileNotFoundError for a missing executable in the prime directory. Issue is 7+ years old with no maintainer response or comments. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
10
Confidence:
90
Support Request:
95
|
close stale | FileNotFoundError during Snapcraft prime step due to missing binary path. Reported 7+ years ago with outdated Snapcraft 2.43.1, zero comments, and no maintainer response. |
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. | |
| #1812435 python snap fails to build no such file or directory in prime/bin | snapcraft (launchpad) | open | 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. |