← Back to issue list

Can't Buidl on WSL2 any Longer

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1871273
Type
issue
State
open
Author
~vision9
Labels
Created
Updated
Closed

Current evaluation

Snapcraft build fails on WSL2 with KeyError 'dependencies' in the nodejs plugin's _get_installed_node_packages while parsing yarn output. 6+ years old, zero comments, no maintainer response; old plugin architecture since replaced.

Suggested action: close stale

Reason: The issue is 2338 days old with zero comments and no maintainer interaction. The traceback references snapcraft/plugins/nodejs.py, but the current repo layout shows no snapcraft/plugins/ directory — the old plugin architecture has been replaced by the parts-based system (snapcraft/parts/), so the reported code path no longer exists. The affected snapcraft 2.43.1 on Ubuntu bionic is long out of support, making the original problem no longer reproducible in the current codebase.

Impact: 20 Quick Win: 12.0 Staleness: 95 Complexity: 40 Confidence: 70 Support Request: 25

Issue body

This started in the last few days, was working fine before. Here's the error details: Get:1 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB] Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB] Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:4 https://deb.nodesource.com/node_12.x bionic InRelease [4584 B] Get:5 https://packages.microsoft.com/repos/azure-cli bionic InRelease [3964 B] Get:6 https://dl.yarnpkg.com/debian stable/main amd64 Packages [9953 B] Get:7 https://dl.yarnpkg.com/debian stable/main all Packages [9953 B] Get:8 https://packages.microsoft.com/repos/azure-cli bionic/main amd64 Packages [8652 B] Get:9 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:10 https://deb.nodesource.com/node_12.x bionic/main amd64 Packages [765 B] Get:11 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:12 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [680 kB] Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1019 kB] Get:14 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [218 kB] Get:15 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB] Get:16 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [29.6 kB] Get:17 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9184 B] Get:18 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [7752 B] Get:19 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [653 kB] Get:20 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3584 B] Get:21 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB] Get:22 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [217 kB] Get:23 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [6968 B] Get:24 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2732 B] Get:25 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB] Get:26 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB] Get:27 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB] Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [909 kB] Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [313 kB] Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [42.8 kB] Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [10.8 kB] Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1062 kB] Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [330 kB] Get:34 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [10.5 kB] Get:35 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [4696 B] Get:36 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2512 B] Get:37 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [1644 B] Get:38 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4020 B] Get:39 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1900 B] Fetched 20.4 MB in 6s (3124 kB/s) Get:1 dialog_1.3-20171209-1_amd64.deb [217 kB] Fetched 217 kB in 0s (0 B/s) Get:1 gcc-8-base_8.4.0-1ubuntu1~18.04_amd64.deb [18.7 kB] Fetched 18.7 kB in 0s (0 B/s) Get:1 libatomic1_8.4.0-1ubuntu1~18.04_amd64.deb [9192 B] Fetched 9192 B in 0s (0 B/s) Pulling vision9-solar-monitor Downloading 'node-v12.16.1-linux-x64.tar.gz'[=====================================================================] 100% Downloading 'latest.tar.gz'[======================================================================================] 100% /home/joe/solar/monitor-snap/parts/vision9-solar-monitor/npm/bin/yarn add file:/home/joe/solar/monitor-snap/parts/vision9-solar-monitor/src yarn add v1.22.4 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... success Saved 1 new dependency. info Direct dependencies └─ vision9-solar-monitor@2.1.1-beta info All dependencies └─ vision9-solar-monitor@2.1.1-beta Done in 10.46s. 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 1043, in invoke return Command.invoke(self, 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/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 553, in forward return self.invoke(cmd, **kwargs) 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 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 194, in run self._handle_step(part_names, part, step, current_step, cli_config) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 208, in _handle_step getattr(self, "_run_{}".format(current_step.name))(part) File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 250, in _run_pull self._run_step(step=steps.PULL, part=part, progress="Pulling") File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 327, in _run_step getattr(part, step.name)() File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 415, in pull self._runner.pull() File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 83, in pull "override-pull", self._override_pull_scriptlet, self._sourcedir File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 162, in _run_scriptlet scriptlet_name, function_call.strip() File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 218, in _handle_builtin_function function(**function_args) File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 435, in _do_pull self.plugin.pull() File "/usr/lib/python3/dist-packages/snapcraft/plugins/nodejs.py", line 160, in pull self._yarn_install(rootdir=self.sourcedir) File "/usr/lib/python3/dist-packages/snapcraft/plugins/nodejs.py", line 255, in _yarn_install return self._get_installed_node_packages("npm", self.installdir) File "/usr/lib/python3/dist-packages/snapcraft/plugins/nodejs.py", line 270, in _get_installed_node_packages "dependencies" KeyError: 'dependencies'

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: 25
close stale Snapcraft build fails on WSL2 with KeyError 'dependencies' in the nodejs plugin's _get_installed_node_packages while parsing yarn output. 6+ years old, zero comments, no maintainer response; old plugin architecture since replaced.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 35
Confidence: 90
Support Request: 10
close stale Snapcraft build fails on WSL2 with a KeyError in the nodejs plugin while parsing yarn output. Issue is over 6 years old with no activity or maintainer response.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 92
Support Request: 10
close stale Build fails with a KeyError in an outdated Snapcraft nodejs plugin on WSL2. Issue is over 6 years old, has no maintainer interaction, and relies on obsolete software versions.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 10
close stale WSL2 build failure in Snapcraft 2.43.1 caused by a KeyError in the nodejs plugin. Issue is over 6 years old, uses EOL Ubuntu 18.04 and Node 12, and is no longer reproducible on supported versions.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 35
Confidence: 90
Support Request: 20
close stale Build failure in Snapcraft NodeJS plugin on WSL2 caused by a KeyError during yarn dependency resolution. Issue is over 6 years old with no maintainer interaction.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1819804 nodejs plugin: build fails if there are missing peer dependencies. snapcraft (launchpad) open Snapcraft nodejs plugin build fails when npm ls --json exits non-zero on missing peer deps; the CalledProcessError fallback is dead code since run_output wraps it in SnapcraftPluginCommandError. Open 7.5 years, unlabelled, no maintainer activity.
72%