← Back to issue list

Cannot package Python3 package - missing binary

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1811362
Type
issue
State
open
Author
~radek-sprta
Labels
Created
Updated
Closed

Current evaluation

Snapcraft 2.43.1 build fails with FileNotFoundError for bin/mariner in prime during _wrap_exe; app command points to a binary the Python package does not install. 7.6 years old, no maintainer interaction, snapcraft 2.x EOL and code path removed.

Suggested action: close stale

Reason: The issue targets snapcraft 2.43.1 (Ubuntu 18.04 era), and the failing code path snapcraft/internal/meta/_snap_packaging.py no longer exists in the current codebase (repo layout shows snapcraft/meta/ without the internal/ prefix). Related issue #1884683 explicitly notes the 2.x code path is gone. The root cause is a user configuration problem — the app command points to bin/mariner which the poetry-setup build does not install to prime/bin — making this a support question on an EOL version.

Impact: 15 Quick Win: 10.5 Staleness: 95 Complexity: 30 Confidence: 75 Support Request: 70

Issue body

The snap builds for Mariner have started failing without any change to snapcraft.yml. The error is below: 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/test/mariner/prime/bin/mariner' We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included. You can find the snapcraft.yaml here https://gitlab.com/radek-sprta/mariner/blob/90a6fb89c4354223ab844d5e14d77ec9f5d75db7/snapcraft.yaml. For the above test, I have used setup.py generated by poetry-setup (https://pypi.org/project/poetry-setup/). python3 setup.py bdist_wheel produces a valid package.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 15
Quick Win: 10.5
Staleness: 95
Complexity: 30
Confidence: 75
Support Request: 70
close stale Snapcraft 2.43.1 build fails with FileNotFoundError for bin/mariner in prime during _wrap_exe; app command points to a binary the Python package does not install. 7.6 years old, no maintainer interaction, snapcraft 2.x EOL and code path removed.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 35
Confidence: 90
Support Request: 60
close stale Reported Snapcraft build failure for a Python package due to a missing binary. The report has been inactive for over 7 years with no maintainer response or updates.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 90
Support Request: 80
close stale Snapcraft 2.43.1 packaging fails due to a missing binary. Issue is 7.5 years old, unlabelled, and has no maintainer interaction.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 75
close stale Unresolved report from 7.5 years ago detailing a Snapcraft build failure due to a missing binary in the prime stage. No maintainer response or activity.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 85
close stale Snapcraft packaging fails with FileNotFoundError for a missing binary. The issue is over 7 years old, unlabelled, unresponded to, and references a deprecated Snapcraft version.

Update history

No update history recorded yet.

Related work

  • Duplicate Of: snapcraft#1812435 (confidence 70%)

    Same pattern: Python snap build fails with FileNotFoundError for missing executable in prime/bin, also snapcraft 2.x, no maintainer interaction.

  • Related To: snapcraft#1884683 (confidence 65%)

    Same FileNotFoundError pattern in _wrap_exe; its summary confirms the 2.x code path no longer exists in modern snapcraft.

  • Related To: snapcraft#1797378 (confidence 60%)

    Same failure mode: app command points to a file not copied to prime/bin, snapcraft 2.43.1.

Related issues

Issue Project State Summary Similarity
#1812435 python snap fails to build no such file or directory in prime/bin snapcraft (launchpad) open 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.
75%