I’m trying to build a snap of a small project I’ve been working on with some friends, a python app hosted on github. I have a python file called
run, in a directory called
bin, which is what I would like to expose to the system. The issue is that
snapcraft exits with the error
Failed to generate snap metadata: The specified command 'bin/run' defined in the app 'pyplane' is not executable.
I’m not sure what I’m doing wrong, so any help would be much appreciated.
The project is hosted at https://github.com/m-squared96/PyPLANE.
This is my
name: pyplane summary: PyPLANE description: An open source replacement to the traditional DFIELD and PPLANE applications for solving systems of ODEs base: core18 version: "git" parts: pyplane: source: . source-branch: snap_testing plugin: python python-version: "python3" python-packages: - numpy - sympy - scipy - matplotlib - pyqt5 apps: pyplane: command: bin/run confinement: strict
#!/usr/bin/env python3 import sys from PyQt5.QtWidgets import QApplication from PyPLANE.ui_main_window import MainWindow app = QApplication(sys.argv) app_main_window = MainWindow() sys.exit(app.exec())
Steps I take building the snap from scratch
- Clone the repo
git checkout snap_testing(The branch I’m using to try and build the snap)