[New-bugs-announce] [issue36634] venv: activate.bat fails for venv with parentheses in PATH

Bastian Wenzel report at bugs.python.org
Mon Apr 15 10:15:59 EDT 2019


New submission from Bastian Wenzel <bastian.wenzel at posteo.de>:

After creating a virtual environment on win 7 (64bit) with:
py -3.7 -m venv venv

Running venv\Scripts\activate.bat will yield this result:
\Common was unexpected at this time.
(venv) C:\...

My PATH variable contains a path that starts with:
C:\Program Files (x86)\Common Files\...

To me this looks like this issue for virtualenv:
https://github.com/pypa/virtualenv/issues/35
https://github.com/pypa/virtualenv/pull/839

Running:
(venv) C:\Tools\venv_test>where python
C:\Python34\python.exe

This is my default python on PATH. Doing this with virtualenv:
(virtualenv) C:\Tools\venv_test>where python
C:\Tools\venv_test\virtualenv\Scripts\python.exe
C:\Python34\python.exe

I really hope this is not a duplicate.

----------
components: Library (Lib)
messages: 340274
nosy: BWenzel
priority: normal
severity: normal
status: open
title: venv: activate.bat fails for venv with parentheses in PATH
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36634>
_______________________________________


More information about the New-bugs-announce mailing list