Hey Snapcrafters Community, recently i decided to contribute something to Snaps and Ubuntu, so as a starter in building snaps i picked up Thonny, initial stages went fine but in the prime time i cant package my snap, the output is as follows :
usr/bin/thonny" does not exist
2023/02/27 05:00:51.795475 container.go:215: in snap “thonny”: path “usr/bin” does not exist
2023/02/27 05:00:51.795484 container.go:215: in snap “thonny”: path “usr” does **
not exist
error: cannot pack “/root/prime”: snap is unusable due to missing files)
Here is my YAML :
name: thonny
base: core22
version: ‘4.0.2’
summary: Beginner Friendly Python IDE.
description: |
Easy to use beginner friendly Python IDE.
Hey do you have any idea for the following output after several builds (modified) and even yours, snapcraft cant build the snap :-
Cannot pack snap file: Command '['snap', 'pack', '--filename', 'thonny_4.0.2_amd64.snap', '--compression', 'lzo', PosixPath('/build/thonny-ide/prime'), PosixPath('/build/thonny-ide')]' returned non-zero exit status 1. (container.go:215: in snap "thonny": path "bin/thonny" does not exist
error: cannot pack "/build/thonny-ide/prime": snap is unusable due to missing files)
Full execution log: '/root/.cache/snapcraft/log/snapcraft-20230227-130109.177634.log'
Build failed
the patch in my tree is outdated (20.04 moved to python3.10 meanwhile and the u2fdialog.py file changed) … if i drop that patch from my tree to just do a test build, it builds fine and i find bin/thonny in the prime dir …
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Failed to run 'override-pull': Exit code was 2.
Build failed
Issues while validating snapcraft.yaml: The 'parts/thonny/plugin' property does not match the required schema: ['dump', 'python'] is not of type 'string'
That looks more like wrong syntax in your snapcraft.yaml