Closed phoenixeliot closed 1 year ago
These crash reports occur again if I create a new venv folder with python3.9 -m venv venv
in a directory I have open with VS Code. The only thing added to the Output panel when I do so are these commands, which if I run in the terminal execute fine and return my venv's python path:
> ~/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)"
> ~/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)"
Since starting my investigation for this I've started getting it randomly while leaving the project open in the background as well. Not often, but a couple times.
@phoenixeliot Can you try the insiders version and see if this still happens? You can download and install latest insiders build form here https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix .
If it continues to happen, Can you share the logs from developer tools console? you can get to it from Help > Toggle developer tools.
Still basically the same, though oddly python3.6
(not 3.6m as before) is now included in the list of pythons that crash, whereas the latest normal version only causes python
and python3
to crash. Odd.
Here's my devtool console logs with the Insiders version, set to 'verbose'. The crash reports occur very soon after the last entry is added.
``` /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1904 Extension 'ZainChen.json cannot use PROPOSED API (must started out of dev or enabled via --enable-proposed-api) updateEnableProposedApi @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1904 /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar/xterm/lib/xterm.js:1 [Violation] 'requestAnimationFrame' handler took 212ms suggestWidgetDetails.ts:136 [Violation] 'setTimeout' handler took 250ms [Violation] Forced reflow while executing JavaScript took 247ms [Violation] Forced reflow while executing JavaScript took 53ms event.ts:19 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 onFirstListenerAdd @ event.ts:19 _event._event @ event.ts:551 (anonymous) @ event.ts:56 onFirstListenerAdd @ event.ts:116 _event._event @ event.ts:551 x @ listWidget.ts:566 B @ abstractTree.ts:1091 createMouseController @ abstractTree.ts:1179 $ @ listWidget.ts:1290 x @ abstractTree.ts:1175 _ @ abstractTree.ts:1326 m @ objectTree.ts:52 $ @ listService.ts:789 _createInstance @ instantiationService.ts:110 createInstance @ instantiationService.ts:76 renderBody @ timelinePane.ts:871 render @ paneview.ts:243 render @ viewPane.ts:274 onDidAddViewDescriptors @ viewPaneContainer.ts:767 (anonymous) @ viewPaneContainer.ts:527 fire @ event.ts:622 triggerOnDidAddVisibleViewDescriptors @ viewContainerModel.ts:447 onDidChangeContext @ viewContainerModel.ts:634 (anonymous) @ viewContainerModel.ts:329 fire @ event.ts:622 (anonymous) @ event.ts:74 fire @ event.ts:622 fire @ event.ts:682 setContext @ contextKeyService.ts:326 set @ contextKeyService.ts:200 updateHasProviderContext @ timelineService.ts:263 registerTimelineProvider @ timelineService.ts:227 $registerTimelineProvider @ mainThreadTimeline.ts:39 _doInvokeHandler @ rpcProtocol.ts:417 _invokeHandler @ rpcProtocol.ts:402 _receiveRequest @ rpcProtocol.ts:318 _receiveOneMessage @ rpcProtocol.ts:245 (anonymous) @ rpcProtocol.ts:110 fire @ event.ts:622 fire @ ipc.net.ts:468 _receiveMessage @ ipc.net.ts:821 (anonymous) @ ipc.net.ts:660 fire @ event.ts:622 acceptChunk @ ipc.net.ts:241 (anonymous) @ ipc.net.ts:202 k @ ipc.net.ts:50 emit @ events.js:315 addChunk @ _stream_readable.js:295 readableAddChunk @ _stream_readable.js:271 Readable.push @ _stream_readable.js:212 onStreamRead @ internal/stream_base_commons.js:186 Show 21 more frames [Violation] Forced reflow while executing JavaScript took 42ms loader.js:702 [Violation] 'setTimeout' handler took 57ms console.ts:137 [Extension Host] (node:61468) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. m @ console.ts:137 $logExtensionHostMessage @ mainThreadConsole.ts:35 _doInvokeHandler @ rpcProtocol.ts:417 _invokeHandler @ rpcProtocol.ts:402 _receiveRequest @ rpcProtocol.ts:318 _receiveOneMessage @ rpcProtocol.ts:245 (anonymous) @ rpcProtocol.ts:110 fire @ event.ts:622 fire @ ipc.net.ts:468 _receiveMessage @ ipc.net.ts:821 (anonymous) @ ipc.net.ts:660 fire @ event.ts:622 acceptChunk @ ipc.net.ts:241 (anonymous) @ ipc.net.ts:202 k @ ipc.net.ts:50 emit @ events.js:315 addChunk @ _stream_readable.js:295 readableAddChunk @ _stream_readable.js:271 Readable.push @ _stream_readable.js:212 onStreamRead @ internal/stream_base_commons.js:186 localProcessExtensionHost.ts:272 Extension Host localProcessExtensionHost.ts:273 Debugger attached. 2event.ts:19 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 onFirstListenerAdd @ event.ts:19 _event._event @ event.ts:551 (anonymous) @ event.ts:56 onFirstListenerAdd @ event.ts:116 _event._event @ event.ts:551 x @ listWidget.ts:566 B @ abstractTree.ts:1091 createMouseController @ abstractTree.ts:1179 $ @ listWidget.ts:1290 x @ abstractTree.ts:1175 _ @ abstractTree.ts:1326 m @ objectTree.ts:52 createTree @ asyncDataTree.ts:404 v @ asyncDataTree.ts:373 j @ listService.ts:918 q @ fake:1 _createInstance @ instantiationService.ts:110 createInstance @ instantiationService.ts:76 createTree @ treeView.ts:466 set dataProvider @ treeView.ts:247 (anonymous) @ mainThreadTreeViews.ts:46 event.ts:19 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 onFirstListenerAdd @ event.ts:19 _event._event @ event.ts:551 (anonymous) @ event.ts:56 onFirstListenerAdd @ event.ts:116 _event._event @ event.ts:551 x @ listWidget.ts:566 createMouseController @ listWidget.ts:1305 $ @ listWidget.ts:1290 O @ listService.ts:227 _createInstance @ instantiationService.ts:110 createInstance @ instantiationService.ts:76 createNotificationsList @ notificationsList.ts:78 show @ notificationsList.ts:52 doAddToast @ notificationsToasts.ts:209 (anonymous) @ notificationsToasts.ts:163 execute @ dom.ts:210 ze @ dom.ts:250 ```
Doing some manual version bisecting, I found this issue was not always present and was introduced in the first 2021 version: v2020.12.424452561 is GOOD, no crashes. Same with another version from even earlier than this one. v2021.1.502429796 is BAD, causes this issue. All 2021 versions tested (a handful) after this one also cause the issue.
Some more data for ya:
With my normal configuration and non-insider python extension, with only the python and jupyter extensions installed, these crash: python
, python3
However if I add "python.experiments.optOutFrom": ["All"]
to my settings.json, then these crash: python
, python3
, python3.6
So some A/B test I had is affecting this (by preventing the crash of python3.6), but that's the only change afaik.
BTW, the only python3.6 versions I have are in ~/.miniconda.bak
, ~/.pyenv.bak
(both renamed to, hopefully, disable them), or in an old virtual environment for other projects. This project uses 3.9.
Looks like it was "pythonDiscoveryModule"
. If I have this in my settings.json, then python3.6 is added to the list of crashes.
"python.experiments.optOutFrom": [
"pythonDiscoveryModule"
]
Aha, OK, if I set "python.logging.level": "debug",
I start getting somewhere with my logs. Search below for "dyld", you'll spot it.
VS Code is finding an old virtualenv that references a now-uninstalled version of Python. If I delete those old virtualenv folders, I stop getting the crash reports!
It would be nice if it could detect this and not spawn a bunch of crash reports every time it finds every single version of python I've ever had in a venv on my computer, even if I've fixed the issue for myself now.
```
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 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
Info 2021-04-14 20:44:06: Display locator refreshing progress, Class name = g, completed in 1ms, has a falsy return value, , Return Value: undefined
Info 2021-04-14 20:44:06: Searching for conda.
Info 2021-04-14 20:44:06: Probing conda binary: conda
Info 2021-04-14 20:44:06: Searching for workspace virtual envs in: /Users/phoenix/Code/discord/scraper
Info 2021-04-14 20:44:06: Searching for workspace virtual envs in: /Users/phoenix/Code/discord/scraper/.direnv
Info 2021-04-14 20:44:06: Hide locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined
Info 2021-04-14 20:44:06: [Error: spawn conda ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)] {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn conda',
path: 'conda',
spawnargs: [ 'info', '--json' ]
}
Info 2021-04-14 20:44:06: Searching for global virtual envs in: /Users/phoenix/Envs
Info 2021-04-14 20:44:06: Searching for global virtual envs in: /Users/phoenix/.direnv
Info 2021-04-14 20:44:06: Searching for global virtual envs in: /Users/phoenix/.venvs
Info 2021-04-14 20:44:06: Searching for global virtual envs in: /Users/phoenix/.virtualenvs
Info 2021-04-14 20:44:06: Searching for global virtual envs in: /Users/phoenix/.local/share/virtualenvs
Info 2021-04-14 20:44:06: Searching for global virtual envs in: /Users/phoenix/envs
Info 2021-04-14 20:44:06: Probing conda binary: /Users/phoenix/.anaconda.bak/bin/conda
Info 2021-04-14 20:44:06: [Error: spawn /Users/phoenix/.anaconda.bak/bin/conda ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)] {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn /Users/phoenix/.anaconda.bak/bin/conda',
path: '/Users/phoenix/.anaconda.bak/bin/conda',
spawnargs: [ 'info', '--json' ]
}
Info 2021-04-14 20:44:06: Probing conda binary: /Users/phoenix/.bash_profile-anaconda.bak/bin/conda
Info 2021-04-14 20:44:06: [Error: spawn /Users/phoenix/.bash_profile-anaconda.bak/bin/conda ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)] {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn /Users/phoenix/.bash_profile-anaconda.bak/bin/conda',
path: '/Users/phoenix/.bash_profile-anaconda.bak/bin/conda',
spawnargs: [ 'info', '--json' ]
}
Info 2021-04-14 20:44:06: Probing conda binary: /Users/phoenix/.conda/bin/conda
Info 2021-04-14 20:44:06: [Error: spawn /Users/phoenix/.conda/bin/conda ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)] {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn /Users/phoenix/.conda/bin/conda',
path: '/Users/phoenix/.conda/bin/conda',
spawnargs: [ 'info', '--json' ]
}
Info 2021-04-14 20:44:06: Probing conda binary: /Users/phoenix/.miniconda3.bak/bin/conda
Info 2021-04-14 20:44:06: [Error: spawn /Users/phoenix/.miniconda3.bak/bin/conda ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)] {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn /Users/phoenix/.miniconda3.bak/bin/conda',
path: '/Users/phoenix/.miniconda3.bak/bin/conda',
spawnargs: [ 'info', '--json' ]
}
Info 2021-04-14 20:44:06: Found: /usr/bin/python --> /usr/bin/python
Info 2021-04-14 20:44:06: Probing conda binary: /Users/phoenix/.miniconda3/bin/conda
Info 2021-04-14 20:44:06: [Error: spawn /Users/phoenix/.miniconda3/bin/conda ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)] {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn /Users/phoenix/.miniconda3/bin/conda',
path: '/Users/phoenix/.miniconda3/bin/conda',
spawnargs: [ 'info', '--json' ]
}
Info 2021-04-14 20:44:06: Probing conda binary: /Users/phoenix/.miniconda3/envs/mibitracker/bin/conda
Info 2021-04-14 20:44:06: [Error: spawn /Users/phoenix/.miniconda3/envs/mibitracker/bin/conda ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)] {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn /Users/phoenix/.miniconda3/envs/mibitracker/bin/conda',
path: '/Users/phoenix/.miniconda3/envs/mibitracker/bin/conda',
spawnargs: [ 'info', '--json' ]
}
Info 2021-04-14 20:44:06: Couldn't locate the conda binary.
Info 2021-04-14 20:44:06: Found: /usr/bin/python2.7 --> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Info 2021-04-14 20:44:06: Found: /usr/lib/python2.7 --> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
Info 2021-04-14 20:44:06: Global Virtual Environment: [added] /Users/phoenix/.virtualenvs/autogame/bin/python
Info 2021-04-14 20:44:06: Global Virtual Environment: [skipped] /Users/phoenix/.virtualenvs/autogame/bin/python3
Info 2021-04-14 20:44:06: Global Virtual Environment: [skipped] /Users/phoenix/.virtualenvs/autogame/bin/python3.6
Info 2021-04-14 20:44:06: Found: /usr/local/bin/python3 --> /usr/local/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/bin/python3.9
Info 2021-04-14 20:44:06: Workspace Virtual Environment: [added] /Users/phoenix/Code/discord/scraper/venv/bin/python
Info 2021-04-14 20:44:06: Workspace Virtual Environment: [skipped] /Users/phoenix/Code/discord/scraper/venv/bin/python3
Info 2021-04-14 20:44:06: Workspace Virtual Environment: [skipped] /Users/phoenix/Code/discord/scraper/venv/bin/python3.9
Info 2021-04-14 20:44:06: Global Virtual Environment: [added] /Users/phoenix/.virtualenvs/duolingo bookmarklet/bin/python
Info 2021-04-14 20:44:06: Global Virtual Environment: [skipped] /Users/phoenix/.virtualenvs/duolingo bookmarklet/bin/python3
Info 2021-04-14 20:44:06: Found: /usr/local/bin/python3.9 --> /usr/local/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/bin/python3.9
Info 2021-04-14 20:44:06: Rule = settings, result = runNextRule
Info 2021-04-14 20:44:06: Executing next rule from settings
Info 2021-04-14 20:44:06: Rule = settings, result = runNextRule
Info 2021-04-14 20:44:06: Executing next rule from settings
Info 2021-04-14 20:44:06: Global Virtual Environment: [added] /Users/phoenix/.virtualenvs/lifeprint_scraper/bin/python
Info 2021-04-14 20:44:06: Global Virtual Environment: [skipped] /Users/phoenix/.virtualenvs/lifeprint_scraper/bin/python3
Info 2021-04-14 20:44:06: Global Virtual Environment: [skipped] /Users/phoenix/.virtualenvs/lifeprint_scraper/bin/python3.6
Info 2021-04-14 20:44:06: Workspace Virtual Environment: [added] /Users/phoenix/Code/discord/scraper/venv.bak/bin/python
Info 2021-04-14 20:44:06: Workspace Virtual Environment: [skipped] /Users/phoenix/Code/discord/scraper/venv.bak/bin/python3
Info 2021-04-14 20:44:06: Workspace Virtual Environment: [skipped] /Users/phoenix/Code/discord/scraper/venv.bak/bin/python3.7
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/Code/discord/scraper with pattern python using VSCode API
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/Code/discord/scraper with pattern */python using VSCode API
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/Code/discord/scraper with pattern */bin/python using VSCode API
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/Code/discord/scraper/.direnv with pattern python using VSCode API
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/Code/discord/scraper/.direnv with pattern */python using VSCode API
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/Code/discord/scraper/.direnv with pattern */bin/python using VSCode API
Info 2021-04-14 20:44:06: Global Virtual Environment: [added] /Users/phoenix/.virtualenvs/lifeprint_scraper.bak/bin/python
Info 2021-04-14 20:44:06: Global Virtual Environment: [skipped] /Users/phoenix/.virtualenvs/lifeprint_scraper.bak/bin/python3
Info 2021-04-14 20:44:06: Global Virtual Environment: [added] /Users/phoenix/.virtualenvs/tuja_vortaro_with_frequency/bin/python
Info 2021-04-14 20:44:06: Global Virtual Environment: [skipped] /Users/phoenix/.virtualenvs/tuja_vortaro_with_frequency/bin/python3
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/Envs with pattern python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/Envs with pattern */python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/Envs with pattern */bin/python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.direnv with pattern python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.direnv with pattern */python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.direnv with pattern */bin/python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.venvs with pattern python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.venvs with pattern */python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.venvs with pattern */bin/python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.virtualenvs with pattern python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.virtualenvs with pattern */python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.virtualenvs with pattern */bin/python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.local/share/virtualenvs with pattern python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.local/share/virtualenvs with pattern */python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/.local/share/virtualenvs with pattern */bin/python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/envs with pattern python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/envs with pattern */python using chokidar
Info 2021-04-14 20:44:06: Start watching: /Users/phoenix/envs with pattern */bin/python using chokidar
Info 2021-04-14 20:44:06: [Error: Command failed: "/Users/phoenix/.virtualenvs/autogame/bin/python" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/interpreterInfo.py"
dyld: Library not loaded: /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/Python
Referenced from: /Users/phoenix/.virtualenvs/autogame/bin/python
Reason: image not found
at ChildProcess.exithandler (child_process.js:312:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)] {
killed: false,
code: null,
signal: 'SIGABRT',
cmd: '"/Users/phoenix/.virtualenvs/autogame/bin/python" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/interpreterInfo.py"'
}
Info 2021-04-14 20:44:06: [Error: Command failed: "/Users/phoenix/.virtualenvs/duolingo bookmarklet/bin/python" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/interpreterInfo.py"
dyld: Library not loaded: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Python
Referenced from: /Users/phoenix/.virtualenvs/duolingo bookmarklet/bin/python
Reason: image not found
at ChildProcess.exithandler (child_process.js:312:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)] {
killed: false,
code: null,
signal: 'SIGABRT',
cmd: '"/Users/phoenix/.virtualenvs/duolingo bookmarklet/bin/python" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/interpreterInfo.py"'
}
Info 2021-04-14 20:44:06: [Error: Command failed: "/Users/phoenix/.virtualenvs/lifeprint_scraper.bak/bin/python" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/interpreterInfo.py"
dyld: Library not loaded: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Python
Referenced from: /Users/phoenix/.virtualenvs/lifeprint_scraper.bak/bin/python
Reason: image not found
at ChildProcess.exithandler (child_process.js:312:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)] {
killed: false,
code: null,
signal: 'SIGABRT',
cmd: '"/Users/phoenix/.virtualenvs/lifeprint_scraper.bak/bin/python" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/interpreterInfo.py"'
}
Info 2021-04-14 20:44:08: [Error: Command failed: "/Users/phoenix/.virtualenvs/tuja_vortaro_with_frequency/bin/python" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py" "/Users/phoenix/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/interpreterInfo.py"
dyld: Library not loaded: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Python
Referenced from: /Users/phoenix/.virtualenvs/tuja_vortaro_with_frequency/bin/python
Reason: image not found
at ChildProcess.exithandler (child_process.js:312:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Socket.
There was a different error (not about dyld's) for one of them, tracking it here in case it helps detect & prevent this crash:
This one used python3.6.
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x000000010b6ce5c0 (most recent call first):
[1] 97804 abort /Users/phoenix/.virtualenvs/lifeprint_scraper/bin/python3
Thanks for taking the time to figure out what is going on. I will discuss with the team on what we can potentially do here. The issue is that we need to find the list of interpreters on a machine, and part of it is looking into known locations and probing them make sure they are usable. The pythonDiscoveryModule
experiment does this slightly better by examining the meta data around the environment, rather than actually running it. But eventually it will run it, to ensure it is usable.
Leaving this here for anyone else bothered by this or anything similar: Apparently you can turn off these crash report dialogs entirely, or replace them with notifications: https://apple.stackexchange.com/questions/105846/prevent-application-quit-unexpectedly-message-on-sigquit
You can also check the logs using the above log settings, and go delete / upgrade the virtual environments that are triggering these crashes.
Hi @phoenixeliot,
Doing some digging around, https://bugs.python.org/issue36154 seems like an issue similar to yours. Can you check if you have any Python-related environment variables by running env | grep PYTHON
in your terminal, and especially if you have PYTHONHOME
set to something?
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.
Thank you for narrowing it down, and for posting a workaround! Marking it as an enhancement.
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.
Environment data
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 aboutpython
andpython3
crashing, but nopython3.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]
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 theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)``` 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:
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)``` 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
```Process: python3 [19583] 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) /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) /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff5d40e000 - 0x7fff5d40fffb libSystem.B.dylib (1252.250.1) /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) /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) /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) /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) /usr/lib/system/libsystem_asl.dylib
0x7fff60473000 - 0x7fff60473ff7 libsystem_blocks.dylib (73) /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) /usr/lib/system/libsystem_darwin.dylib
0x7fff6050b000 - 0x7fff60511ffb libsystem_dnssd.dylib (878.270.3) /usr/lib/system/libsystem_dnssd.dylib
0x7fff60512000 - 0x7fff6055dffb libsystem_info.dylib (517.200.9) /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) /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) /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) /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
```