Skip to content
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

fix: Correctly remove bk dir when re-signing macOS Python 2.x executable #2272

Merged
merged 2 commits into from
Jan 2, 2022

Conversation

moreati
Copy link
Contributor

@moreati moreati commented Dec 31, 2021

This should not be merged before #2270

Fixes #2271

PermissionError: [Errno 1] Operation not permitted:
'/Users/alex/src/virtualenv/v27/bin/bk'

Requires #2270
Refs #2233

Thanks for contributing, make sure you address all the checklists (for details on how see

development documentation)!

  • ran the linter to address style issues (tox -e fix_lint)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder

@moreati
Copy link
Contributor Author

moreati commented Dec 31, 2021

Before

  • test_getsitepackages_system_site
    AssertionError: assert '/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages' in ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_getsitepackages_system_si0/li...ackages', '/opt/homebrew/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
  • test_cross_major
    PermissionError: [Errno 1] Operation not permitted: '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-15/test_cross_major0/bin/bk'

(details same as After in #2270)

After

  • test_getsitepackages_system_site
    AssertionError: assert '/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages' in ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_getsitepackages_system_si0/li...ackages', '/opt/homebrew/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
  • test_cross_major
    RuntimeError: failed to query /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_cross_major0/bin/python with code -9
➜  virtualenv git:(macos-arm64-unlink) tox           
fix_lint installed: cfgv==3.3.1,distlib==0.3.4,filelock==3.4.2,identify==2.4.1,nodeenv==1.6.0,platformdirs==2.4.1,pre-commit==2.16.0,PyYAML==6.0,six==1.16.0,toml==0.10.2,virtualenv==20.12.0
fix_lint run-test-pre: PYTHONHASHSEED='2817991200'
fix_lint run-test: commands[0] | pre-commit run --all-files --show-diff-on-failure
check python ast.........................................................Passed
check builtin type constructor use.......................................Passed
check docstring is first.................................................Passed
check for merge conflicts................................................Passed
check yaml...............................................................Passed
check toml...............................................................Passed
debug statements (python)................................................Passed
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
pyupgrade................................................................Passed
isort....................................................................Passed
black....................................................................Passed
blacken-docs.............................................................Passed
rst ``code`` is two backticks............................................Passed
tox-ini-fmt..............................................................Passed
setup-cfg-fmt............................................................Passed
flake8...................................................................Passed
fix_lint run-test: commands[1] | python -c 'import pathlib; print("hint: run {} install to add checks as pre-commit hook".format(pathlib.Path(r"/Users/alex/src/virtualenv/.tox/fix_lint") / "bin" / "pre-commit"))'
hint: run /Users/alex/src/virtualenv/.tox/fix_lint/bin/pre-commit install to add checks as pre-commit hook
py39 inst-nodeps: /Users/alex/src/virtualenv/.tox/.tmp/package/1/virtualenv-20.12.1.dev3+gc3e4986.tar.gz
py39 installed: attrs==21.4.0,coverage==6.2,coverage-enable-subprocess==1.0,distlib==0.3.4,filelock==3.4.2,flaky==3.7.0,freezegun==1.1.0,importlib-metadata==4.10.0,iniconfig==1.1.1,packaging==21.3,platformdirs==2.4.1,pluggy==1.0.0,py==1.11.0,pyparsing==3.0.6,pytest==6.2.5,pytest-env==0.6.2,pytest-freezegun==0.4.2,pytest-mock==3.6.1,pytest-randomly==3.10.3,pytest-timeout==2.0.2,python-dateutil==2.8.2,six==1.16.0,toml==0.10.2,virtualenv @ file:///Users/alex/src/virtualenv/.tox/.tmp/package/1/virtualenv-20.12.1.dev3%2Bgc3e4986.tar.gz,zipp==3.7.0
py39 run-test-pre: PYTHONHASHSEED='2817991200'
py39 run-test: commands[0] | python -m coverage erase
py39 run-test: commands[1] | python -m coverage run -m pytest --color=yes --junitxml /Users/alex/src/virtualenv/.tox/junit.py39.xml tests --int --timeout 600
========================================= test session starts ==========================================
platform darwin -- Python 3.9.9, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
cachedir: .tox/py39/.pytest_cache
Using --randomly-seed=3413867147
rootdir: /Users/alex/src/virtualenv, configfile: setup.cfg
plugins: freezegun-0.4.2, env-0.6.2, flaky-3.7.0, timeout-2.0.2, mock-3.6.1, randomly-3.10.3
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 306 items                                                                                    

tests/unit/seed/wheels/test_acquire.py .......                                                   [  2%]
tests/unit/seed/wheels/test_acquire_find_wheel.py ....                                           [  3%]
tests/unit/activation/test_nushell.py ss                                                         [  4%]
tests/unit/seed/wheels/test_bundle.py .....                                                      [  5%]
tests/unit/discovery/py_info/test_py_info_exe_based_of.py .........................              [ 14%]
tests/unit/seed/wheels/test_wheels_util.py ....                                                  [ 15%]
tests/unit/activation/test_batch.py ss                                                           [ 16%]
tests/unit/config/test_env_var.py ........                                                       [ 18%]
tests/unit/activation/test_csh.py ..                                                             [ 19%]
tests/unit/config/test___main__.py ......                                                        [ 21%]
tests/unit/discovery/windows/test_windows_pep514.py ss                                           [ 21%]
tests/integration/test_zipapp.py ...                                                             [ 22%]
tests/unit/create/test_creator.py .ss..........s..sss......F.sss....ss.s.......s.....ss..F       [ 41%]
tests/unit/seed/wheels/test_periodic_update.py .....................                             [ 48%]
tests/unit/config/test_ini.py .                                                                  [ 48%]
tests/unit/seed/embed/test_pip_invoke.py ....                                                    [ 49%]
tests/unit/discovery/test_discovery.py .......                                                   [ 51%]
tests/unit/activation/test_fish.py ss                                                            [ 52%]
tests/unit/activation/test_activation_support.py ............                                    [ 56%]
tests/unit/create/via_global_ref/test_build_c_ext.py ..                                          [ 57%]
tests/integration/test_run_int.py .                                                              [ 57%]
tests/unit/create/via_global_ref/test_api.py .                                                   [ 57%]
tests/unit/test_run.py ....                                                                      [ 59%]
tests/unit/discovery/py_info/test_py_info.py ................................................    [ 74%]
tests/unit/activation/test_activator.py .                                                        [ 75%]
tests/unit/activation/test_bash.py ..                                                            [ 75%]
tests/unit/discovery/test_py_spec.py ................................................            [ 91%]
tests/unit/seed/embed/test_base_embed.py ....                                                    [ 92%]
tests/unit/activation/test_powershell.py ss                                                      [ 93%]
tests/unit/test_util.py .s                                                                       [ 94%]
tests/unit/seed/embed/test_bootstrap_link_via_app_data.py ..........                             [ 97%]
tests/unit/create/test_interpreters.py ..                                                        [ 98%]
tests/unit/config/cli/test_parser.py ...                                                         [ 99%]
tests/unit/activation/test_activate_this.py .                                                    [ 99%]
tests/unit/activation/test_python_activator.py ..                                                [100%]

=============================================== FAILURES ===============================================
___________________________________ test_getsitepackages_system_site ___________________________________

tmp_path = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_getsitepackages_system_si0')

    def test_getsitepackages_system_site(tmp_path):
        # Test without --system-site-packages
        session = cli_run([ensure_text(str(tmp_path))])
    
        system_site_packages = get_expected_system_site_packages(session)
    
        out = subprocess.check_output(
            [str(session.creator.exe), "-c", r"import site; print(site.getsitepackages())"],
            universal_newlines=True,
        )
        site_packages = ast.literal_eval(out)
    
        for system_site_package in system_site_packages:
            assert system_site_package not in site_packages
    
        # Test with --system-site-packages
        session = cli_run([ensure_text(str(tmp_path)), "--system-site-packages"])
    
        system_site_packages = get_expected_system_site_packages(session)
    
        out = subprocess.check_output(
            [str(session.creator.exe), "-c", r"import site; print(site.getsitepackages())"],
            universal_newlines=True,
        )
        site_packages = ast.literal_eval(out)
    
        for system_site_package in system_site_packages:
>           assert system_site_package in site_packages
E           AssertionError: assert '/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages' in ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_getsitepackages_system_si0/li...ackages', '/opt/homebrew/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']

out        = "['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_getsitepackages_system_si0/l...ages', '/opt/homebrew/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']\n"
session    = <virtualenv.run.session.Session object at 0x102916910>
site_packages = ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_getsitepackages_system_si0/li...ackages', '/opt/homebrew/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
system_site_package = '/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages'
system_site_packages = ['/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
tmp_path   = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_getsitepackages_system_si0')

tests/unit/create/test_creator.py:653: AssertionError
------------------------------------------ Captured log setup ------------------------------------------
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4338448800 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:172 Lock 4338448800 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4338448800 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:205 Lock 4338448800 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
---------------------------------------- Captured log teardown -----------------------------------------
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4337403648 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:172 Lock 4337403648 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4337851072 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:172 Lock 4337851072 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4337851072 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:205 Lock 4337851072 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4337851072 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:172 Lock 4337851072 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4337851072 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:205 Lock 4337851072 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4337851072 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:172 Lock 4337851072 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4337851072 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:205 Lock 4337851072 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4337403648 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:205 Lock 4337403648 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
___________________________________________ test_cross_major ___________________________________________

cross_python = PathPythonInfo({'distutils_install': {'purelib': 'lib/python2.7/site-packages', 'scripts': 'bin', 'headers': 'include/...al_executable': '/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python'})
coverage_env = <function coverage_env.<locals>.finish at 0x102a4e790>
tmp_path = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_cross_major0')
session_app_data = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0)
current_fastest = 'builtin'

    @pytest.mark.slow
    def test_cross_major(cross_python, coverage_env, tmp_path, session_app_data, current_fastest):
        cmd = [
            "-p",
            ensure_text(cross_python.executable),
            ensure_text(str(tmp_path)),
            "--no-setuptools",
            "--no-wheel",
            "--activators",
            "",
        ]
        result = cli_run(cmd)
        pip_scripts = {i.name.replace(".exe", "") for i in result.creator.script_dir.iterdir() if i.name.startswith("pip")}
        major, minor = cross_python.version_info[0:2]
        assert pip_scripts == {
            "pip",
            "pip{}".format(major),
            "pip-{}.{}".format(major, minor),
            "pip{}.{}".format(major, minor),
        }
        coverage_env()
>       env = PythonInfo.from_exe(str(result.creator.exe), session_app_data)

cmd        = ['-p', '/usr/bin/python2', '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_cross_major0', '--no-setuptools', '--no-wheel', '--activators', ...]
coverage_env = <function coverage_env.<locals>.finish at 0x102a4e790>
cross_python = PathPythonInfo({'distutils_install': {'purelib': 'lib/python2.7/site-packages', 'scripts': 'bin', 'headers': 'include/...al_executable': '/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python'})
current_fastest = 'builtin'
major      = 2
minor      = 7
pip_scripts = {'pip', 'pip-2.7', 'pip2', 'pip2.7'}
result     = <virtualenv.run.session.Session object at 0x102b1ed30>
session_app_data = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0)
tmp_path   = PosixPath('/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_cross_major0')

tests/unit/create/test_creator.py:366: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py:348: in from_exe
    proposed = from_exe(cls, app_data, exe, env=env, raise_on_error=raise_on_error, ignore_cache=ignore_cache)
        app_data   = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0)
        cls        = <class 'virtualenv.discovery.py_info.PythonInfo'>
        env        = environ({'LANG': 'en_GB.UTF-8', 'TOX_WORK_DIR': '/Users/alex/src/virtualenv/.tox', 'PATH': '/Users/alex/src/virtualenv...create/test_creator.py::test_cross_major (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
        exe        = '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_cross_major0/bin/python'
        from_exe   = <function from_exe at 0x10219eca0>
        ignore_cache = False
        raise_on_error = True
        resolve_to_host = True
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'virtualenv.discovery.py_info.PythonInfo'>
app_data = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0)
exe = '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_cross_major0/bin/python'
env = environ({'LANG': 'en_GB.UTF-8', 'TOX_WORK_DIR': '/Users/alex/src/virtualenv/.tox', 'PATH': '/Users/alex/src/virtualenv...create/test_creator.py::test_cross_major (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
raise_on_error = True, ignore_cache = False

    def from_exe(cls, app_data, exe, env=None, raise_on_error=True, ignore_cache=False):
        env = os.environ if env is None else env
        result = _get_from_cache(cls, app_data, exe, env, ignore_cache=ignore_cache)
        if isinstance(result, Exception):
            if raise_on_error:
>               raise result
E               RuntimeError: failed to query /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_cross_major0/bin/python with code -9

app_data   = AppDataDiskFolder(/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0)
cls        = <class 'virtualenv.discovery.py_info.PythonInfo'>
env        = environ({'LANG': 'en_GB.UTF-8', 'TOX_WORK_DIR': '/Users/alex/src/virtualenv/.tox', 'PATH': '/Users/alex/src/virtualenv...create/test_creator.py::test_cross_major (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
exe        = '/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_cross_major0/bin/python'
ignore_cache = False
raise_on_error = True
result     = RuntimeError('failed to query /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_cross_major0/bin/python with code -9')

.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/cached_py_info.py:31: RuntimeError
------------------------------------------ Captured log setup ------------------------------------------
INFO     root:builtin.py:62 find interpreter for spec PythonSpec(major=2)
INFO     root:builtin.py:69 proposed PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/[email protected]/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)
DEBUG    root:builtin.py:114 discover PATH[0]=/Users/alex/src/virtualenv/.tox/py39/bin
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4340180112 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:172 Lock 4340180112 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    root:cached_py_info.py:91 get interpreter info via cmd: /Users/alex/src/virtualenv/.tox/py39/bin/python /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py
DEBUG    root:via_disk_folder.py:161 wrote python info of /Users/alex/src/virtualenv/.tox/py39/bin/python at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.json
DEBUG    filelock:_api.py:202 Attempting to release lock 4340180112 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:205 Lock 4340180112 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    root:py_info.py:403 discover exe for PathPythonInfo(spec=CPython3.9.9.final.0-64, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8) in /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4340271328 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:172 Lock 4340271328 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    root:cached_py_info.py:91 get interpreter info via cmd: /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/bin/python3.9 /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py
DEBUG    root:via_disk_folder.py:161 wrote python info of /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/bin/python3.9 at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.json
DEBUG    filelock:_api.py:202 Attempting to release lock 4340271328 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:205 Lock 4340271328 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4337554480 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:172 Lock 4337554480 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    root:cached_py_info.py:91 get interpreter info via cmd: /opt/homebrew/opt/[email protected]/bin/python3.9 /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py
DEBUG    root:via_disk_folder.py:161 wrote python info of /opt/homebrew/opt/[email protected]/bin/python3.9 at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.json
DEBUG    filelock:_api.py:202 Attempting to release lock 4337554480 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:205 Lock 4337554480 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    root:builtin.py:114 discover PATH[1]=/opt/homebrew/bin
DEBUG    root:builtin.py:114 discover PATH[2]=/opt/homebrew/sbin
DEBUG    root:builtin.py:114 discover PATH[3]=/usr/local/bin
DEBUG    root:builtin.py:114 discover PATH[4]=/usr/bin
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4339470880 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:172 Lock 4339470880 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    root:cached_py_info.py:91 get interpreter info via cmd: /usr/bin/python2 /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py
DEBUG    root:via_disk_folder.py:161 wrote python info of /usr/bin/python2 at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.json
DEBUG    filelock:_api.py:202 Attempting to release lock 4339470880 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:205 Lock 4339470880 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4339472560 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:172 Lock 4339472560 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    root:cached_py_info.py:91 get interpreter info via cmd: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/alex/src/virtualenv/.tox/py39/lib/python3.9/site-packages/virtualenv/discovery/py_info.py
DEBUG    root:via_disk_folder.py:161 wrote python info of /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python at /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.json
DEBUG    filelock:_api.py:202 Attempting to release lock 4339472560 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:205 Lock 4339472560 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
INFO     root:builtin.py:69 proposed PathPythonInfo(spec=CPython2.7.18.final.0-64, system=/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python, exe=/usr/bin/python2, platform=darwin, version='2.7.18 (default, Nov 13 2021, 06:17:34) \n[GCC Apple LLVM 13.0.0 (clang-1300.0.29.10) [+internal-os, ptrauth-isa=deployme', encoding_fs_io=utf-8-utf-8)
DEBUG    root:builtin.py:71 accepted PathPythonInfo(spec=CPython2.7.18.final.0-64, system=/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python, exe=/usr/bin/python2, platform=darwin, version='2.7.18 (default, Nov 13 2021, 06:17:34) \n[GCC Apple LLVM 13.0.0 (clang-1300.0.29.10) [+internal-os, ptrauth-isa=deployme', encoding_fs_io=utf-8-utf-8)
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4338322544 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:172 Lock 4338322544 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4340271232 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:172 Lock 4340271232 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4340271232 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:205 Lock 4340271232 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/3e31b16f43d9fcdc6cd9cda6c9373a21a004aaf6471de99e9aba741d99d61edd.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4340271232 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:172 Lock 4340271232 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4340271232 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:205 Lock 4340271232 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/345aa2f3f3153332aa0250f3057c4206b814c74c10594863073df44855256fe2.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4340271232 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:172 Lock 4340271232 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4340271232 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:205 Lock 4340271232 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/50292dbb1f747f7151d445135d392af3138fb3c65386d17d9510cb605222b10b.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4340271232 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:172 Lock 4340271232 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4340271232 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:205 Lock 4340271232 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4340271232 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:172 Lock 4340271232 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4340271232 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:205 Lock 4340271232 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4338322544 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:205 Lock 4338322544 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
----------------------------------------- Captured stderr call -----------------------------------------
/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/test_cross_major0/bin/python: replacing existing signature
---------------------------------------- Captured log teardown -----------------------------------------
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4337403696 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:172 Lock 4337403696 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4339661744 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:172 Lock 4339661744 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4339661744 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:205 Lock 4339661744 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/545e036c4b32438aced1f6b3c8d38ca151d9c36189e05839cb0aa568fda70ddd.lock
DEBUG    filelock:_api.py:168 Attempting to acquire lock 4339661744 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:172 Lock 4339661744 acquired on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4339661744 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:205 Lock 4339661744 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/f92b2924b84ff19c1c3dc485f7644d4486f64738191026bf8e6de303969141b5.lock
DEBUG    filelock:_api.py:202 Attempting to release lock 4337403696 on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
DEBUG    filelock:_api.py:205 Lock 4337403696 released on /private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/session-app-data0/py_info/1/.lock
------------------ generated xml file: /Users/alex/src/virtualenv/.tox/junit.py39.xml ------------------
======================================= short test summary info ========================================
SKIPPED [1] tests/unit/activation/conftest.py:258: Nushell(
version=TypeError('expected str, bytes or os.PathLike object, not NoneType'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/activation-tester-env0/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/[email protected]/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due expected str, bytes or os.PathLike object, not NoneType
SKIPPED [1] tests/unit/activation/conftest.py:258: Nushell(
version=TypeError('expected str, bytes or os.PathLike object, not NoneType'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/activation-tester-env1/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/[email protected]/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due expected str, bytes or os.PathLike object, not NoneType
SKIPPED [2] tests/unit/activation/conftest.py:255: BatchActivator not supported
SKIPPED [1] tests/unit/discovery/windows/test_windows_pep514.py:33: no Windows registry
SKIPPED [1] tests/unit/discovery/windows/test_windows_pep514.py:14: no Windows registry
SKIPPED [8] tests/unit/create/conftest.py:101: could not resolve interpreter based on old_virtualenv because failed to create old virtualenv assert not 1
 +  where 1 = <Popen: returncode: 1 args: ['/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn...>.returncode
SKIPPED [1] tests/unit/create/test_creator.py:389: OS does not have an altsep
SKIPPED [2] tests/unit/create/test_creator.py:467: we rewrite sys.path only on PY2
SKIPPED [2] tests/unit/create/test_creator.py:523: stdlib components without py files only possible on CPython2
SKIPPED [1] tests/unit/create/test_creator.py:294: python 2 only tests
SKIPPED [1] tests/unit/create/test_creator.py:315: venv without clear might fail
SKIPPED [1] tests/unit/activation/conftest.py:258: Fish(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/activation-tester-env6/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/[email protected]/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'fish'
SKIPPED [1] tests/unit/activation/conftest.py:258: Fish(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/activation-tester-env7/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/[email protected]/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'fish'
SKIPPED [1] tests/unit/activation/conftest.py:258: PowerShell(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/activation-tester-env9/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/[email protected]/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'pwsh'
SKIPPED [1] tests/unit/activation/conftest.py:258: PowerShell(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/private/var/folders/hw/y1c1nkcs3ls5j9kv5rr_tn040000gn/T/pytest-of-alex/pytest-23/activation-tester-env10/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.9.9.final.0-64, system=/opt/homebrew/opt/[email protected]/bin/python3.9, exe=/Users/alex/src/virtualenv/.tox/py39/bin/python, platform=darwin, version='3.9.9 (main, Nov 21 2021, 03:16:13) \n[Clang 13.0.0 (clang-1300.0.29.3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'pwsh'
SKIPPED [1] tests/unit/test_util.py:19: subprocess patch only applied on Windows python2
FAILED tests/unit/create/test_creator.py::test_getsitepackages_system_site - AssertionError: assert '...
FAILED tests/unit/create/test_creator.py::test_cross_major - RuntimeError: failed to query /private/v...
========================= 2 failed, 278 passed, 26 skipped in 81.29s (0:01:21) =========================
ERROR: InvocationError for command /Users/alex/src/virtualenv/.tox/py39/bin/python -m coverage run -m pytest --color=yes --junitxml .tox/junit.py39.xml tests --int --timeout 600 (exited with code 1)
py38 create: /Users/alex/src/virtualenv/.tox/py38
SKIPPED: InterpreterNotFound: python3.8
py37 create: /Users/alex/src/virtualenv/.tox/py37
SKIPPED: InterpreterNotFound: python3.7
py36 create: /Users/alex/src/virtualenv/.tox/py36
SKIPPED: InterpreterNotFound: python3.6
py35 create: /Users/alex/src/virtualenv/.tox/py35
SKIPPED: InterpreterNotFound: python3.5
py27 create: /Users/alex/src/virtualenv/.tox/py27
_______________________________________________ summary ________________________________________________
  fix_lint: commands succeeded
ERROR:   py39: commands failed
SKIPPED:  py38: InterpreterNotFound: python3.8
SKIPPED:  py37: InterpreterNotFound: python3.7
SKIPPED:  py36: InterpreterNotFound: python3.6
SKIPPED:  py35: InterpreterNotFound: python3.5
  py27: commands succeeded
ERROR:   pypy3: undefined
ERROR:   pypy2: undefined
ERROR:   readme: undefined
ERROR:   docs: undefined
ERROR:   coverage: undefined
Traceback (most recent call last):
  File "/opt/homebrew/bin/tox", line 8, in <module>
    sys.exit(cmdline())
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 44, in cmdline
    main(args)
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 69, in main
    exit_code = session.runcommand()
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 197, in runcommand
    return self.subcommand_test()
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/__init__.py", line 225, in subcommand_test
    run_sequential(self.config, self.venv_dict)
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/session/commands/run/sequential.py", line 9, in run_sequential
    if venv.setupenv():
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/venv.py", line 657, in setupenv
    envlog.set_python_info(command_path)
  File "/opt/homebrew/Cellar/tox/3.24.4_1/libexec/lib/python3.10/site-packages/tox/logs/env.py", line 18, in set_python_info
    answer["executable"] = python_executable
TypeError: 'NoneType' object does not support item assignment

Fixes pypa#2269

> AttributeError: 'bool' object has no attribute 'error'

when creating a Python 2.x environment on macOS with virtualenv 20.12.0.

Refs pypa#2233
Fixes pypa#2271

> PermissionError: [Errno 1] Operation not permitted:
'/Users/alex/src/virtualenv/v27/bin/bk'

Requires pypa#2270
Refs pypa#2233
@moreati moreati force-pushed the macos-arm64-unlink branch from c3e4986 to edf01ae Compare January 1, 2022 18:35
@gaborbernat gaborbernat merged commit 856933e into pypa:main Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PermissionError creating Python 2.x virtualenvs on macOS 12.x arm64
2 participants