FileNotFoundError: [Errno 2] No such file or directory:
Metadata
Current evaluation
snapcraft 2.43.1 nodejs plugin build fails with FileNotFoundError for app command in prime dir during npm install; no maintainer response, 0 comments, 2820 days old, nodejs plugin removed from modern snapcraft
Suggested action: close stale
Reason: The issue is 2820 days old (~7.7 years) with zero comments and no maintainer interaction. It references snapcraft 2.43.1 on Ubuntu 18.10, both long since EOL. The nodejs plugin has been removed from modern snapcraft (the current repo layout shows no nodejs_plugin.py under snapcraft/parts/plugins/). The original problem is no longer reproducible in current versions and the affected version is no longer supported.
Impact:
20
Quick Win:
12.0
Staleness:
95
Complexity:
40
Confidence:
70
Support Request:
30
Issue body
Building a snap of a nodejs command line app.
Using snapcraft, version 2.43.1+18.4 on Ubuntu 18.10
I run snapcraft from the project root, which contains snap/snapcraft.yaml
There is the bin/pocket-cli file which is the file I want to be executed.
The snapcraft.yaml has:
```
parts:
pocket-cli:
plugin: nodejs
source: .
node-engine: 11.4.0
apps:
pocket-cli:
command: bin/pocket-cli
```
When it gets to run ```npm --cache-min=Infinity install --global``` at one point fails like this:
The version has been set to 'v0.4.3+git8.d0ba52c'
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 759, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 714, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1109, in invoke
return Command.invoke(self, ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 951, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 552, 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 570, in forward
return self.invoke(cmd, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 552, 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/ildella/projects/personal/pocket-cli/prime/bin/pocket-cli'
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.8-27b |
Impact:
20
Quick Win:
12.0
Staleness:
95
Complexity:
40
Confidence:
70
Support Request:
30
|
close stale | snapcraft 2.43.1 nodejs plugin build fails with FileNotFoundError for app command in prime dir during npm install; no maintainer response, 0 comments, 2820 days old, nodejs plugin removed from modern snapcraft | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
15
Confidence:
95
Support Request:
20
|
close stale | Snapcraft 2.43.1 fails with FileNotFoundError when wrapping a Node.js CLI app executable during snap building on Ubuntu 18.10. Issue is completely inactive for over 7 years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
35
Confidence:
85
Support Request:
15
|
close stale | Bug report for Snapcraft 2.43.1 on Ubuntu 18.10 causing FileNotFoundError during snap packaging. Issue is inactive for ~7.6 years with no maintainer response or labels. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
25
Confidence:
85
Support Request:
75
|
close stale | FileNotFoundError during snapcraft build for a Node.js CLI app using v2.43.1 on Ubuntu 18.10. No maintainer interaction or activity in over 7 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
25
Confidence:
90
Support Request:
30
|
close stale | Report of a FileNotFoundError during snapcraft build for a Node.js CLI app using snapcraft 2.43.1 on Ubuntu 18.10. Issue is over 7 years old with no maintainer response. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1830520 Sorry, an error occurred in Snapcraft: | snapcraft (launchpad) | open | Snapcraft 2.43.1 (2019) crashed with FileNotFoundError wrapping app command spx_service missing from the prime dir during a Launchpad build. No maintainer activity in 7+ years; the 2.x code path no longer exists and the root cause is user snapcraft.yaml config. | |
| #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. | |
| #1884683 snapcraft fail app | snapcraft (launchpad) | open | Snapcraft 2.43.1+18.4 crashes with FileNotFoundError when an app's command points to /bin/Sastreria, which is missing from the prime directory. No comments or labels; the affected 2.x version is long EOL and the code path no longer exists. |