← Back to issue list

An error occurred building hello world Snapcraft

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1797795
Type
issue
State
closed
Author
~pop-alx
Labels
—
Created
Updated
Closed

Current evaluation

User reported a FileNotFoundError for a missing bin/hello executable during snapcraft prime. Maintainer identified it as a snapcraft.yaml configuration error and closed the issue as stale after years of inactivity.

Resolution: closed stale

Reason: Closed by maintainer @mr-cal as stale due to years of inactivity. The original report was a user configuration error where the apps entry referenced a binary not staged by any part.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I am trying to build hello world snap. The snapcraft.yaml is: name: hello version: '2.10' summary: GNU Hello, the "hello world" snap description: | GNU hello prints a friendly greeting. grade: devel confinement: devmode apps: hello: command: bin/hello bash: command: bash parts: gnu-bash: source: http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz plugin: autotools configflags: ["--infodir=/var/bash/info"] When I try to build the snap I got the next error: popalex@ubuntu18-esb:~/mysnaps/hello$ snapcraft prime Skipping pull gnu-bash (already ran) Skipping build gnu-bash (already ran) Skipping stage gnu-bash (already ran) Skipping prime gnu-bash (already ran) Sorry, an error occurred in Snapcraft: Traceback (most recent call last): File "/usr/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==2.43.1+18.4', 'console_scripts', 'snapcraft')() File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 115, in prime _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/popalex/mysnaps/hello/prime/bin/hello' We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b — closed stale User reported a FileNotFoundError for a missing bin/hello executable during snapcraft prime. Maintainer identified it as a snapcraft.yaml configuration error and closed the issue as stale after years of inactivity.
stealth/space-bunny-alpha
Impact: 10
Quick Win: 9
Complexity: 5
Confidence: 99
Actionability: 98
close not a bug Maintainer-diagnosed recipe error: apps.hello references prime/bin/hello, but the bash part never stages GNU Hello; remove the app or add stage-packages: [hello].
stealth/space-bunny-alpha
Impact: 15
Quick Win: 10
Complexity: 10
Confidence: 88
Actionability: 75
close not a bug Snapcraft 2.43.1 crashes with FileNotFoundError for prime/bin/hello because the reporter's snapcraft.yaml declares apps.hello but never stages that binary; maintainer @ogra diagnosed it as a user config error (add stage-packages or drop the apps entry).
stealth/space-bunny-alpha
Impact: 18
Quick Win: 17
Complexity: 5
Confidence: 97
Actionability: 98
close not a bug Open, maintainer-diagnosed configuration error: apps.hello references bin/hello, but the gnu-bash part never stages GNU Hello; remove the app or add the hello package.
qwen/qwen3.6-35b-a3b
Impact: 0
Quick Win: 0
Complexity: 0
Confidence: 90
Actionability: 100
close not a bug User gets FileNotFoundError when building hello world snap due to missing bin/hello binary in prime directory
qwen/qwen3.8-27b
Impact: 10
Quick Win: 9
Staleness: 95
Complexity: 10
Confidence: 75
Support Request: 85
close not a bug Snapcraft 2.43.1 prime crashes with FileNotFoundError when app command points to bin/hello, but only gnu-bash part is built so the binary doesn't exist. User configuration error, 7.9 years old, 0 comments, no labels.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 20
close stale Snapcraft build fails with FileNotFoundError during prime stage. Issue is 7.8 years old, uses deprecated snapcraft 2.43.1, and has no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 15
Confidence: 90
Support Request: 20
close stale Reports a FileNotFoundError during snapcraft prime due to missing bin/hello. Issue remains untriaged and inactive for over 7 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 20
Confidence: 92
Support Request: 30
close stale Report of a FileNotFoundError during snapcraft prime with v2.43.1 due to a missing prime/bin/hello file. The issue has been inactive for over 7 years with no maintainer response.

Update history

Date Change
closed
created

Related issues

Issue Project State Summary Similarity
#1830520 Sorry, an error occurred in Snapcraft: snapcraft (launchpad) closed Snapcraft build failed due to missing binary. Closed as stale.
74%
#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%