Multiple "python quit unexpectedly" upon opening python file, first time each session
See original GitHub issueEnvironment data
- VS Code version: 1.55.2
- Extension version (available under the Extensions sidebar): v2021.3.680753044
- OS and version: macOS 10.14.6
- Python version (& distribution if applicable, e.g. Anaconda): I have several installed via homebrew, multiple seem involved
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): venv, but also happens if I use no virtual environment
- Relevant/affected Python packages and their versions: N/A
- Relevant/affected Python-related VS Code extensions and their versions: Jupyter v2021.5.745244803 (required by Python extension)
- Value of the
python.languageServer
setting: Problem occurs with Jedi, JediLSP, Microsoft, None. Couldn’t test Pylance.
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
Nothing crashes.
Actual behaviour
Every time I launch a project that contains any python files (specifically, the first time any python file is opened during a session), 3 separate instances of python crash, none of which match the version used by the project:
After disabling pyenv by moving the ~/.pyenv
folder and similar for for miniconda, I only get messages about python
and python3
crashing, but no python3.6m
anymore.
Steps to reproduce:
For me, simply open any folder with VS Code that contains a python file. [NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
- Create a blank python file
- Open the python file in VS code
- Wait a few seconds, then the crash report errors appear
- Close or ignore them, then VSCode works as expected and nothing python-related seems broken
I really strongly suspect these steps won’t work for anyone else. I know my python environment is complicated — it had Miniconda and Pyenv installed before, though disabled for now (no change). I used Homebrew to install all my python versions initially. I use Python3.9 mainly, some other versions on other projects. None of my attempts to simplify my environment now have made a difference.
Logs
Here’s without a venv:
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
User belongs to experiment group 'pythonaacf'
User belongs to experiment group 'pythonSendEntireLineToREPL'
User belongs to experiment group 'pythonNotDisplayLinterPrompt'
User belongs to experiment group 'pythonDiscoveryModule'
User belongs to experiment group 'pythonTensorboardExperiment'
User belongs to experiment group 'PythonPyTorchProfiler'
User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled'
User belongs to experiment group 'CollectLSRequestTiming - control'
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Error 2021-04-13 21:05:41: Failed to parse version from path: /usr/bin/python [Error: invalid version python
at u (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:198256)
at Object.c [as parseVersion] (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:197565)
at p.buildPathEnvInfo (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29369)
at p.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29309)
at E.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:29:4121)
at t.PythonEnvsReducer.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:762313)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async t.PythonEnvsResolver.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:763669)
at async u.doResolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:757654)
at async q.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:38813)
at async C.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:741545)
at async m.shouldShowPrompt (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:748221)]
Error 2021-04-13 21:05:41: Failed to parse version from path: /usr/bin/python [Error: invalid version python
at u (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:198256)
at Object.c [as parseVersion] (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:197565)
at p.buildPathEnvInfo (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29369)
at p.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29309)
at E.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:29:4121)
at t.PythonEnvsReducer.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:762313)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async t.PythonEnvsResolver.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:763669)
at async u.doResolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:757654)
at async q.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:38813)
at async C.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:741545)
at async f.updateDisplay (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:729765)
at async f.refresh (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:729292)]
Error 2021-04-13 21:05:41: Failed to parse version from path: /usr/bin/python [Error: invalid version python
at u (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:198256)
at Object.c [as parseVersion] (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:197565)
at p.buildPathEnvInfo (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29369)
at p.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29309)
at E.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:29:4121)
at t.PythonEnvsReducer.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:762313)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async t.PythonEnvsResolver.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:763669)
at async u.doResolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:757654)
at async q.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:38813)
at async C.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:741545)
at async _.activate (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:52:29881)
at async Promise.all (index 4)
at async y.activateWorkspace (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:52:25098)]
Starting Jedi Python language engine.
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Python interpreter path: /usr/bin/python
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Error 2021-04-13 21:05:41: Diagnostic Code: MacInterpreterSelectedAndHaveOtherInterpretersDiagnostic, Message: You have selected the macOS system install of Python, which is not recommended for use with the Python extension. Some functionality will be limited, please select a different interpreter.
Diagnostic Code: MacInterpreterSelectedAndHaveOtherInterpretersDiagnostic, Message: You have selected the macOS system install of Python, which is not recommended for use with the Python extension. Some functionality will be limited, please select a different interpreter.
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py pylint --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/Downloads/test.py
cwd: ~/Downloads
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py pylint --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/Downloads/test.py
cwd: ~/Downloads
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import pylint"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import pylint"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import pylint"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import pylint"
Linter 'pylint' is not installed. Please install it or select another linter".
Error: Module 'pylint' not installed.
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.prefix)"
cwd: ~/.vscode/extensions/ms-python.python-2021.3.680753044/out/client
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.prefix)"
cwd: ~/.vscode/extensions/ms-python.python-2021.3.680753044/out/client
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
cwd: ~/.vscode/extensions/ms-python.python-2021.3.680753044/out/client
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
cwd: ~/.vscode/extensions/ms-python.python-2021.3.680753044/out/client
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/.vscode/extensions/ms-python.python-2021.3.680753044/out/client
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/.vscode/extensions/ms-python.python-2021.3.680753044/out/client
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py site --user-site
cwd: ~/.vscode/extensions/ms-python.python-2021.3.680753044/out/client
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py site --user-site
cwd: ~/.vscode/extensions/ms-python.python-2021.3.680753044/out/client
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/completion.py
> /usr/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/completion.py
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Here’s with a venv using python 3.9:
FWIW, with this error:
Failed to parse version from path: /Users/phoenix/Code/discord/scraper/venv/bin/python [Error: invalid version python
I find if I run that path with --version
I get back out Python 3.9.4
just fine.
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
User belongs to experiment group 'pythonaacf'
User belongs to experiment group 'pythonSendEntireLineToREPL'
User belongs to experiment group 'pythonNotDisplayLinterPrompt'
User belongs to experiment group 'pythonDiscoveryModule'
User belongs to experiment group 'pythonTensorboardExperiment'
User belongs to experiment group 'PythonPyTorchProfiler'
User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled'
User belongs to experiment group 'CollectLSRequestTiming - control'
Error 2021-04-13 21:09:50: Failed to parse version from path: /Users/phoenix/Code/discord/scraper/venv/bin/python [Error: invalid version python
at u (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:198256)
at Object.c [as parseVersion] (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:197565)
at p.buildPathEnvInfo (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29369)
at p.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29309)
at E.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:29:4121)
at t.PythonEnvsReducer.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:762313)
at async t.PythonEnvsResolver.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:763669)
at async u.doResolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:757654)
at async q.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:38813)
at async C.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:741545)
at async _.activate (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:52:29881)
at async Promise.all (index 4)
at async y.activateWorkspace (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:52:25098)]
Error 2021-04-13 21:09:50: Failed to parse version from path: /Users/phoenix/Code/discord/scraper/venv/bin/python [Error: invalid version python
at u (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:198256)
at Object.c [as parseVersion] (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:197565)
at p.buildPathEnvInfo (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29369)
at p.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29309)
at E.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:29:4121)
at t.PythonEnvsReducer.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:762313)
at async t.PythonEnvsResolver.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:763669)
at async u.doResolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:757654)
at async q.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:38813)
at async C.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:741545)
at async m.shouldShowPrompt (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:748221)]
Error 2021-04-13 21:09:50: Failed to parse version from path: /Users/phoenix/Code/discord/scraper/venv/bin/python [Error: invalid version python
at u (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:198256)
at Object.c [as parseVersion] (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:9:197565)
at p.buildPathEnvInfo (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29369)
at p.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:29309)
at E.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:29:4121)
at t.PythonEnvsReducer.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:762313)
at async t.PythonEnvsResolver.resolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:763669)
at async u.doResolveEnv (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:757654)
at async q.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:80:38813)
at async C.getInterpreterDetails (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:741545)
at async f.updateDisplay (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:729765)
at async f.refresh (/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/out/client/extension.js:61:729292)]
Python interpreter path: ./venv/bin/python
Starting Jedi Python language engine.
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py pylint --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/Code/discord/scraper/get_surrounding_messages.py
cwd: ~/Code/discord/scraper
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py pylint --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/Code/discord/scraper/get_surrounding_messages.py
cwd: ~/Code/discord/scraper
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.prefix)"
cwd: ~/Code/discord/scraper
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.prefix)"
cwd: ~/Code/discord/scraper
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
cwd: ~/Code/discord/scraper
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
cwd: ~/Code/discord/scraper
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/Code/discord/scraper
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/Code/discord/scraper
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py site --user-site
cwd: ~/Code/discord/scraper
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py site --user-site
cwd: ~/Code/discord/scraper
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/completion.py
> ~/Code/discord/scraper/venv/bin/python ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py ~/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/completion.py
Error 2021-04-13 21:09:50: stderr jediProxy Error (stderr) /Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/completion.py:584: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_names instead.
jedi.api.names(
##########Linting Output - pylint##########
************* Module get_surrounding_messages
29,0,convention,line-too-long:Line too long (132/100)
46,0,convention,line-too-long:Line too long (101/100)
45,8,warning,redefined-builtin:Redefining built-in 'range'
1,0,convention,missing-module-docstring:Missing module docstring
3,0,error,import-error:Unable to import 'dateutil'
4,0,error,import-error:Unable to import 'discord'
8,5,error,no-member:Module 'sqlite3' has no 'connect' member
50,4,convention,invalid-name:Constant name "query" doesn't conform to UPPER_CASE naming style
2,0,warning,unused-import:Unused import datetime
3,0,warning,unused-import:Unused import dateutil
4,0,warning,unused-import:Unused import discord
5,0,convention,wrong-import-order:standard import "import sqlite3" should be placed before "import dateutil"
6,0,convention,wrong-import-order:standard import "import os" should be placed before "import dateutil"
------------------------------------------------------------------
Your code has been rated at 2.65/10 (previous run: 2.65/10, +0.00)
macOS crash report log
Path: /Users/USER/*/python3
Identifier: python3
Version: ???
Code Type: X86-64 (Native)
Parent Process: Code Helper (Renderer) [19191]
Responsible: Electron [18998]
User ID: 501
Date/Time: 2021-04-13 20:59:30.741 -0600
OS Version: Mac OS X 10.14.6 (18G8022)
Report Version: 12
Anonymous UUID: 5B96839B-C6A3-9DC6-8A31-F526BD511A8E
Time Awake Since Boot: 1500 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
dyld2 mode
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff605652c2 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff60620bf1 pthread_kill + 284
2 libsystem_c.dylib 0x00007fff604cf6a6 abort + 127
3 python 0x0000000101b12f87 Py_FatalError + 439
4 python 0x0000000101b12d78 _Py_InitializeEx_Private + 1336
5 python 0x0000000101b2ee68 Py_Main + 2024
6 python 0x0000000101a0dffc main + 236
7 libdyld.dylib 0x00007fff6042a3d5 start + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000010c92a5c0 rcx: 0x00007ffeee1f1b28 rdx: 0x0000000000000000
rdi: 0x0000000000000307 rsi: 0x0000000000000006 rbp: 0x00007ffeee1f1b60 rsp: 0x00007ffeee1f1b28
r8: 0x0000000101a328a0 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000206
r12: 0x0000000000000307 r13: 0x0000000000000000 r14: 0x0000000000000006 r15: 0x000000000000002d
rip: 0x00007fff605652c2 rfl: 0x0000000000000206 cr2: 0x00007fff96b49188
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x101a0d000 - 0x101bc7ff3 +python (0) <853B7D55-0E2E-3711-84BB-982BE33077B9> /Users/USER/*/python
0x10c888000 - 0x10c8f270f dyld (655.1.1) <EA5BF483-08FB-31C9-B31E-C0D0FD94FE89> /usr/lib/dyld
0x7fff3440b000 - 0x7fff34850fff com.apple.CoreFoundation (6.9 - 1575.401) <4D6EA727-F7B9-398A-9B0B-4A30802E49BD> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff5cfce000 - 0x7fff5cfcfffb libDiagnosticMessagesClient.dylib (107) <A14D0819-0970-34CD-8680-80E4D7FE8C2C> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff5d40e000 - 0x7fff5d40fffb libSystem.B.dylib (1252.250.1) <C7A55258-8EB2-3202-82B5-AA56E53EE2DA> /usr/lib/libSystem.B.dylib
0x7fff5d653000 - 0x7fff5d6a6ff7 libc++.1.dylib (400.9.4) <9A60A190-6C34-339F-BB3D-AACE942009A4> /usr/lib/libc++.1.dylib
0x7fff5d6a7000 - 0x7fff5d6bcff7 libc++abi.dylib (400.17) <38C09CED-9090-3719-90F3-04A2749F5428> /usr/lib/libc++abi.dylib
0x7fff5e103000 - 0x7fff5e364ffb libicucore.A.dylib (62141.0.1) <A0D63918-76E9-3C1B-B255-46F4C1DA7FE8> /usr/lib/libicucore.A.dylib
0x7fff5ec47000 - 0x7fff5f3ccfdf libobjc.A.dylib (756.2) <7C312627-43CB-3234-9324-4DEA92D59F50> /usr/lib/libobjc.A.dylib
0x7fff5fab7000 - 0x7fff5fac9ff7 libz.1.dylib (70.200.4) <B048FC1F-058F-3A08-A1FE-81D5308CB3E6> /usr/lib/libz.1.dylib
0x7fff602ad000 - 0x7fff602b1ff3 libcache.dylib (81) <1987D1E1-DB11-3291-B12A-EBD55848E02D> /usr/lib/system/libcache.dylib
0x7fff602b2000 - 0x7fff602bcff3 libcommonCrypto.dylib (60118.250.2) <1765BB6E-6784-3653-B16B-CB839721DC9A> /usr/lib/system/libcommonCrypto.dylib
0x7fff602bd000 - 0x7fff602c4ff7 libcompiler_rt.dylib (63.4) <5212BA7B-B7EA-37B4-AF6E-AC4F507EDFB8> /usr/lib/system/libcompiler_rt.dylib
0x7fff602c5000 - 0x7fff602ceff7 libcopyfile.dylib (146.250.1) <98CD00CD-9B91-3B5C-A9DB-842638050FA8> /usr/lib/system/libcopyfile.dylib
0x7fff602cf000 - 0x7fff60353fc3 libcorecrypto.dylib (602.260.2) <01464D24-570C-3B83-9D18-467769E0FCDD> /usr/lib/system/libcorecrypto.dylib
0x7fff603da000 - 0x7fff60413ff7 libdispatch.dylib (1008.270.1) <97273678-E94C-3C8C-89F6-2E2020F4B43B> /usr/lib/system/libdispatch.dylib
0x7fff60414000 - 0x7fff60440ff7 libdyld.dylib (655.1.1) <002418CC-AD11-3D10-865B-015591D24E6C> /usr/lib/system/libdyld.dylib
0x7fff60441000 - 0x7fff60441ffb libkeymgr.dylib (30) <0D0F9CA2-8D5A-3273-8723-59987B5827F2> /usr/lib/system/libkeymgr.dylib
0x7fff6044f000 - 0x7fff6044fff7 liblaunch.dylib (1336.261.6) <1F0EEC6F-4D08-38E6-ACF9-6E44D328931F> /usr/lib/system/liblaunch.dylib
0x7fff60450000 - 0x7fff60455fff libmacho.dylib (927.0.3) <A377D608-77AB-3F6E-90F0-B4F251A5C12F> /usr/lib/system/libmacho.dylib
0x7fff60456000 - 0x7fff60458ff7 libquarantine.dylib (86.270.1) <3F36A3D6-9606-3D90-B520-809BAEF981C3> /usr/lib/system/libquarantine.dylib
0x7fff60459000 - 0x7fff6045aff7 libremovefile.dylib (45.200.2) <9FBEB2FF-EEBE-31BC-BCFC-C71F8D0E99B6> /usr/lib/system/libremovefile.dylib
0x7fff6045b000 - 0x7fff60472ff3 libsystem_asl.dylib (356.200.4) <A62A7249-38B8-33FA-9875-F1852590796C> /usr/lib/system/libsystem_asl.dylib
0x7fff60473000 - 0x7fff60473ff7 libsystem_blocks.dylib (73) <A453E8EE-860D-3CED-B5DC-BE54E9DB4348> /usr/lib/system/libsystem_blocks.dylib
0x7fff60474000 - 0x7fff604fbfff libsystem_c.dylib (1272.250.1) <7EDACF78-2FA3-35B8-B051-D70475A35117> /usr/lib/system/libsystem_c.dylib
0x7fff604fc000 - 0x7fff604ffffb libsystem_configuration.dylib (963.270.3) <2B4A836D-68A4-33E6-8D48-CD4486B03387> /usr/lib/system/libsystem_configuration.dylib
0x7fff60500000 - 0x7fff60503ff7 libsystem_coreservices.dylib (66) <719F75A4-74C5-3BA6-A09E-0C5A3E5889D7> /usr/lib/system/libsystem_coreservices.dylib
0x7fff60504000 - 0x7fff6050afff libsystem_darwin.dylib (1272.250.1) <EC9B39A5-9592-3577-8997-7DC721D20D8C> /usr/lib/system/libsystem_darwin.dylib
0x7fff6050b000 - 0x7fff60511ffb libsystem_dnssd.dylib (878.270.3) <D5352ABD-0311-3327-8E64-93F29EB19BF1> /usr/lib/system/libsystem_dnssd.dylib
0x7fff60512000 - 0x7fff6055dffb libsystem_info.dylib (517.200.9) <D09D5AE0-2FDC-3A6D-93EC-729F931B1457> /usr/lib/system/libsystem_info.dylib
0x7fff6055e000 - 0x7fff60586ff7 libsystem_kernel.dylib (4903.278.56) <5B0F1BF0-E2F4-3753-87B6-6F91C594F59E> /usr/lib/system/libsystem_kernel.dylib
0x7fff60587000 - 0x7fff605d2ff7 libsystem_m.dylib (3158.200.7) <F19B6DB7-014F-3820-831F-389CCDA06EF6> /usr/lib/system/libsystem_m.dylib
0x7fff605d3000 - 0x7fff605fdfff libsystem_malloc.dylib (166.270.1) <011F3AD0-8E6A-3A89-AE64-6E5F6840F30A> /usr/lib/system/libsystem_malloc.dylib
0x7fff605fe000 - 0x7fff60608ff7 libsystem_networkextension.dylib (767.250.2) <FF06F13A-AEFE-3A27-A073-910EF78AEA36> /usr/lib/system/libsystem_networkextension.dylib
0x7fff60609000 - 0x7fff60610fff libsystem_notify.dylib (172.200.21) <145B5CFC-CF73-33CE-BD3D-E8DDE268FFDE> /usr/lib/system/libsystem_notify.dylib
0x7fff60611000 - 0x7fff6061afef libsystem_platform.dylib (177.270.1) <9D1FE5E4-EB7D-3B3F-A8D1-A96D9CF1348C> /usr/lib/system/libsystem_platform.dylib
0x7fff6061b000 - 0x7fff60625ff7 libsystem_pthread.dylib (330.250.2) <2D5C08FF-484F-3D59-9132-CE1DCB3F76D7> /usr/lib/system/libsystem_pthread.dylib
0x7fff60626000 - 0x7fff60629ff7 libsystem_sandbox.dylib (851.270.5) <20D11F30-783F-3A56-9BD2-6CF38C049332> /usr/lib/system/libsystem_sandbox.dylib
0x7fff6062a000 - 0x7fff6062cff3 libsystem_secinit.dylib (30.260.2) <EF1EA47B-7B22-35E8-BD9B-F7003DCB96AE> /usr/lib/system/libsystem_secinit.dylib
0x7fff6062d000 - 0x7fff60634ff3 libsystem_symptoms.dylib (820.267.2) <0DA60956-0403-3456-9D6A-11F2DB9E3819> /usr/lib/system/libsystem_symptoms.dylib
0x7fff60635000 - 0x7fff6064aff7 libsystem_trace.dylib (906.260.3) <5B6FAE61-EF5C-381F-B71B-9B6F6428FEE2> /usr/lib/system/libsystem_trace.dylib
0x7fff6064c000 - 0x7fff60651ffb libunwind.dylib (35.4) <24A97A67-F017-3CFC-B0D0-6BD0224B1336> /usr/lib/system/libunwind.dylib
0x7fff60652000 - 0x7fff60681fff libxpc.dylib (1336.261.6) <522FA3AF-D3B1-3283-8EF4-8B17CB237B65> /usr/lib/system/libxpc.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 1047
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=243.5M resident=0K(0%) swapped_out_or_unallocated=243.5M(100%)
Writable regions: Total=29.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=29.4M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Kernel Alloc Once 8K 1
MALLOC 12.3M 9
MALLOC guard page 16K 4
STACK GUARD 4K 1
Stack 16.0M 2
VM_ALLOCATE 768K 2
__DATA 4216K 47
__LINKEDIT 223.4M 3
__TEXT 20.1M 43
__UNICODE 564K 1
shared memory 8K 2
=========== ======= =======
TOTAL 277.2M 115
Model: MacBookPro11,3, BootROM 430.0.0.0.0, 4 processors, Intel Core i7, 2.3 GHz, 16 GB, SMC 2.19f12
Graphics: kHW_IntelIrisProItem, Intel Iris Pro, spdisplays_builtin
Graphics: kHW_NVidiaGeForceGTX750MItem, NVIDIA GeForce GT 750M, spdisplays_pcie_device, 2 GB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x02FE, -
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x02FE, -
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x134), Broadcom BCM43xx 1.0 (7.77.61.3 AirPortDriverBrcmNIC-1305.11)
Bluetooth: Version 6.0.14d12, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Network Service: iPhone, Ethernet, en5
Serial ATA Device: APPLE SSD SM0512F, 500.28 GB
USB Device: USB 3.0 Bus
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: Rutoken ECP
USB Device: iPhone
Thunderbolt Bus: MacBook Pro, Apple Inc., 17.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (2 by maintainers)
Sure thing. I find no such environment variables.
From the above discussion I’m feeling quite certain that what’s happening is the extension is trying to run
python --version
on the python environments it finds in~/.virtualenvs
which have since had their python references broken from me upgrading or uninstalling Homebrew python versions after the virtual environments were made.Given we have a workaround, closing this we’ve not seen any other reports regarding this enhancement, and the cost of solving this doesn’t warrant it.