[New-bugs-announce] [issue46171] venv module produces spurious warning that location has moved
layday
report at bugs.python.org
Fri Dec 24 04:29:51 EST 2021
New submission from layday <layday at protonmail.com>:
After https://github.com/python/cpython/commit/6811fdaec825bd6ab64e358a4b480108f5634d2d
the venv module produces spurious warnings for venv paths which contain
DOS-encoded parts e.g. "USER\~1" in "C:\Users\USER~1".
`tempfile.gettempdir()` returns legacy paths like these for
user temp dirs.
MRE:
python -c "import tempfile
import venv
venv.create(tempfile.mkdtemp())"
Actual environment location may have moved due to redirects, links or junctions.
Requested location: "C:\Users\RUNNER~1\AppData\Local\Temp\tmpfoobar\Scripts\python.exe"
Actual location: "C:\Users\runneradmin\AppData\Local\Temp\tmpfoobar\Scripts\python.exe"
----------
components: Library (Lib), Windows
messages: 409135
nosy: layday, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: venv module produces spurious warning that location has moved
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46171>
_______________________________________
More information about the New-bugs-announce
mailing list