[New-bugs-announce] [issue31363] __PYVENV_LAUNCHER__ breaks calling another venv's interpreter

Ilya Kulakov report at bugs.python.org
Wed Sep 6 03:59:22 EDT 2017


New submission from Ilya Kulakov:

There are 2 venvs. One has the pkg_resources (pkgr_venv) package installed, another (venv) doesn't.

Venv without pkg_resources is currently active.

Works: $ <pkgr_venv>/python -c "import pkg_resources"

Doesn't work: $ python -c "import subprocess; subprocess.check_call(['<pkgr_venv>/python', '-c', 'import pkg_resources'])"

Works: $ python -c "import os, subprocess; env = os.environ.copy(); env.pop('__PYVENV_LAUNCHER__'); subprocess.check_call(['< pkgr_venv>/python', '-c', 'import pkg_resources'], env=env)"

----------
messages: 301454
nosy: Ilya.Kulakov
priority: normal
severity: normal
status: open
title: __PYVENV_LAUNCHER__ breaks calling another venv's interpreter
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31363>
_______________________________________


More information about the New-bugs-announce mailing list