Setting up Environment

I’m having trouble setting up the right command and path to my application. I’m just trying to make a simple python application.

When I run
$ snapcraft

I get:

mesg: ttyname failed: Inappropriate ioctl for device
mesg: ttyname failed: Inappropriate ioctl for device
mesg: ttyname failed: Inappropriate ioctl for device
error: no changes of type “auto-refresh” found
2020-03-13T04:59:16Z INFO Waiting for restart…
snapd 2.43.3 from Canonical✓ installed

Screenshot%20from%202020-03-12%2022-29-38

and at the bottom I get:

The command ‘python3 $SNAP/myflask-app/current/app.py’ was not found in the prime directory, it has been changed to ‘/usr/bin/python3’.
A shell wrapper will be generated for command ‘/usr/bin/python3 $SNAP/myflask-app/current/app.py’ as it does not conform with the command pattern expected by the runtime. Commands must be relative to the prime directory and can only consist of alphanumeric characters, spaces, and the following special characters: / . _ # : $ -
Snapping ‘myflask-app’ |
Snapped myflask-app_0.1_amd64.snap

I can’t find anything helpful for inappropriate ioctl for device.

Thank you very much

ahhh so found out how to get rid of innapropriate icotl for device

$ snap refresh snapcraft --edge

does the trick

1 Like