-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.8' #1643
Comments
Can you try deleting |
I deleted Same end result:
Full command output/Users/cjolowicz/.local/pipx/venvs/nox/bin/python -m virtualenv -vvv --with-traceback /Users/cjolowicz/Code/github.com/cjolowicz/poetry-merge-lock/.nox/lint-3-8 -p python3.8
98 setup logging to NOTSET [DEBUG report:43]
109 find interpreter for spec PythonSpec(implementation=CPython, major=3, minor=8) [INFO builtin:43]
109 discover system for PythonInfo(spec=CPython3.7.6.final.0-64, exe=/Users/cjolowicz/.local/pipx/venvs/nox/bin/python, platform=darwin, version='3.7.6 (default, Dec 30 2019, 19:38:28) \n[Clang 11.0.0 (clang-1100.0.33.16)]', encoding_fs_io=utf-8-UTF-8) in /usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7 [DEBUG py_info:335]
111 filesystem is not case-sensitive [DEBUG info:28]
112 Attempting to acquire lock 4393226576 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/3a643e9364d9383f9ff0e3a1bb5d658469a08952e9a15068254bf19cefd12f8b.lock [DEBUG filelock:270]
112 Lock 4393226576 acquired on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/3a643e9364d9383f9ff0e3a1bb5d658469a08952e9a15068254bf19cefd12f8b.lock [INFO filelock:274]
112 get interpreter info via cmd: /usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:106]
233 write PythonInfo to /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/3a643e9364d9383f9ff0e3a1bb5d658469a08952e9a15068254bf19cefd12f8b.json for /usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/python3.7 [DEBUG cached_py_info:87]
234 Attempting to release lock 4393226576 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/3a643e9364d9383f9ff0e3a1bb5d658469a08952e9a15068254bf19cefd12f8b.lock [DEBUG filelock:315]
234 Lock 4393226576 released on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/3a643e9364d9383f9ff0e3a1bb5d658469a08952e9a15068254bf19cefd12f8b.lock [INFO filelock:318]
234 Attempting to acquire lock 4393197008 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/df955ce39d0f31d56d4bb2fe0a613e5326ba60723fd33d8303a3aede8f65715c.lock [DEBUG filelock:270]
234 Lock 4393197008 acquired on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/df955ce39d0f31d56d4bb2fe0a613e5326ba60723fd33d8303a3aede8f65715c.lock [INFO filelock:274]
234 get interpreter info via cmd: /usr/local/opt/python/bin/python3.7 -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:106]
355 write PythonInfo to /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/df955ce39d0f31d56d4bb2fe0a613e5326ba60723fd33d8303a3aede8f65715c.json for /usr/local/opt/python/bin/python3.7 [DEBUG cached_py_info:87]
355 Attempting to release lock 4393197008 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/df955ce39d0f31d56d4bb2fe0a613e5326ba60723fd33d8303a3aede8f65715c.lock [DEBUG filelock:315]
356 Lock 4393197008 released on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/df955ce39d0f31d56d4bb2fe0a613e5326ba60723fd33d8303a3aede8f65715c.lock [INFO filelock:318]
356 proposed PythonInfo(spec=CPython3.7.6.final.0-64, system=/usr/local/opt/python/bin/python3.7, exe=/Users/cjolowicz/.local/pipx/venvs/nox/bin/python, platform=darwin, version='3.7.6 (default, Dec 30 2019, 19:38:28) \n[Clang 11.0.0 (clang-1100.0.33.16)]', encoding_fs_io=utf-8-UTF-8) [INFO builtin:49]
356 discover PATH[0]=/Users/cjolowicz/.pyenv/shims [DEBUG builtin:76]
356 Attempting to acquire lock 4393313744 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/899ac50ce9bd2b17f79c71bdfa3e3c53264c3169cd7266b4352c162e4813ab33.lock [DEBUG filelock:270]
357 Lock 4393313744 acquired on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/899ac50ce9bd2b17f79c71bdfa3e3c53264c3169cd7266b4352c162e4813ab33.lock [INFO filelock:274]
357 get interpreter info via cmd: /Users/cjolowicz/.pyenv/shims/python3.8 -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:106]
607 write PythonInfo to /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/899ac50ce9bd2b17f79c71bdfa3e3c53264c3169cd7266b4352c162e4813ab33.json for /Users/cjolowicz/.pyenv/shims/python3.8 [DEBUG cached_py_info:87]
608 Attempting to release lock 4393313744 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/899ac50ce9bd2b17f79c71bdfa3e3c53264c3169cd7266b4352c162e4813ab33.lock [DEBUG filelock:315]
608 Lock 4393313744 released on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/899ac50ce9bd2b17f79c71bdfa3e3c53264c3169cd7266b4352c162e4813ab33.lock [INFO filelock:318]
608 discover exe cache ('/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', False) via PythonInfo({'platform': 'darwin', 'implementation': 'CPython', 'version_info': VersionInfo(major=3, minor=7, micro=6, releaselevel='final', serial=0), 'architecture': 64, 'version': '3.7.6 (default, Dec 30 2019, 19:38:28) \n[Clang 11.0.0 (clang-1100.0.33.16)]', 'os': 'posix', 'prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'base_prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'real_prefix': None, 'base_exec_prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'exec_prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'executable': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/python3.7', 'original_executable': '/usr/local/opt/python/bin/python3.7', 'system_executable': '/usr/local/opt/python/bin/python3.7', 'has_venv': True, 'path': ['/Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery', '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python37.zip', '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7', '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages'], 'file_system_encoding': 'utf-8', 'stdout_encoding': 'UTF-8', 'sysconfig_paths': {'stdlib': '{installed_base}/lib/python{py_version_short}', 'platstdlib': '{platbase}/lib/python{py_version_short}', 'purelib': '{base}/lib/python{py_version_short}/site-packages', 'platlib': '{platbase}/lib/python{py_version_short}/site-packages', 'include': '{installed_base}/include/python{py_version_short}{abiflags}', 'scripts': '{base}/bin', 'data': '{base}'}, 'sysconfig_vars': {'base': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'installed_base': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'abiflags': 'm', 'py_version_short': '3.7', 'platbase': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7'}, 'distutils_install': {'purelib': 'lib/python3.7/site-packages', 'platlib': 'lib/python3.7/site-packages', 'headers': 'include/python3.7m/UNKNOWN', 'scripts': 'bin', 'data': ''}, 'system_stdlib': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7'}) [DEBUG py_info:333]
608 proposed PythonInfo(spec=CPython3.7.6.final.0-64, system=/usr/local/opt/python/bin/python3.7, exe=/Users/cjolowicz/.pyenv/shims/python3.8, platform=darwin, version='3.7.6 (default, Dec 30 2019, 19:38:28) \n[Clang 11.0.0 (clang-1100.0.33.16)]', encoding_fs_io=utf-8-UTF-8) [INFO builtin:49]
609 Attempting to acquire lock 4393314000 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/2c8b49a1ccc788f0781449740d8aa5d5c9fa78096c90fab18a0f13f0a0fd8bf6.lock [DEBUG filelock:270]
609 Lock 4393314000 acquired on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/2c8b49a1ccc788f0781449740d8aa5d5c9fa78096c90fab18a0f13f0a0fd8bf6.lock [INFO filelock:274]
609 get interpreter info via cmd: /Users/cjolowicz/.pyenv/shims/python3 -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:106]
867 write PythonInfo to /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/2c8b49a1ccc788f0781449740d8aa5d5c9fa78096c90fab18a0f13f0a0fd8bf6.json for /Users/cjolowicz/.pyenv/shims/python3 [DEBUG cached_py_info:87]
869 Attempting to release lock 4393314000 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/2c8b49a1ccc788f0781449740d8aa5d5c9fa78096c90fab18a0f13f0a0fd8bf6.lock [DEBUG filelock:315]
869 Lock 4393314000 released on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/2c8b49a1ccc788f0781449740d8aa5d5c9fa78096c90fab18a0f13f0a0fd8bf6.lock [INFO filelock:318]
869 discover exe cache ('/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', False) via PythonInfo({'platform': 'darwin', 'implementation': 'CPython', 'version_info': VersionInfo(major=3, minor=7, micro=6, releaselevel='final', serial=0), 'architecture': 64, 'version': '3.7.6 (default, Dec 30 2019, 19:38:28) \n[Clang 11.0.0 (clang-1100.0.33.16)]', 'os': 'posix', 'prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'base_prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'real_prefix': None, 'base_exec_prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'exec_prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'executable': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/python3.7', 'original_executable': '/usr/local/opt/python/bin/python3.7', 'system_executable': '/usr/local/opt/python/bin/python3.7', 'has_venv': True, 'path': ['/Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery', '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python37.zip', '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7', '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages'], 'file_system_encoding': 'utf-8', 'stdout_encoding': 'UTF-8', 'sysconfig_paths': {'stdlib': '{installed_base}/lib/python{py_version_short}', 'platstdlib': '{platbase}/lib/python{py_version_short}', 'purelib': '{base}/lib/python{py_version_short}/site-packages', 'platlib': '{platbase}/lib/python{py_version_short}/site-packages', 'include': '{installed_base}/include/python{py_version_short}{abiflags}', 'scripts': '{base}/bin', 'data': '{base}'}, 'sysconfig_vars': {'base': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'installed_base': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'abiflags': 'm', 'py_version_short': '3.7', 'platbase': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7'}, 'distutils_install': {'purelib': 'lib/python3.7/site-packages', 'platlib': 'lib/python3.7/site-packages', 'headers': 'include/python3.7m/UNKNOWN', 'scripts': 'bin', 'data': ''}, 'system_stdlib': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7'}) [DEBUG py_info:333]
870 Attempting to acquire lock 4392356112 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/ee32c7b4ab1a595224882dca49769786672cbbc8b1af3b55884257f37a2c8e07.lock [DEBUG filelock:270]
870 Lock 4392356112 acquired on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/ee32c7b4ab1a595224882dca49769786672cbbc8b1af3b55884257f37a2c8e07.lock [INFO filelock:274]
870 get interpreter info via cmd: /Users/cjolowicz/.pyenv/shims/python -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:106]
1106 write PythonInfo to /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/ee32c7b4ab1a595224882dca49769786672cbbc8b1af3b55884257f37a2c8e07.json for /Users/cjolowicz/.pyenv/shims/python [DEBUG cached_py_info:87]
1107 Attempting to release lock 4392356112 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/ee32c7b4ab1a595224882dca49769786672cbbc8b1af3b55884257f37a2c8e07.lock [DEBUG filelock:315]
1107 Lock 4392356112 released on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/ee32c7b4ab1a595224882dca49769786672cbbc8b1af3b55884257f37a2c8e07.lock [INFO filelock:318]
1108 discover exe cache ('/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', False) via PythonInfo({'platform': 'darwin', 'implementation': 'CPython', 'version_info': VersionInfo(major=3, minor=7, micro=6, releaselevel='final', serial=0), 'architecture': 64, 'version': '3.7.6 (default, Dec 30 2019, 19:38:28) \n[Clang 11.0.0 (clang-1100.0.33.16)]', 'os': 'posix', 'prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'base_prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'real_prefix': None, 'base_exec_prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'exec_prefix': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'executable': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/bin/python3.7', 'original_executable': '/usr/local/opt/python/bin/python3.7', 'system_executable': '/usr/local/opt/python/bin/python3.7', 'has_venv': True, 'path': ['/Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery', '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python37.zip', '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7', '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages'], 'file_system_encoding': 'utf-8', 'stdout_encoding': 'UTF-8', 'sysconfig_paths': {'stdlib': '{installed_base}/lib/python{py_version_short}', 'platstdlib': '{platbase}/lib/python{py_version_short}', 'purelib': '{base}/lib/python{py_version_short}/site-packages', 'platlib': '{platbase}/lib/python{py_version_short}/site-packages', 'include': '{installed_base}/include/python{py_version_short}{abiflags}', 'scripts': '{base}/bin', 'data': '{base}'}, 'sysconfig_vars': {'base': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'installed_base': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7', 'abiflags': 'm', 'py_version_short': '3.7', 'platbase': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7'}, 'distutils_install': {'purelib': 'lib/python3.7/site-packages', 'platlib': 'lib/python3.7/site-packages', 'headers': 'include/python3.7m/UNKNOWN', 'scripts': 'bin', 'data': ''}, 'system_stdlib': '/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7'}) [DEBUG py_info:333]
1108 discover PATH[1]=/Users/cjolowicz/.pyenv/bin [DEBUG builtin:76]
1109 discover PATH[2]=/Users/cjolowicz/.poetry/bin [DEBUG builtin:76]
1109 discover PATH[3]=/Users/cjolowicz/.local/bin [DEBUG builtin:76]
1110 discover PATH[4]=/Users/cjolowicz/.nvm/versions/node/v11.14.0/bin [DEBUG builtin:76]
1111 discover PATH[5]=/usr/local/opt/sqlite/bin [DEBUG builtin:76]
1111 discover PATH[6]=/usr/local/opt/python/libexec/bin [DEBUG builtin:76]
1113 Attempting to acquire lock 4393307856 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/a8e73444cd85779debfbed2ff850992c15fb63378866812fd7bb614c3cbdab4a.lock [DEBUG filelock:270]
1114 Lock 4393307856 acquired on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/a8e73444cd85779debfbed2ff850992c15fb63378866812fd7bb614c3cbdab4a.lock [INFO filelock:274]
1114 get interpreter info via cmd: /usr/local/opt/python/libexec/bin/python -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:106]
1211 write PythonInfo to /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/a8e73444cd85779debfbed2ff850992c15fb63378866812fd7bb614c3cbdab4a.json for /usr/local/opt/python/libexec/bin/python [DEBUG cached_py_info:87]
1211 Attempting to release lock 4393307856 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/a8e73444cd85779debfbed2ff850992c15fb63378866812fd7bb614c3cbdab4a.lock [DEBUG filelock:315]
1211 Lock 4393307856 released on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/a8e73444cd85779debfbed2ff850992c15fb63378866812fd7bb614c3cbdab4a.lock [INFO filelock:318]
1212 discover PATH[7]=/usr/local/opt/make/libexec/gnubin [DEBUG builtin:76]
1212 discover PATH[8]=/usr/local/opt/grep/libexec/gnubin [DEBUG builtin:76]
1212 discover PATH[9]=/usr/local/opt/gnu-tar/libexec/gnubin [DEBUG builtin:76]
1212 discover PATH[10]=/usr/local/opt/gnu-sed/libexec/gnubin [DEBUG builtin:76]
1212 discover PATH[11]=/usr/local/opt/findutils/libexec/gnubin [DEBUG builtin:76]
1212 discover PATH[12]=/usr/local/opt/coreutils/libexec/gnubin [DEBUG builtin:76]
1213 discover PATH[13]=/usr/local/bin [DEBUG builtin:76]
1213 Attempting to acquire lock 4393331600 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49.lock [DEBUG filelock:270]
1213 Lock 4393331600 acquired on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49.lock [INFO filelock:274]
1213 get interpreter info via cmd: /usr/local/bin/python3 -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:106]
1313 write PythonInfo to /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49.json for /usr/local/bin/python3 [DEBUG cached_py_info:87]
1314 Attempting to release lock 4393331600 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49.lock [DEBUG filelock:315]
1314 Lock 4393331600 released on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49.lock [INFO filelock:318]
1314 Attempting to acquire lock 4393374672 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/4cd7ab41f5fca4b9b44701077e38c5ffd31fe66a6cab21e0214b68d958d0e462.lock [DEBUG filelock:270]
1314 Lock 4393374672 acquired on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/4cd7ab41f5fca4b9b44701077e38c5ffd31fe66a6cab21e0214b68d958d0e462.lock [INFO filelock:274]
1314 get interpreter info via cmd: /usr/local/bin/python -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:106]
1401 write PythonInfo to /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/4cd7ab41f5fca4b9b44701077e38c5ffd31fe66a6cab21e0214b68d958d0e462.json for /usr/local/bin/python [DEBUG cached_py_info:87]
1403 Attempting to release lock 4393374672 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/4cd7ab41f5fca4b9b44701077e38c5ffd31fe66a6cab21e0214b68d958d0e462.lock [DEBUG filelock:315]
1403 Lock 4393374672 released on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/4cd7ab41f5fca4b9b44701077e38c5ffd31fe66a6cab21e0214b68d958d0e462.lock [INFO filelock:318]
1403 Attempting to acquire lock 4393375056 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/9f8db13761904f9a05eb54cadd7876dec043b4411add2dfc35f9ba54388f47e8.lock [DEBUG filelock:270]
1403 Lock 4393375056 acquired on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/9f8db13761904f9a05eb54cadd7876dec043b4411add2dfc35f9ba54388f47e8.lock [INFO filelock:274]
1404 get interpreter info via cmd: /usr/local/opt/python@2/bin/python2.7 -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:106]
1487 write PythonInfo to /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/9f8db13761904f9a05eb54cadd7876dec043b4411add2dfc35f9ba54388f47e8.json for /usr/local/opt/python@2/bin/python2.7 [DEBUG cached_py_info:87]
1488 Attempting to release lock 4393375056 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/9f8db13761904f9a05eb54cadd7876dec043b4411add2dfc35f9ba54388f47e8.lock [DEBUG filelock:315]
1488 Lock 4393375056 released on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/9f8db13761904f9a05eb54cadd7876dec043b4411add2dfc35f9ba54388f47e8.lock [INFO filelock:318]
1488 proposed PathPythonInfo(spec=CPython2.7.17.final.0-64, system=/usr/local/opt/python@2/bin/python2.7, exe=/usr/local/bin/python, platform=darwin, version='2.7.17 (default, Dec 23 2019, 21:25:34) \n[GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)]', encoding_fs_io=utf-8-None) [INFO builtin:49]
1489 discover PATH[14]=/usr/bin [DEBUG builtin:76]
1489 Attempting to acquire lock 4393376592 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90.lock [DEBUG filelock:270]
1489 Lock 4393376592 acquired on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90.lock [INFO filelock:274]
1489 get interpreter info via cmd: /usr/bin/python -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py [DEBUG cached_py_info:106]
1587 write PythonInfo to /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90.json for /usr/bin/python [DEBUG cached_py_info:87]
1588 Attempting to release lock 4393376592 on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90.lock [DEBUG filelock:315]
1588 Lock 4393376592 released on /Users/cjolowicz/Library/Application Support/virtualenv/py-info/20.0.4/767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90.lock [INFO filelock:318]
1588 proposed PathPythonInfo(spec=CPython2.7.16.final.0-64, exe=/usr/bin/python, platform=darwin, version='2.7.16 (default, Oct 16 2019, 00:34:56) \n[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)]', encoding_fs_io=utf-8-None) [INFO builtin:49]
1588 discover PATH[15]=/bin [DEBUG builtin:76]
1588 discover PATH[16]=/usr/sbin [DEBUG builtin:76]
1588 discover PATH[17]=/sbin [DEBUG builtin:76]
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/__main__.py", line 47, in <module>
run_with_catch()
File "/Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/__main__.py", line 36, in run_with_catch
run(args, options)
File "/Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/__main__.py", line 19, in run
session = cli_run(args, options)
File "/Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/run/__init__.py", line 22, in cli_run
session = session_via_cli(args, options)
File "/Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/run/__init__.py", line 29, in session_via_cli
parser = build_parser(args, options)
File "/Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/run/__init__.py", line 51, in build_parser
raise RuntimeError("failed to find interpreter for {}".format(discover))
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.8' This time the verbose output shows how the data is generated: ~/.pyenv/shims/python3.8 -s ~/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py The resulting JSON file with the PythonInfo for the pyenv shim looks okay to me though: Contents of ~/Library/Application Support/virtualenv/py-info/20.0.4/899ac50ce9bd2b17f79c71bdfa3e3c53264c3169cd7266b4352c162e4813ab33.json{
"st_mtime": 1571213231.6117532,
"path": "/Users/cjolowicz/.pyenv/shims/python3.8",
"content": {
"platform": "darwin",
"implementation": "CPython",
"version_info": {
"major": 3,
"minor": 8,
"micro": 1,
"releaselevel": "final",
"serial": 0
},
"architecture": 64,
"version": "3.8.1 (default, Dec 19 2019, 17:17:20) \n[Clang 11.0.0 (clang-1100.0.20.17)]",
"os": "posix",
"prefix": "/Users/cjolowicz/.local/pipx/venvs/nox",
"base_prefix": "/Users/cjolowicz/.pyenv/versions/3.8.1",
"real_prefix": null,
"base_exec_prefix": "/Users/cjolowicz/.pyenv/versions/3.8.1",
"exec_prefix": "/Users/cjolowicz/.local/pipx/venvs/nox",
"executable": "/Users/cjolowicz/.pyenv/shims/python3.8",
"original_executable": "/Users/cjolowicz/.pyenv/versions/3.8.1/bin/python3.8",
"system_executable": "/Users/cjolowicz/.local/pipx/venvs/nox/bin/python",
"has_venv": true,
"path": [
"/Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery",
"/Users/cjolowicz/.pyenv/versions/3.8.1/lib/python38.zip",
"/Users/cjolowicz/.pyenv/versions/3.8.1/lib/python3.8",
"/Users/cjolowicz/.pyenv/versions/3.8.1/lib/python3.8/lib-dynload"
],
"file_system_encoding": "utf-8",
"stdout_encoding": "utf-8",
"sysconfig_paths": {
"stdlib": "{installed_base}/lib/python{py_version_short}",
"platstdlib": "{platbase}/lib/python{py_version_short}",
"purelib": "{base}/lib/python{py_version_short}/site-packages",
"platlib": "{platbase}/lib/python{py_version_short}/site-packages",
"include": "{installed_base}/include/python{py_version_short}{abiflags}",
"scripts": "{base}/bin",
"data": "{base}"
},
"sysconfig_vars": {
"abiflags": "",
"base": "/Users/cjolowicz/.local/pipx/venvs/nox",
"installed_base": "/Users/cjolowicz/.pyenv/versions/3.8.1",
"platbase": "/Users/cjolowicz/.local/pipx/venvs/nox",
"py_version_short": "3.8"
},
"distutils_install": {
"purelib": "lib/python3.8/site-packages",
"platlib": "lib/python3.8/site-packages",
"headers": "include/python3.8/UNKNOWN",
"scripts": "bin",
"data": ""
},
"system_stdlib": "/Users/cjolowicz/.pyenv/versions/3.8.1/lib/python3.8",
"_creators": null
}
} But instead of proposing PythonInfo matching the 3.8.1 spec, it goes on to "discover exe cache" and then proposes PythonInfo with CPython 3.7.6 spec (but strangely with the 3.8.1 pyenv shim as the
|
Can't understand easily what's wrong here, would you be available for some remote debugging in the following days? 😃 |
Unfortunately, for the next week or so it'll be difficult to schedule a time (but thanks :)). What I have been able to find out so far is the following:
|
Wait what you're describing is that nox is running with the python 3.8 binary, but links to 3.7.6 on system level. We have a section describing this within our readme, see the warning, https://virtualenv.pypa.io/en/latest/user_guide.html#python-discovery. we'll always use the system executable when you pass a python path, not the underlying pythons path. How did pipx created a python 3.8 env that references 3.7.6? |
I'm not sure I understand. Nox is not running with a Python 3.8 binary. Nox (and pipx) are running under Python 3.7.6 from Homebrew:
The path in the shebang ( The Python interpreter in Nox's virtualenv ( This is also the Python interpreter used by Nox when invoking virtualenv. So Python 3.8 should only come into play when virtualenv searches the PATH. |
I guess the error here comes why does the python 3.8 shim says the system executable is noxs. We will need to debug the system executable detection algorithm within py info to find the answer. If you have some time throw a debugger at it and see what goes wrong, you may call py info file directly for this. |
Everything works just fine if I install Nox with pip instead of pipx, by the way. |
Ok will try this. |
When run on its own, the py_info script produces the expected result: $ /Users/cjolowicz/.pyenv/shims/python3.8 -s /Users/cjolowicz/.local/pipx/venvs/nox/lib/python3.7/site-packages/virtualenv/discovery/py_info.py|grep system_executable
"system_executable": "/Users/cjolowicz/.pyenv/versions/3.8.1/bin/python3.8", But when run as a subprocess from virtualenv, we get the wrong system_executable: $ ~/.local/pipx/venvs/nox/bin/python -m virtualenv /tmp/venv -p python3.8
$ grep system_executable ~/Library/Application\ Support/virtualenv/py-info/20.0.4/899ac50ce9bd2b17f79c71bdfa3e3c53264c3169cd7266b4352c162e4813ab33.json
"system_executable": "/Users/cjolowicz/.local/pipx/venvs/nox/bin/python", For some strange reason, in the subprocess running virtualenv/src/virtualenv/discovery/py_info.py Lines 100 to 103 in 5b88149
Details: output of some debug statements I added to virtualenv. Using PDB was tricky as the interesting stuff happens in the subprocess, and PDB seemed to break the communication between parent and child.
|
If I read the code correctly,
virtualenv/src/virtualenv/discovery/py_info.py Lines 94 to 107 in 5b88149
virtualenv/src/virtualenv/discovery/py_info.py Lines 284 to 294 in 5b88149
virtualenv/src/virtualenv/discovery/py_info.py Lines 309 to 326 in 5b88149
Unfortunately, Here is an example session: # Python 3.8 (from pyenv) reports itself.
$ /Users/cjolowicz/.pyenv/shims/python3.8 -c "import sys; print(sys._base_executable)"
/Users/cjolowicz/.pyenv/versions/3.8.1/bin/python3.8
# Python 3.7 (from Homebrew inside pipx env) reports itself.
$ /Users/cjolowicz/.local/pipx/venvs/nox/bin/python -c "import sys; print(sys._base_executable)"
/Users/cjolowicz/.local/pipx/venvs/nox/bin/python
# Python 3.8 (pyenv) as subprocess of Python 3.7 (Homebrew/pipx) reports the interpreter in the parent process.
$ /Users/cjolowicz/.local/pipx/venvs/nox/bin/python -c 'import subprocess; subprocess.run(["/Users/cjolowicz/.pyenv/shims/python3.8", "-c", "import sys; print(sys._base_executable)"])'
/Users/cjolowicz/.local/pipx/venvs/nox/bin/python So if Nox was installed with pipx, and is therefore running from a virtual environment, every Python interpreter will be identified the same as the system version (or rather, the version pipx was installed with), no matter its actual version. |
I guess there was still a missing link in the reasoning above. Why does virtualenv think that the pyenv shim is run from inside a virtual environment? Only then would the logic with The virtual environment is detected by comparing # sys.prefix in the subprocess comes from the parent.
$ /Users/cjolowicz/.local/pipx/venvs/nox/bin/python -c 'import subprocess; subprocess.run(["/Users/cjolowicz/.pyenv/shims/python3.8", "-c", "import sys; print(sys.prefix)"])'
/Users/cjolowicz/.local/pipx/venvs/nox
# sys.base_prefix in the subprocess comes from the child.
$ /Users/cjolowicz/.local/pipx/venvs/nox/bin/python -c 'import subprocess; subprocess.run(["/Users/cjolowicz/.pyenv/shims/python3.8", "-c", "import sys; print(sys.base_prefix)"])'
/Users/cjolowicz/.pyenv/versions/3.8.1 So virtualenv assumes that the pyenv shim is run from a virtual environment, and uses |
Looks like this is actually bpo22490. There is an open PR for this at python/cpython#9516. We can work around this issue by removing This is just the bare fix for now... |
Hello, a fix for this issue has been released via virtualenv 20.0.5; see https://pypi.org/project/virtualenv/20.0.5/ (https://virtualenv.pypa.io/en/latest/changelog.html#v20-0-5-2020-02-21) . Please give a try and report back if your issue has not been addressed; if not, please comment here, and we'll reopen the ticket. We want to apologize for the inconvenience this has caused you and say thanks for having patience while we resolve the unexpected bugs with this new major release. |
This still does not work on virtualenv 20.0.28 for me
Unfortunately even downgrading to 20.0.5 does not seem to work
|
Do you have python3.6 installed? Can you show output of |
@gaborbernat the output is seen above. It's just I'm pretty certain python3.6 is installed since I can just run
Oh and I'm running Ubuntu 20.04 if that adds anything. It seems to work fine with python3.5 and python3.8. |
I need the mnore detailed version of it, with |
|
@Pithikos for now you can work around the issue by installing https://packages.ubuntu.com/bionic/python3.6-distutils, however we should still operate under this behaviour for that created #1910, please feel free to submit a PR to fix it if you have time. |
Nox does not find Python 3.8.1, even though it is present via
pyenv local
.Setup:
In the verbose output, the following line looks suspicious:
Verbose output with traceback
Contents of ~/Library/Application Support/virtualenv/py-info/20.0.4/899ac50ce9bd2b17f79c71bdfa3e3c53264c3169cd7266b4352c162e4813ab33.json
Output of pip list
/Users/cjolowicz/.local/pipx/venvs/nox/bin/python -m pip list 203ms 11:33
Package Version
appdirs 1.4.3
argcomplete 1.11.1
colorlog 4.1.0
distlib 0.3.0
filelock 3.0.12
importlib-metadata 1.5.0
nox 2019.11.9
pip 20.0.2
py 1.8.1
setuptools 41.2.0
six 1.14.0
virtualenv 20.0.4
zipp 3.0.0
I have not been able to create a repro in Docker, possibly macOS-specific.
Thanks for submitting an issue!
If submitting a BUG please provide:
-vvv --with-traceback
flags includedpip list
of the environment where virtualenv is installed into if not using the zipappif submitting an ENHANCEMENT issue:
The text was updated successfully, but these errors were encountered: