<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 04/01/17 10:23, Mark Shuttleworth
wrote:<br>
</div>
<blockquote
cite="mid:53bf6c0f-7fd6-f2e1-db84-f502c343adf1@ubuntu.com"
type="cite">
<pre wrap="">On 04/01/17 08:34, Gareth France wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap="">/usr/bin/env: 'python': No such file or directory
It is a python script I've packaged. Any ideas?
</pre>
</blockquote>
<pre wrap="">Try changing the shell invocation line (first line of the Python script)
to /usr/bin/python3 rather than /usr/bin/env</pre>
</blockquote>
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.<br>
<br>
Python 3.5.2 (default, Jul 5 2016, 12:43:10) <br>
[GCC 5.4.0 20160609] on linux<br>
Type "help", "copyright", "credits" or "license" for more
information.<br>
>>> quit()<br>
Bad system call<br>
/snap/rokuterm/x7/bin/rokuterm: 11: /snap/rokuterm/x7/bin/rokuterm:
import: not found<br>
/snap/rokuterm/x7/bin/rokuterm: 12: /snap/rokuterm/x7/bin/rokuterm:
import: not found<br>
/snap/rokuterm/x7/bin/rokuterm: 13: /snap/rokuterm/x7/bin/rokuterm:
import: not found<br>
/snap/rokuterm/x7/bin/rokuterm: 14: /snap/rokuterm/x7/bin/rokuterm:
import: not found<br>
/snap/rokuterm/x7/bin/rokuterm: 15: /snap/rokuterm/x7/bin/rokuterm:
import: not found<br>
/snap/rokuterm/x7/bin/rokuterm: 16: /snap/rokuterm/x7/bin/rokuterm:
Syntax error: "(" unexpected (expecting "then")<br>
<br>
I have also included the contents of my snapcraft.yaml file:<br>
<br>
<a class="moz-txt-link-freetext" href="http://paste.ubuntu.com/23741430/">http://paste.ubuntu.com/23741430/</a><br>
<br>
Any suggestions gratefully received.<br>
</body>
</html>