Pull phase for python app fails if there is a space character in the current path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapcraft (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Attempts to build a snap using the python plugin fails if the current working directory path has spaces in it. It fails when invoking pip to download the packages required by the python app.
In my case I got the following:
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-9.0.1 setuptools-36.4.0 wheel-0.30.0
/home/tony/
/tmp/tmp5wf8s_yi: 5: export: Projects/Python: bad variable name
Command '['/bin/sh', '/tmp/tmp5wf8s_yi', '/home/
The path supplied to the --dest option has spaces in it and should ideally be surrounded by quotation marks to avoid this error.
Note if I move the folder where I am trying to build the snap to a path with no spaces in it, the snap builds successfully.
Version information:
$ lsb_release -rd
Description: Ubuntu 17.04
Release: 17.04
$ apt policy snapcraft
snapcraft:
Installed: 2.33+17.04
Candidate: 2.33+17.04
Version table:
*** 2.33+17.04 500
500 http://
500 http://
100 /var/lib/
2.28+17.04 500
500 http://
500 http://