← Back to issue list

TypeError: load() missing 1 required positional argument: 'Loader'

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1948597
Type
issue
State
open
Author
~kenneth-loafman
Labels
fatal snapcraft
Created
Updated
Closed

Current evaluation

Snapcraft 2.43.1 crashes during snap build with PyYAML TypeError (load() missing Loader) in internal/states/_state.py. No maintainer interaction for ~4.5 years; the affected code path no longer exists in the current codebase.

Suggested action: close stale

Reason: The issue targets snapcraft 2.43.1+18.4.1 on Ubuntu 18.04, a long-deprecated version, and the failing code path (snapcraft/internal/states/_state.py) no longer exists in the current codebase, which has a completely different structure (no internal/ directory). The PyYAML 5.1 Loader requirement has been addressed in all supported versions, and the issue has had zero comments or maintainer interaction for over 4 years.

Impact: 15 Quick Win: 12.75 Staleness: 95 Complexity: 15 Confidence: 80 Support Request: 10

Issue body

Bad ending while trying to build duplicity snap on GitLab. Sorry, an error occurred in Snapcraft: We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included. Traceback (most recent call last):   File "/usr/bin/snapcraft", line 11, in <module>     load_entry_point('snapcraft==2.43.1+18.4.1', '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 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 354, in _create_meta     common.env = self.config.snap_env()   File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/_config.py", line 289, in snap_env     dependency_paths |= part.get_primed_dependency_paths()   File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 885, in get_primed_dependency_paths     state = self.get_prime_state()   File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 144, in get_prime_state     self._prime_state = cast(states.PrimeState, self.get_state(steps.PRIME))   File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 148, in get_state     return states.get_state(self.plugin.statedir, step)   File "/usr/lib/python3/dist-packages/snapcraft/internal/states/_state.py", line 96, in get_state     state = yaml.load(f.read()) TypeError: load() missing 1 required positional argument: 'Loader'

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 15
Quick Win: 12.75
Staleness: 95
Complexity: 15
Confidence: 80
Support Request: 10
close stale Snapcraft 2.43.1 crashes during snap build with PyYAML TypeError (load() missing Loader) in internal/states/_state.py. No maintainer interaction for ~4.5 years; the affected code path no longer exists in the current codebase.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 90
Support Request: 10
close stale Snapcraft 2.43.1 crashes with a PyYAML load() missing Loader argument error during snap builds. Issue has been inactive for over 4 years and affects a long-deprecated version.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 10
Confidence: 95
Support Request: 10
close stale Reports a PyYAML yaml.load() TypeError during Snapcraft 2.43.1 builds. Unaddressed for over 4 years. The error stems from Python 3.8+ breaking changes in PyYAML, and the affected Snapcraft version is long obsolete.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 90
Support Request: 0
close stale Snapcraft 2.43.1 build fails with PyYAML load() missing Loader argument. Over 4 years old, no maintainer interaction, and references a long-deprecated version.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 90
Support Request: 10
close stale Report of a PyYAML compatibility error in Snapcraft 2.43.1 caused by missing Loader argument in yaml.load(). Issue is over 4 years old with no maintainer response.

Update history

No update history recorded yet.

Related work

  • Duplicate Of: snapcraft (launchpad)#1948597 (confidence 85%)

    Identical title and error (TypeError: load() missing 1 required positional argument: 'Loader') in snapcraft 2.43.1; same bug reported on Launchpad, also open and inactive.

Related issues

No related issues found above the similarity threshold.