This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gaborjbernat
Recipients gaborjbernat
Date 2020-10-12.10:55:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602500128.27.0.409801171694.issue42013@roundup.psfhosted.org>
In-reply-to
Content
Here's a small reproducible, run it on a Windows OS that has symlinks enabled:

import shutil
import venv
import subprocess

shutil.rmtree("venv", ignore_errors=True)
venv.EnvBuilder(with_pip=False, symlinks=True).create("venv")

# works
subprocess.check_call(["venv\\Scripts\\python.exe", "-c", "import sys; print(sys.executable)"])

# fails with No module named 'encodings'
subprocess.check_call(["venv\\Scripts\\python.exe", "-Ic", "import sys; print(sys.executable)"])
History
Date User Action Args
2020-10-12 10:55:28gaborjbernatsetrecipients: + gaborjbernat
2020-10-12 10:55:28gaborjbernatsetmessageid: <1602500128.27.0.409801171694.issue42013@roundup.psfhosted.org>
2020-10-12 10:55:28gaborjbernatlinkissue42013 messages
2020-10-12 10:55:28gaborjbernatcreate