[Bug 1628165] [NEW] venv: bin/activate.fish doesn't work
roland
roland at micite.net
Tue Sep 27 15:28:29 UTC 2016
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
Foundations Bugs, 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
More information about the foundations-bugs
mailing list