← Back to issue list

File "/snap/snapcraft/2650/legacy_snapcraft/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==2.43.1', 'console_scripts', 'snapcraft')() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 187, in prime _execute(steps.PRIME, parts, **kwargs) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 98, in _execute lifecycle.execute(step, project_config, parts) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 90, in execute executor.run(step, part_names) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 194, in run self._handle_step(part_names, part, step, current_step, cli_config) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 208, in _handle_step getattr(self, "_run_{}".format(current_step.name))(part) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 250, in _run_pull self._run_step(step=steps.PULL, part=part, progress="Pulling") File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 327, in _run_step getattr(part, step.name)() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 413, in pull self._runner.pull() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 83, in pull "override-pull", self._override_pull_scriptlet, self._sourcedir File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 162, in _run_scriptlet scriptlet_name, function_call.strip() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 218, in _handle_builtin_function function(**function_args) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 432, in _do_pull self.source_handler.pull() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/sources/_base.py", line 106, in pull self.provision(self.source_dir, src=source_file, clean_target=False) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/sources/_zip.py", line 66, in provision with zipfile.ZipFile(zip, "r") as f: File "/snap/snapcraft/2650/legacy_snapcraft/usr/lib/python3.5/zipfile.py", line 1026, in __init__ self._RealGetContents() File "/snap/snapcraft/2650/legacy_snapcraft/usr/lib/python3.5/zipfile.py", line 1093, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included.

View original Launchpad issue

Metadata

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

Current evaluation

User reports BadZipFile error when snapcraft tries to pull a source file. No maintainer response, 7+ years old.

Suggested action: close not a bug

Reason: The error 'File is not a zip file' is a clear user configuration issue — the source file provided to snapcraft is not a valid zip archive, which is expected behavior. The error message is already informative and guides users to file a bug report. This is not a snapcraft bug but rather a support/usage question about incorrect source configuration.

Impact: 5 Quick Win: 4.5 Staleness: 95 Complexity: 10 Confidence: 80 Support Request: 85

Issue body

File "/snap/snapcraft/2650/legacy_snapcraft/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==2.43.1', 'console_scripts', 'snapcraft')() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 187, in prime _execute(steps.PRIME, parts, **kwargs) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 98, in _execute lifecycle.execute(step, project_config, parts) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 90, in execute executor.run(step, part_names) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 194, in run self._handle_step(part_names, part, step, current_step, cli_config) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 208, in _handle_step getattr(self, "_run_{}".format(current_step.name))(part) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 250, in _run_pull self._run_step(step=steps.PULL, part=part, progress="Pulling") File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 327, in _run_step getattr(part, step.name)() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 413, in pull self._runner.pull() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 83, in pull "override-pull", self._override_pull_scriptlet, self._sourcedir File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 162, in _run_scriptlet scriptlet_name, function_call.strip() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 218, in _handle_builtin_function function(**function_args) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 432, in _do_pull self.source_handler.pull() File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/sources/_base.py", line 106, in pull self.provision(self.source_dir, src=source_file, clean_target=False) File "/snap/snapcraft/2650/legacy_snapcraft/lib/python3.5/site-packages/snapcraft/internal/sources/_zip.py", line 66, in provision with zipfile.ZipFile(zip, "r") as f: File "/snap/snapcraft/2650/legacy_snapcraft/usr/lib/python3.5/zipfile.py", line 1026, in __init__ self._RealGetContents() File "/snap/snapcraft/2650/legacy_snapcraft/usr/lib/python3.5/zipfile.py", line 1093, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file 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
qwen3.6-35b-a3b-mtp-q6
Impact: 5
Quick Win: 4.5
Staleness: 95
Complexity: 10
Confidence: 80
Support Request: 85
close not a bug User reports BadZipFile error when snapcraft tries to pull a source file. No maintainer response, 7+ years old.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 10
Confidence: 100
Support Request: 20
close stale Traceback showing zipfile.BadZipFile during snapcraft pull step. Issue is 7+ years old, uses obsolete version 2.43.1, and lacks reproduction details.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 10
Confidence: 95
Support Request: 85
close stale Raw traceback from snapcraft 2.43.1 reporting a BadZipFile error. No context or reproduction steps provided. Issue is over 7 years old with no maintainer interaction and references obsolete software versions.
qwen3.6-35b-a3b-mtp-q6
Staleness: 100
Complexity: 10
Confidence: 95
Support Request: 20
close stale Traceback in snapcraft 2.43.1 due to BadZipFile error. Issue is 7 years old, inactive, and uses a deprecated version.
qwen3.6-35b-a3b-mtp-q6
Staleness: 100
Complexity: 10
Confidence: 95
Support Request: 20
close stale Traceback for snapcraft 2.43.1 showing BadZipFile error during pull step. Issue is 7 years old, no comments, and version is obsolete.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1809852 zipfile.BadZipFile: File is not a zip file raises an exception snapcraft (launchpad) open Snapcraft 2.43.1 crash during pull: zipfile.BadZipFile when a source file is not a valid zip. No maintainer interaction for ~7.5 years; the old internal/sources code path no longer exists in current snapcraft.
74%
#1829413 snapcraft requested file bug report snapcraft (launchpad) open Snapcraft 2.43.1 crashed with FileNotFoundError on the snapcraftctl function_call fifo after a keepalived compile failure on Xenial. No maintainer activity in ~7 years; the snapcraftctl code path no longer exists in the current codebase and the affected version is EOL.
72%
#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.
71%