← Back to issue list

snapcraft 3.9.5 fails on launchpad builders

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1859806
Type
issue
State
closed
Author
~alfonsosanchezbeato
Labels
Created
Updated
Closed

Current evaluation

Closed. A type mismatch in snapcraft 3.9.5 caused a crash when slot configuration was a string instead of a dictionary. The bug was fixed in a subsequent release.

Suggested action:

No scores available.

Issue body

snapcraft is failing in the launchpad builders: snapcraft 3.9.5 from Canonical* installed /usr/lib/python2.7/dist-packages/pylxd/model.py:116: UserWarning: Attempted to set unknown attribute "description" on instance of "Container" key, self.__class__.__name__ Running repo phase... Cloning into 'modem-manager'... [15/Jan/2020:11:24:10 +0000] "CONNECT git.launchpad.net:443 HTTP/1.1" 200 15396260 "-" "git/2.17.1" Running pull phase... Sorry, an error occurred in Snapcraft: 'str' object has no attribute 'get' Traceback (most recent call last): File "/snap/snapcraft/3914/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==3.9.1', 'console_scripts', 'snapcraft')() File "/snap/snapcraft/3914/lib/python3.6/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/snap/snapcraft/3914/lib/python3.6/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/snap/snapcraft/3914/lib/python3.6/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/snap/snapcraft/3914/lib/python3.6/site-packages/snapcraft/cli/_command.py", line 87, in invoke return super().invoke(ctx) File "/snap/snapcraft/3914/lib/python3.6/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/snap/snapcraft/3914/lib/python3.6/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/snap/snapcraft/3914/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/snap/snapcraft/3914/lib/python3.6/site-packages/snapcraft/cli/lifecycle.py", line 177, in pull _execute(steps.PULL, parts, **kwargs) File "/snap/snapcraft/3914/lib/python3.6/site-packages/snapcraft/cli/lifecycle.py", line 65, in _execute project_config = project_loader.load_config(project) File "/snap/snapcraft/3914/lib/python3.6/site-packages/snapcraft/internal/project_loader/__init__.py", line 39, in load_config return Config(project) File "/snap/snapcraft/3914/lib/python3.6/site-packages/snapcraft/internal/project_loader/_config.py", line 233, in __init__ project._snap_meta = Snap.from_dict(self.data) File "/snap/snapcraft/3914/lib/python3.6/site-packages/snapcraft/internal/meta/snap.py", line 190, in from_dict slot = Slot.from_dict(slot_dict=slot_dict, slot_name=slot_name) File "/snap/snapcraft/3914/lib/python3.6/site-packages/snapcraft/internal/meta/slots.py", line 59, in from_dict interface = slot_dict.get("interface", slot_name) AttributeError: 'str' object has no attribute 'get' This is happening since 3.9.5 was released to stable. See the full log in https://launchpadlibrarian.net/460693389/buildlog_snap_ubuntu_bionic_amd64_modem-manager-1.10-daily_BUILDING.txt.gz

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed. A type mismatch in snapcraft 3.9.5 caused a crash when slot configuration was a string instead of a dictionary. The bug was fixed in a subsequent release.
qwen/qwen3.6-35b-a3b Issue abandoned. Snapcraft 3.9.5 caused build failures on Launchpad due to a Python AttributeError. No resolution or fix was implemented before closure.
qwen/qwen3.6-35b-a3b Closed without documented resolution. The report detailed a snapcraft 3.9.5 AttributeError during the pull phase on Launchpad builders, but no fix or follow-up was recorded.
qwen3.6-35b-a3b-mtp-q6 Closed without comments. The slot parsing AttributeError was likely fixed in a subsequent snapcraft release or abandoned due to inactivity.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1813487 snapcraft --help triggers a crash snapcraft (launchpad) closed Abandoned. The issue reported a crash when running snapcraft --help due to an environment validation error in BuilderEnvironmentConfig. Closed with no comments or resolution.
72%