Issues generating snap

gareth.france at cliftonts.co.uk gareth.france at cliftonts.co.uk
Wed Jan 4 11:40:13 UTC 2017


On 2017-01-04 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
> 
> Python3 is included in the core snap, so it is available at that path
> for all devmode/strictly confined snaps.
> 
> If you need python2 then you are best off using snapcraft which I think
> will bundle the interpreter and dependency python libraries in your 
> snap
> for you.
> 
> The core snap has python3 and a base set of well-maintained stable
> python libraries. You can if you want duplicate those in your snap but
> it's probably perfectly reasonable to trust the core snap maintainers
> (this is essentially all the same rules as Ubuntu's base packages).
> 
> Mark

Mark,
Thank you, that makes perfect sense. I'd also like to say a quick thanks 
for revolutionising my life. Discovered Feisty 10 years back and haven't 
looked back since!




More information about the Snapcraft mailing list