[Bug 1628165] Re: venv: bin/activate.fish doesn't work

roland roland at micite.net
Sat Oct 29 09:47:10 UTC 2016


I only affect me on Ubuntu 16.04, not on 16.10.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.5 in Ubuntu.
https://bugs.launchpad.net/bugs/1628165

Title:
  venv: bin/activate.fish doesn't work

Status in python3.5 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.5/+bug/1628165/+subscriptions



More information about the foundations-bugs mailing list