I am attempting to create a snap of a patched stand-alone Python binary file and I would like to use
grade: stable and
The snap package for it is given below.
I have made it available from snapcraft.io and when I install it using
sudo snap install run-simplepy and execute the command
run-simplepy.runpyapp sample.py, I receive the error:
python-bin: tar_extract_all() failed: Operation not permitted.
However, if I cd to /snap/run-simplepy/current, I can execute
./python-bin sample.py as expected. Why is my command failing when I am triggering it from outside the
My snapcraft.yaml file :
summary: Simple Py
- build-on: amd64
The py.tar.gz contains just the Python binary executable. I am able to download this executable and run it on the machine without issues. Also, I have tried experimenting with different binary. I have tried the same process with nodejs binary and I was receiving the same error when trying to execute the some sample node.js script. Also, I am curious that the binary of a simple c-program that just prints “hello” did not get any such error when trying to execute. I am wondering what is the issue with Nodejs and Python binaries.