Skip to content

python test was terminated #22088

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

Closed
meganrogge opened this issue Sep 26, 2023 · 4 comments
Closed

python test was terminated #22088

meganrogge opened this issue Sep 26, 2023 · 4 comments
Assignees
Labels
area-testing triage-needed Needs assignment to the proper sub-team

Comments

@meganrogge
Copy link

meganrogge commented Sep 26, 2023

Testing #22081

I followed the steps as listed and then saw this, which I at first thought was successful.

Image

In the logs:

2023-09-26 10:28:04.416 [info] Experiment 'pythonTestAdapter' is active
2023-09-26 10:28:04.416 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-09-26 10:28:04.416 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-09-26 10:28:04.416 [info] Experiment 'pythonTestAdaptercf' is active
2023-09-26 10:28:04.416 [info] Test server listening.
2023-09-26 10:28:04.430 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-09-26 10:28:04.430 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-09-26 10:28:04.430 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-09-26 10:28:04.430 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-09-26 10:28:04.430 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-09-26 10:28:04.433 [info] > python -c "import sys;print(sys.executable)"
2023-09-26 10:28:04.484 [error] Error: Command failed: python -c "import sys;print(sys.executable)"
xcode-select: Failed to locate 'python', requesting installation of command line developer tools.

    at ChildProcess.exithandler (node:child_process:431:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1091:16)
    at Socket.<anonymous> (node:internal/child_process:449:11)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:322:12) {
  code: 72,
  killed: false,
  signal: null,
  cmd: 'python -c "import sys;print(sys.executable)"'
}
2023-09-26 10:28:08.006 [info] Starting Pylance language server.
2023-09-26 10:28:12.391 [info] Selected workspace /Users/meganrogge/Repos/inc_dec_example_repo for creating virtual environment.
2023-09-26 10:28:12.405 [info] > conda info --json
2023-09-26 10:28:12.422 [info] Found: /usr/bin/python3 --> /usr/bin/python3
2023-09-26 10:28:12.427 [info] > ~/.pyenv/versions/2.7.18/bin/python -I /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/get_output_via_markers.py /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/interpreterInfo.py
2023-09-26 10:28:12.433 [info] Found: /usr/local/bin/python --> /usr/bin/python3
2023-09-26 10:28:12.434 [info] Found: /usr/local/bin/python3 --> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
2023-09-26 10:28:12.437 [info] Found: /usr/local/bin/python3.10 --> /usr/local/Cellar/[email protected]/3.10.13/Frameworks/Python.framework/Versions/3.10/bin/python3.10
2023-09-26 10:28:12.437 [info] Found: /usr/local/bin/python3.9 --> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
2023-09-26 10:28:12.446 [info] Found: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 --> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
2023-09-26 10:28:12.446 [info] Found: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 --> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
2023-09-26 10:28:12.447 [warning] Looking for python binaries within /usr/local/lib/node_modules/vsce/vsce failed with [Error: ENOTDIR: not a directory, scandir '/usr/local/lib/node_modules/vsce/vsce'] {
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'scandir',
  path: '/usr/local/lib/node_modules/vsce/vsce'
}
2023-09-26 10:28:12.455 [info] > /usr/bin/python3 -I /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/get_output_via_markers.py /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/interpreterInfo.py
2023-09-26 10:28:12.578 [info] > /usr/local/bin/python3 -I /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/get_output_via_markers.py /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/interpreterInfo.py
2023-09-26 10:28:12.578 [warning] Error: Command failed: /Users/meganrogge/.pyenv/versions/2.7.18/bin/python -I /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/get_output_via_markers.py /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/interpreterInfo.py
Unknown option: -I
usage: /Users/meganrogge/.pyenv/versions/2.7.18/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.

    at ChildProcess.exithandler (node:child_process:431:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1091:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
  code: 2,
  killed: false,
  signal: null,
  cmd: '/Users/meganrogge/.pyenv/versions/2.7.18/bin/python -I /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/get_output_via_markers.py /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/interpreterInfo.py'
}
2023-09-26 10:28:12.578 [error] Support for Python 2.7 has been dropped by the Python extension so certain features may not work, upgrade to using Python 3.
2023-09-26 10:28:12.579 [info] > ~/.pyenv/versions/2.7.18/bin/python /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/get_output_via_markers.py /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/interpreterInfo.py
2023-09-26 10:28:12.672 [info] > /usr/local/bin/python3.10 -I /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/get_output_via_markers.py /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/interpreterInfo.py
2023-09-26 10:28:15.946 [info] Selected interpreter /usr/bin/python3 for creating virtual environment.
2023-09-26 10:28:16.000 [info] Running Env creation script:  [
  '/usr/bin/python3',
  '/Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/create_venv.py',
  '--git-ignore'
]
2023-09-26 10:28:16.548 [info] Running: /Library/Developer/CommandLineTools/usr/bin/python3 -m venv .venv

2023-09-26 10:28:17.837 [info] > ./.venv/bin/python -I /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/get_output_via_markers.py /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/interpreterInfo.py
2023-09-26 10:28:22.734 [info] CREATED_VENV:/Users/meganrogge/Repos/inc_dec_example_repo/.venv/bin/python

2023-09-26 10:28:22.735 [info] Creating: /Users/meganrogge/Repos/inc_dec_example_repo/.venv/.gitignore
CREATE_VENV.UPGRADING_PIP
Running: /Users/meganrogge/Repos/inc_dec_example_repo/.venv/bin/python -m pip install --upgrade pip

2023-09-26 10:28:24.102 [info] Requirement already satisfied: pip in ./.venv/lib/python3.9/site-packages (21.2.4)

2023-09-26 10:28:24.419 [info] Collecting pip

2023-09-26 10:28:24.879 [info]   Downloading pip-23.2.1-py3-none-any.whl (2.1 MB)

2023-09-26 10:28:25.230 [info] Installing collected packages: pip
  Attempting uninstall: pip

2023-09-26 10:28:25.230 [info]     Found existing installation: pip 21.2.4

2023-09-26 10:28:25.674 [info]     Uninstalling pip-21.2.4:

2023-09-26 10:28:25.690 [info]       Successfully uninstalled pip-21.2.4

2023-09-26 10:28:27.889 [info] Successfully installed pip-23.2.1

2023-09-26 10:28:28.128 [info] CREATE_VENV.UPGRADED_PIP

2023-09-26 10:28:28.157 [info] Discover tests for workspace name: inc_dec_example_repo - uri: /Users/meganrogge/Repos/inc_dec_example_repo
2023-09-26 10:28:28.157 [info] Running discovery for pytest using the new test adapter.
2023-09-26 10:28:28.160 [info] Python interpreter path: ./.venv/bin/python
2023-09-26 10:28:28.191 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Applications/code-insiders-portable-data/extensions/ms-python.python-2023.17.12691017/pythonFiles/printEnvVariables.py
2023-09-26 10:28:28.191 [info] shell: bash
2023-09-26 10:28:28.253 [info] > ./.venv/bin/python -m pytest -p vscode_pytest --collect-only .
2023-09-26 10:28:28.253 [info] cwd: .
2023-09-26 10:28:28.303 [error] Subprocess exited unsuccessfully with exit code 1 and signal null.
2023-09-26 10:28:28.303 [error] Subprocess exited unsuccessfully with exit code 1 and signal null. Creating and sending error discovery payload
2023-09-26 10:28:28.303 [error] pytest test discovery error 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null
2023-09-26 10:28:28.303 [info] ResultResolver EOT received for discovery.
2023-09-26 10:28:28.304 [info] Disposing data receiver for /Users/meganrogge/Repos/inc_dec_example_repo and deleting UUID; pytest discovery.
2023-09-26 10:28:55.575 [info] Discover tests for workspace name: inc_dec_example_repo - uri: /Users/meganrogge/Repos/inc_dec_example_repo
2023-09-26 10:28:55.575 [info] Running discovery for pytest using the new test adapter.
2023-09-26 10:28:55.577 [info] > ./.venv/bin/python -m pytest -p vscode_pytest --collect-only .
2023-09-26 10:28:55.577 [info] cwd: .
2023-09-26 10:28:55.637 [error] Subprocess exited unsuccessfully with exit code 1 and signal null.
2023-09-26 10:28:55.637 [error] Subprocess exited unsuccessfully with exit code 1 and signal null. Creating and sending error discovery payload
2023-09-26 10:28:55.637 [error] pytest test discovery error 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null
2023-09-26 10:28:55.637 [info] ResultResolver EOT received for discovery.
2023-09-26 10:28:55.637 [info] Disposing data receiver for /Users/meganrogge/Repos/inc_dec_example_repo and deleting UUID; pytest discovery.
2023-09-26 10:29:15.368 [info] Discover tests for workspace name: inc_dec_example_repo - uri: /Users/meganrogge/Repos/inc_dec_example_repo/.vscode/settings.json
2023-09-26 10:29:15.368 [info] Running discovery for unittest using the new test adapter.
2023-09-26 10:29:15.370 [info] > ./.venv/bin/python -m pytest -p vscode_pytest --collect-only .
2023-09-26 10:29:15.370 [info] cwd: .
2023-09-26 10:29:15.419 [error] Subprocess exited unsuccessfully with exit code 1 and signal null.
2023-09-26 10:29:15.420 [error] Subprocess exited unsuccessfully with exit code 1 and signal null. Creating and sending error discovery payload
2023-09-26 10:29:15.420 [error] pytest test discovery error 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null
2023-09-26 10:29:15.420 [info] ResultResolver EOT received for discovery.
2023-09-26 10:29:15.420 [info] Disposing data receiver for /Users/meganrogge/Repos/inc_dec_example_repo and deleting UUID; pytest discovery.
2023-09-26 10:29:15.886 [info] Discover tests for workspace name: inc_dec_example_repo - uri: /Users/meganrogge/Repos/inc_dec_example_repo
2023-09-26 10:29:15.886 [info] Running discovery for unittest using the new test adapter.
2023-09-26 10:29:15.889 [info] > ./.venv/bin/python -m pytest -p vscode_pytest --collect-only .
2023-09-26 10:29:15.889 [info] cwd: .
2023-09-26 10:29:15.942 [error] Subprocess exited unsuccessfully with exit code 1 and signal null.
2023-09-26 10:29:15.942 [error] Subprocess exited unsuccessfully with exit code 1 and signal null. Creating and sending error discovery payload
2023-09-26 10:29:15.942 [error] pytest test discovery error 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null
2023-09-26 10:29:15.942 [info] ResultResolver EOT received for discovery.
2023-09-26 10:29:15.942 [info] Disposing data receiver for /Users/meganrogge/Repos/inc_dec_example_repo and deleting UUID; pytest discovery.
2023-09-26 10:29:34.976 [info] Discover tests for workspace name: inc_dec_example_repo - uri: /Users/meganrogge/Repos/inc_dec_example_repo
2023-09-26 10:29:34.976 [info] Running discovery for unittest using the new test adapter.
2023-09-26 10:29:34.979 [info] > ./.venv/bin/python -m pytest -p vscode_pytest --collect-only .
2023-09-26 10:29:34.979 [info] cwd: .
2023-09-26 10:29:35.030 [error] Subprocess exited unsuccessfully with exit code 1 and signal null.
2023-09-26 10:29:35.031 [error] Subprocess exited unsuccessfully with exit code 1 and signal null. Creating and sending error discovery payload
2023-09-26 10:29:35.031 [error] pytest test discovery error 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null
2023-09-26 10:29:35.031 [info] ResultResolver EOT received for discovery.
2023-09-26 10:29:35.031 [info] Disposing data receiver for /Users/meganrogge/Repos/inc_dec_example_repo and deleting UUID; pytest discovery.

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 26, 2023
@meganrogge
Copy link
Author

I set alias python=python3 in my .zshrc and am no longer seeing any output

@meganrogge
Copy link
Author

in python test log, I see

/usr/local/opt/[email protected]/bin/python3.10: No module named pytest
/usr/local/opt/[email protected]/bin/python3.10: No module named pytest
/usr/local/opt/[email protected]/bin/python3.10: No module named pytest
/usr/local/opt/[email protected]/bin/python3.10: No module named pytest

@meganrogge
Copy link
Author

I installed that again and now it works 👍🏼

@eleanorjboyd
Copy link
Member

Great thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants