Public bug reported:
Creating a virtual env with pyvenv and activating it using the fish shell will
throw an error.
This is due to a '$' being added to the venv prompt.
This is behavior that is not in python 3.5:
https://hg.python.org/cpython/file/3.5/Lib/venv/
/tmp> pyvenv venv
/tmp> source venv/bin/activate.fish
The “$” character begins a variable name. The character “(”, which directly
followed a “$”, is not allowed as a part of a variable name, and variable names
may not be zero characters long. To learn more about variable expansion in
fish, type “help expand-variable”.
venv/bin/activate.fish (line 58): if test -n "$(venv) "
^
from sourcing file venv/bin/activate.fish
called on standard input
source: Error while reading file “venv/bin/activate.fish”
Ubuntu 16.04.1 LTS
pyvenvv-3.5
** Affects: python3.4 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python3.4 in Ubuntu.
https://bugs.launchpad.net/bugs/1628165
Title:
venv: bin/activate.fish doesn't work
Status in python3.4 package in Ubuntu:
New
Bug description:
Creating a virtual env with pyvenv and activating it using the fish shell
will throw an error.
This is due to a '$' being added to the venv prompt.
This is behavior that is not in python 3.5:
https://hg.python.org/cpython/file/3.5/Lib/venv/
/tmp> pyvenv venv
/tmp> source venv/bin/activate.fish
The “$” character begins a variable name. The character “(”, which directly
followed a “$”, is not allowed as a part of a variable name, and variable names
may not be zero characters long. To learn more about variable expansion in
fish, type “help expand-variable”.
venv/bin/activate.fish (line 58): if test -n "$(venv) "
^
from sourcing file venv/bin/activate.fish
called on standard input
source: Error while reading file “venv/bin/activate.fish”
Ubuntu 16.04.1 LTS
pyvenvv-3.5
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1628165/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp