You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version (available under the Extensions sidebar): 2019.3.6139
OS and version: Windows_NT x64 10.0.17134
Python version (& distribution if applicable, e.g. Anaconda): conda environment created from simple requirements.txt
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: pytest 4.3.1 and pandas 0.24.2
Expected behaviour
Launching a test works in "Run test" and "Debug test".
Actual behaviour
Launching a test works with "Run test" but not with "Debug test".
Error message is :
_____________________ ERROR collecting tests/test_lib.py ______________________
ImportError while importing test module 'c:\Users\PC\Desktop\test_pytest_debug_vscode\tests\test_lib.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests\test_lib.py:1: in <module>
import pandas as pd
..\..\Anaconda3\envs\m2rp\lib\site-packages\pandas\__init__.py:19: in <module>
"Missing required dependencies {0}".format(missing_dependencies))
E ImportError: Missing required dependencies ['numpy']
Steps to reproduce:
From conda (4.6.8), create a new env : conda create --name test --file requirements.txt
With requirements.txt :
python=3.7
pytest
pandas
Select the created env as Python Interpreter
Run this test file with pytest from the test menu :
3a. Running this test is ok
3b. Debugging this test fails
Note
When I create the environment from virtualenv and install the requirements.txt with pip, the bug does not occur.
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Nothing
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
Nothing
The text was updated successfully, but these errors were encountered:
Environment data
Expected behaviour
Launching a test works in "Run test" and "Debug test".
Actual behaviour
Launching a test works with "Run test" but not with "Debug test".
Error message is :
Steps to reproduce:
conda create --name test --file requirements.txt
With requirements.txt :
3a. Running this test is ok
3b. Debugging this test fails
Note
When I create the environment from virtualenv and install the requirements.txt with pip, the bug does not occur.
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Nothing
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)Nothing
The text was updated successfully, but these errors were encountered: