I had a working snap built with the ‘dump’ plugin.
Now I’m trying to switch that over to the ‘python’ plugin and struggling to solve for the following error when running snapcraft cleanbuild
:
Failed to generate snap metadata: The specified command 'bin/sp' defined in the app {'command': 'bin/sp'} does not exist or is not executable.
Ensure that 'bin/sp' is relative to the prime directory.
Simplified snap/snapcraft.yaml
name: scout-plane
version: beta1
summary: ScoutPlane
description: Support log downloader, analysis, prep, and isolation tool
grade: devel
confinement: devmode
apps:
scout-plane:
command: bin/sp
parts:
scout-plane:
source: .
plugin: python
python-version: python3
python-packages:
- paramiko
- pylxd
Truncated directory layout:
root@scoutplane-dev:~/sp# tree .
.
├── LICENSE
├── README.md
├── bin
│ ├── lxdhelper.py
│ └── sp
├── snap
│ └── snapcraft.yaml
├── snapit
└── tests
├──
.... truncated....
3 directories, 10 files
File Permissions:
-rwxr-xr-x 1 root root 7882 Dec 5 17:50 sp