"Missing directory" error when listing templates
Metadata
Current evaluation
Snapcraft 2.43.1 fixed the missing template directory error; the author confirmed the fix after the report was linked to LP #1789935.
Resolution: closed resolved
Reason: Maintainer ~sergiusens marked the report fixed by LP #1789935. The author subsequently confirmed the problem was fixed in Snapcraft 2.43.1.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Using snapcraft 2.43 snap in both Ubuntu 18.04.1 and 16.04.5, I get the following Python stack trace when running the "snapcraft templates" command:
Traceback (most recent call last):
File "/snap/snapcraft/1803/bin/snapcraft", line 11, in <module>
load_entry_point('snapcraft==2.43', 'console_scripts', 'snapcraft')()
File "/snap/snapcraft/1803/lib/python3.5/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/snap/snapcraft/1803/lib/python3.5/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/snap/snapcraft/1803/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/snap/snapcraft/1803/lib/python3.5/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/snapcraft/1803/lib/python3.5/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/snap/snapcraft/1803/lib/python3.5/site-packages/snapcraft/cli/templates.py", line 37, in templates
template_names = os.listdir(common.get_templatesdir())
FileNotFoundError: [Errno 2] No such file or directory: '/snap/snapcraft/1803/share/snapcraft/templates'
That directory does not exist. Should it instead be "/snap/snapcraft/1803/share/snapcraft/template-data"?
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft 2.43.1 fixed the missing template directory error; the author confirmed the fix after the report was linked to LP #1789935. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in Snapcraft 2.43.1; the reporter confirmed that the missing template-directory error no longer occurred. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without an identified fix; Snapcraft 2.43’s template-listing path failure has no documented resolving PR, commit, or version change. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The incorrect template directory path causing a FileNotFoundError was likely addressed in a later release or abandoned. No comments or fixes were applied. | |
| qwen/qwen3.6-35b-a3b | — | — | The snapcraft templates command failed due to an incorrect directory path. The report was closed without comments or a patch, indicating it was abandoned or resolved by upstream changes. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after reporting a FileNotFoundError for a missing templates directory. The issue was abandoned or resolved without additional comments or commits. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Reported a FileNotFoundError when running snapcraft templates due to an incorrect directory path. The issue was closed without comments or a documented fix. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Duplicate Of:
project#1789935
(confidence 98%)
The maintainer cited this earlier Launchpad issue as the fix for the Snapcraft packaging error.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1604385 Trying to snap a directory that doesn't exist prints [Errno 2] | snapcraft (launchpad) | closed | Snapcraft's error handling was improved to avoid exposing raw "[Errno 2]" for a missing snap directory; LP #1604385 was marked fixed and closed. |