Issues generating snap

Gareth France gareth.france at
Wed Jan 4 21:11:53 UTC 2017

On 04/01/17 10:23, Mark Shuttleworth wrote:
> On 04/01/17 08:34, Gareth France wrote:
>> /usr/bin/env: 'python': No such file or directory
>> It is a python script I've packaged. Any ideas?
> Try changing the shell invocation line (first line of the Python script)
> to /usr/bin/python3 rather than /usr/bin/env
Unfortunately this has not resolved my issue. Now the error is gone but 
when I run my program it simply loads the python interpreter. Errors are 
produced upon quitting as well, see below.

Python 3.5.2 (default, Jul  5 2016, 12:43:10)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
 >>> quit()
Bad system call
/snap/rokuterm/x7/bin/rokuterm: 11: /snap/rokuterm/x7/bin/rokuterm: 
import: not found
/snap/rokuterm/x7/bin/rokuterm: 12: /snap/rokuterm/x7/bin/rokuterm: 
import: not found
/snap/rokuterm/x7/bin/rokuterm: 13: /snap/rokuterm/x7/bin/rokuterm: 
import: not found
/snap/rokuterm/x7/bin/rokuterm: 14: /snap/rokuterm/x7/bin/rokuterm: 
import: not found
/snap/rokuterm/x7/bin/rokuterm: 15: /snap/rokuterm/x7/bin/rokuterm: 
import: not found
/snap/rokuterm/x7/bin/rokuterm: 16: /snap/rokuterm/x7/bin/rokuterm: 
Syntax error: "(" unexpected (expecting "then")

I have also included the contents of my snapcraft.yaml file:

Any suggestions gratefully received.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Snapcraft mailing list