← Back to issue list

an error occurred in snapcraft

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1853682
Type
issue
State
closed
Author
~skawu
Labels
craft-55
Created
Updated
Closed

Current evaluation

Closed as stale without a linked fix. The original 2.43.1 crash was later guarded in snapcraft/snapcraft#5728; later 4.7.1 comments reported a separate apt-cache failure.

Resolution: closed stale

Reason: The record shows closure after inactivity with no linked fix or explanatory closing comment; the 2019 maintainer comment only noted that newer versions appeared to address it. Commit 3f076004f (snapcraft/snapcraft#5728) later added guards that skip malformed app definitions, matching the original NoneType path.

Evaluated by: mr-cal-bot

No scores available.

Issue body

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 34, in _execute project_config = project_loader.load_config(project) File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/__init__.py", line 36, in load_config return Config(project) File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/_config.py", line 210, in __init__ snapcraft_yaml = apply_extensions(project.info.get_raw_snapcraft()) File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/_extensions/_utils.py", line 55, in apply_extensions extension_names = app_definition.get("extensions") AttributeError: 'NoneType' object has no attribute 'get'

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as stale without a linked fix. The original 2.43.1 crash was later guarded in snapcraft/snapcraft#5728; later 4.7.1 comments reported a separate apt-cache failure.
stealth/space-bunny-alpha — closed stale Closed without a linked fix or maintainer explanation after inactivity; later comments reported a different Snapcraft 4.7.1 apt-cache traceback.
stealth/space-bunny-alpha — closed stale Snapcraft 2.43.1 crashed with a NoneType AttributeError while applying extensions. The report was closed without comments, a linked fix, or a documented resolution.
qwen/qwen3.6-35b-a3b — — Closed without comments or resolution. Reports a NoneType AttributeError in snapcraft 2.43.1 during extension loading. Likely abandoned or resolved by upgrading to a newer version.
qwen/qwen3.6-35b-a3b — — Closed without comments. Snapcraft 2.43.1 raised an AttributeError when app_definition was None during extension processing. The report was likely abandoned or fixed upstream.
qwen/qwen3.6-35b-a3b — — Closed without resolution, likely abandoned. The report details an AttributeError in Snapcraft 2.43.1 during extension loading, but no fix or discussion was provided.
qwen3.6-35b-a3b-mtp-q6 — — Abandoned and closed without comments or resolution. The report details a snapcraft 2.43.1 AttributeError when app_definition is None during extension processing. No fix was implemented.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft/snapcraft#5728 (confidence 90%)

    Commit 3f076004f, titled "fix: crash on certain YAML schema errors," added type guards matching this traceback.

Related issues

Issue Project State Summary Similarity
#1650686 Some symlinks not properly fixed up snapcraft (launchpad) closed Closed as stale in September 2017 after the reporter could not reproduce the problem; no Snapcraft fix was identified.
72%
#1830520 Sorry, an error occurred in Snapcraft: snapcraft (launchpad) closed Snapcraft build failed due to missing binary. Closed as stale.
71%
#1867052 Snapcraft crashes while creating snap for ssh-audit snapcraft (launchpad) closed Closed as stale after prolonged inactivity; no Snapcraft PR or commit was cited as resolving the ssh-audit FileNotFoundError.
71%
#1663303 Running snapcraft on Ubuntu 14.04 fails with a traceback snapcraft (launchpad) closed Closed as stale: maintainer ~kyrofa said Snapcraft 2.35 should run on Trusty, making the earlier missing liblz4.so.1 failure obsolete.
71%