2024-09-18 14:18:17.711 [info] > python -m pytest -p vscode_pytest --collect-only "--rootdir=~/Dropbox (GaTech)/projects/cleo"
2024-09-18 14:18:17.711 [info] cwd: ~/Dropbox (GaTech)/projects/cleo
2024-09-18 14:18:18.046 [info] Plugin info[vscode-pytest]: Checking if rootdir is a child of a symlink.
Checking for symlink parent starting at current path: /home/kyle/Dropbox (GaTech)/projects/cleo
Symlink found at: /home/kyle/Dropbox (GaTech)
Plugin info[vscode-pytest]: rootdir argument, /home/kyle/Dropbox (GaTech)/projects/cleo, is identified as a symlink or child of a symlink, adjusting pytest paths accordingly.
2024-09-18 14:18:18.047 [error] ImportError while loading conftest '/home/kyle/GaTech Dropbox/Kyle Johnsen/projects/cleo/tests/conftest.py'.
2024-09-18 14:18:18.060 [error] tests/conftest.py:5: in <module>
import brian2.only as b2
E ModuleNotFoundError: No module named 'brian2'
2024-09-18 14:18:18.105 [error] Subprocess exited unsuccessfully with exit code 4 and signal null on workspace /home/kyle/Dropbox (GaTech)/projects/cleo.
2024-09-18 14:18:18.105 [error] Subprocess exited unsuccessfully with exit code 4 and signal null on workspace /home/kyle/Dropbox (GaTech)/projects/cleo. Creating and sending error discovery payload
2024-09-18 14:18:18.105 [error] pytest test discovery error for workspace: /home/kyle/Dropbox (GaTech)/projects/cleo
The python test process was terminated before it could exit on its own, the process errored with: Code: 4, Signal: null for workspace /home/kyle/Dropbox (GaTech)/projects/cleo
Type: Bug
Behaviour
pytest discovery fails with a ModuleNotFoundError, when the module is clearly installed in my environment
Steps to reproduce:
tests/conftest.pyDiagnostic data
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Extension version: 2024.15.2024090406
VS Code version: Code - Insiders 1.94.0-insider (a162831, 2024-09-06T12:53:19.832Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2
python.languageServersetting: PylanceUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments