Closed 1vecera closed 1 year ago
Sample repo under https://github.com/1vecera/errorPytest
Thanks for the detailed logs, meanwhile I reproduce it can you try running the command which failed in terminal and see what happens:
conda run -n swp10 --no-capture-output python ~\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\testing_tools\run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
Make sure to expand the ~
to your user directory.
Please check results in both VSCode terminal and an external terminal.
Powershell, my default shell, fails both within VSCode and externally.
(swp10) PS D:\DV\VAROModule> conda activate swp10
(swp10) PS D:\DV\VAROModule> Set-Location -path "D:\DV\VAROModule"
(swp10) PS D:\DV\VAROModule> conda run -n swp10 --no-capture-output python C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\get_output_via_markers.py C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\testing_tools\run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
>>>PYTHON-EXEC-OUTPUT
usage: C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\testing_tools\run_adapter.py
[-h] {discover} ...
C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\testing_tools\run_adapter.py: error: unrecognized arguments: --rootdir . -s --cache-clear tests
<<<PYTHON-EXEC-OUTPUT
ERROR conda.cli.main_run:execute(41): `conda run python C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\get_output_via_markers.py C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\testing_tools\run_adapter.py discover pytest --rootdir . -s --cache-clear tests` failed. (See above for error)
Simple comand line without activation runs:
D:\DV\VAROModule>D:
D:\DV\VAROModule>cd D:\DV\VAROModule
D:\DV\VAROModule>conda run -n swp10 --no-capture-output python C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\get_output_via_markers.py C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\testing_tools\run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
>>>PYTHON-EXEC-OUTPUT
[{"rootid": ".", "root": "D:\\DV\\VAROModule", "parents": [{"id": "./tests", "kind": "folder", "name": "tests", "parentid": ".", "relpath": ".\\tests"}, {"id": "./tests/test_azureupload.py", "kind": "file", "name": "test_azureupload.py", "parentid": "./tests", "relpath": ".\\tests\\test_azureupload.py"}, {"id": "./tests/test_checkerrors.py", "kind": "file", "name": "test_checkerrors.py", "parentid": "./tests", "relpath": ".\\tests\\test_checkerrors.py"}, {"id": "./tests/test_email.py", "kind": "file", "name": "test_email.py", "parentid": "./tests", "relpath": ".\\tests\\test_email.py"}, {"id": "./tests/test_g_folder.py", "kind": "file", "name": "test_g_folder.py", "parentid": "./tests", "relpath": ".\\tests\\test_g_folder.py"}, {"id": "./tests/test_ice.py", "kind": "file", "name": "test_ice.py", "parentid": "./tests", "relpath": ".\\tests\\test_ice.py"}, {"id": "./tests/test_readExcel.py", "kind": "file", "name": "test_readExcel.py", "parentid": "./tests", "relpath": ".\\tests\\test_readExcel.py"}, {"id": "./tests/test_scheduler.py", "kind": "file", "name": "test_scheduler.py", "parentid": "./tests", "relpath": ".\\tests\\test_scheduler.py"}, {"id": "./tests/test_selenium.py", "kind": "file", "name": "test_selenium.py", "parentid": "./tests", "relpath": ".\\tests\\test_selenium.py"}, {"id": "./tests/test_upload_dashboard.py", "kind": "file", "name": "test_upload_dashboard.py", "parentid": "./tests", "relpath": ".\\tests\\test_upload_dashboard.py"}, {"id": "./tests/test_vrd.py", "kind": "file", "name": "test_vrd.py", "parentid": "./tests", "relpath": ".\\tests\\test_vrd.py"}, {"id": "./tests/test_x2.py", "kind": "file", "name": "test_x2.py", "parentid": "./tests", "relpath": ".\\tests\\test_x2.py"}], "tests": [{"id": "./tests/test_azureupload.py::test_upload_df", "name": "test_upload_df", "source": ".\\tests\\test_azureupload.py:5", "markers": [], "parentid": "./tests/test_azureupload.py"}, {"id": "./tests/test_checkerrors.py::test_assert_all_rows", "name": "test_assert_all_rows", "source": ".\\tests\\test_checkerrors.py:5", "markers": [], "parentid": "./tests/test_checkerrors.py"}, {"id": "./tests/test_email.py::test_email", "name": "test_email", "source": ".\\tests\\test_email.py:5", "markers": [], "parentid": "./tests/test_email.py"}, {"id": "./tests/test_g_folder.py::test_g_folder_path", "name": "test_g_folder_path", "source": ".\\tests\\test_g_folder.py:4", "markers": [], "parentid": "./tests/test_g_folder.py"}, {"id": "./tests/test_ice.py::test_dailySeries", "name": "test_dailySeries", "source": ".\\tests\\test_ice.py:15", "markers": [], "parentid": "./tests/test_ice.py"}, {"id": "./tests/test_ice.py::test_parsing", "name": "test_parsing", "source": ".\\tests\\test_ice.py:34", "markers": [], "parentid": "./tests/test_ice.py"}, {"id": "./tests/test_ice.py::test_minuteSeries", "name": "test_minuteSeries", "source": ".\\tests\\test_ice.py:42", "markers": [], "parentid": "./tests/test_ice.py"}, {"id": "./tests/test_ice.py::test_non_numeric", "name": "test_non_numeric", "source": ".\\tests\\test_ice.py:58", "markers": [], "parentid": "./tests/test_ice.py"}, {"id": "./tests/test_ice.py::test_TimeSales", "name": "test_TimeSales", "source": ".\\tests\\test_ice.py:73", "markers": [], "parentid": "./tests/test_ice.py"}, {"id": "./tests/test_readExcel.py::test_readTable", "name": "test_readTable", "source": ".\\tests\\test_readExcel.py:6", "markers": [], "parentid": "./tests/test_readExcel.py"}, {"id": "./tests/test_readExcel.py::test_readRange", "name": "test_readRange", "source": ".\\tests\\test_readExcel.py:10", "markers": [], "parentid": "./tests/test_readExcel.py"}, {"id": "./tests/test_scheduler.py::test_bat", "name": "test_bat", "source": ".\\tests\\test_scheduler.py:3", "markers": [], "parentid": "./tests/test_scheduler.py"}, {"id": "./tests/test_scheduler.py::test_Different_file", "name": "test_Different_file", "source": ".\\tests\\test_scheduler.py:6", "markers": [], "parentid": "./tests/test_scheduler.py"}, {"id": "./tests/test_scheduler.py::test_Different_folder", "name": "test_Different_folder", "source": ".\\tests\\test_scheduler.py:9", "markers": [], "parentid": "./tests/test_scheduler.py"}, {"id": "./tests/test_scheduler.py::test_create_action", "name": "test_create_action", "source": ".\\tests\\test_scheduler.py:13", "markers": [], "parentid": "./tests/test_scheduler.py"}, {"id": "./tests/test_scheduler.py::test_create_action_wrong", "name": "test_create_action_wrong", "source": ".\\tests\\test_scheduler.py:16", "markers": [], "parentid": "./tests/test_scheduler.py"}, {"id": "./tests/test_scheduler.py::test_send_info", "name": "test_send_info", "source": ".\\tests\\test_scheduler.py:23", "markers": [], "parentid": "./tests/test_scheduler.py"}, {"id": "./tests/test_selenium.py::test_webdriver", "name": "test_webdriver", "source": ".\\tests\\test_selenium.py:1", "markers": [], "parentid": "./tests/test_selenium.py"}, {"id": "./tests/test_upload_dashboard.py::test_upload_double_images", "name": "test_upload_double_images", "source": ".\\tests\\test_upload_dashboard.py:1", "markers": [], "parentid": "./tests/test_upload_dashboard.py"}, {"id": "./tests/test_vrd.py::test_get_vrd_daily_file", "name": "test_get_vrd_daily_file", "source": ".\\tests\\test_vrd.py:1", "markers": [], "parentid": "./tests/test_vrd.py"}, {"id": "./tests/test_x2.py::test_bulk_spot_download", "name": "test_bulk_spot_download", "source": ".\\tests\\test_x2.py:2", "markers": [], "parentid": "./tests/test_x2.py"}]}]
Opening command in VSCode runs a conda activate script and pytest seems to pick up the wrong environment (pre-3.9 so it results in a import errors)
C:\Users\Varo-local_User>C:/Conda/Scripts/activate
(base) C:\Users\Varo-local_User>conda activate swp10
(swp10) C:\Users\Varo-local_User>D:
(swp10) D:\>CD D:\DV\VAROModule
(swp10) D:\DV\VAROModule>conda run -n swp10 --no-capture-output python C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\get_output_via_markers.py C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\testing_tools\run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
>>>PYTHON-EXEC-OUTPUT
equivalent command: C:\Conda\python.exe -m pytest --collect-only --rootdir . -s --cache-clear tests
============================= test session starts =============================
platform win32 -- Python 3.7.4, pytest-5.3.5, py-1.8.1, pluggy-0.12.0
rootdir: D:\DV\VAROModule
plugins: arraydiff-0.3, doctestplus-0.4.0, openfiles-0.4.0, remotedata-0.3.1
collected 5 items / 6 errors
<Package D:\DV\VAROModule\tests>
<Module test_email.py>
<Function test_email>
<Module test_selenium.py>
<Function test_webdriver>
<Module test_upload_dashboard.py>
<Function test_upload_double_images>
<Module test_vrd.py>
<Function test_get_vrd_daily_file>
<Module test_x2.py>
<Function test_bulk_spot_download>
=================================== ERRORS ====================================
_________________ ERROR collecting tests/test_azureupload.py __________________
ImportError while importing test module 'D:\DV\VAROModule\tests\test_azureupload.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests\test_azureupload.py:3: in <module>
from VARO.azurefunctions import AzureSession
VARO\__init__.py:7: in <module>
from .azurefunctions import AzureSession
VARO\azurefunctions.py:17: in <module>
from typing import Literal
E ImportError: cannot import name 'Literal' from 'typing' (C:\Conda\lib\typing.py)
_________________ ERROR collecting tests/test_checkerrors.py __________________
ImportError while importing test module 'D:\DV\VAROModule\tests\test_checkerrors.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests\test_checkerrors.py:3: in <module>
from VARO import assert_all_rows
VARO\__init__.py:7: in <module>
from .azurefunctions import AzureSession
VARO\azurefunctions.py:17: in <module>
from typing import Literal
E ImportError: cannot import name 'Literal' from 'typing' (C:\Conda\lib\typing.py)
___________________ ERROR collecting tests/test_g_folder.py ___________________
ImportError while importing test module 'D:\DV\VAROModule\tests\test_g_folder.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests\test_g_folder.py:3: in <module>
from VARO import get_g_folder_path
VARO\__init__.py:7: in <module>
from .azurefunctions import AzureSession
VARO\azurefunctions.py:17: in <module>
from typing import Literal
E ImportError: cannot import name 'Literal' from 'typing' (C:\Conda\lib\typing.py)
_____________________ ERROR collecting tests/test_ice.py ______________________
ImportError while importing test module 'D:\DV\VAROModule\tests\test_ice.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests\test_ice.py:3: in <module>
from VARO import ice_to_df
VARO\__init__.py:7: in <module>
from .azurefunctions import AzureSession
VARO\azurefunctions.py:17: in <module>
from typing import Literal
E ImportError: cannot import name 'Literal' from 'typing' (C:\Conda\lib\typing.py)
__________________ ERROR collecting tests/test_readExcel.py ___________________
ImportError while importing test module 'D:\DV\VAROModule\tests\test_readExcel.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests\test_readExcel.py:4: in <module>
from VARO.read_excel import read_ExcelTable
VARO\__init__.py:7: in <module>
from .azurefunctions import AzureSession
VARO\azurefunctions.py:17: in <module>
from typing import Literal
E ImportError: cannot import name 'Literal' from 'typing' (C:\Conda\lib\typing.py)
__________________ ERROR collecting tests/test_scheduler.py ___________________
ImportError while importing test module 'D:\DV\VAROModule\tests\test_scheduler.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests\test_scheduler.py:1: in <module>
from VARO.task_scheduler import create_action, create_bat_file,send_info_on_tasks
VARO\__init__.py:7: in <module>
from .azurefunctions import AzureSession
VARO\azurefunctions.py:17: in <module>
from typing import Literal
E ImportError: cannot import name 'Literal' from 'typing' (C:\Conda\lib\typing.py)
============================== warnings summary ===============================
C:\Conda\lib\site-packages\pandas\_testing.py:24
C:\Conda\lib\site-packages\pandas\_testing.py:24: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
import pandas._libs.testing as _testing
C:\Conda\lib\site-packages\requests\__init__.py:91
C:\Conda\lib\site-packages\requests\__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.7) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
-- Docs: https://docs.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!! Interrupted: 6 errors during collection !!!!!!!!!!!!!!!!!!!
======================== 2 warnings, 6 errors in 6.12s ========================
<<<PYTHON-EXEC-OUTPUT
Traceback (most recent call last):
File "C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\get_output_via_markers.py", line 26, in <module>
runpy.run_path(module, run_name="__main__")
File "C:\Conda\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "C:\Conda\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "C:\Conda\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\testing_tools\run_adapter.py", line 22, in <module>
main(tool, cmd, subargs, toolargs)
File "C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\testing_tools\adapter\__main__.py", line 100, in main
parents, result = run(toolargs, **subargs)
File "C:\Users\Varo-local_User\.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\testing_tools\adapter\pytest\_discovery.py", line 44, in discover
raise Exception("pytest discovery failed (exit code {})".format(ec))
Exception: pytest discovery failed (exit code 2)
Thank you for the details. It seems you likely launched VSCode from an activated terminal?
There is an issue with conda run
when running it from a terminal that already has an activated environment (https://github.com/conda/conda/issues/11305, https://github.com/conda/conda/issues/11174), so this seems to be a dup of that.
@karrtikr I've launched using right-click open with code and selecting the environment, should I test it with opening PowerShell, activating my env. and launching using code . command?
Anything I can do?
Apologies for the delayed reply. Summarizing the discussion:
Opening command in VSCode runs a conda activate script and pytest seems to pick up the wrong environment (pre-3.9 so it results in a import errors)
This is due to the bug mentioned in https://github.com/microsoft/vscode-python/issues/19069#issuecomment-1136543233.
Powershell, my default shell, fails both within VSCode and externally.
This is also due to bug mentioned above, where running conda run
on top of conda activate
uses the base conda python instead.
Simple comand line without activation runs:
I assume you're referring to Command prompt.
The case I would like you to test:
conda activate
isn't sent, does sending https://github.com/microsoft/vscode-python/issues/19069#issuecomment-1119044739 works? Note extension does not send conda activate
internally when running conda run
internally, so I expect this should result in the same error as https://github.com/microsoft/vscode-python/issues/19069#issue-1226637531.Some more information I need for the VSCode terminal where conda activate
command is not set:
ComSpec
environment variable. Start a new CMD session and run set ComSpec
.VIRTUAL_ENV
variable.CONDA_SHLVL
variableThanks :)
I have this same problem, but in wsl. The conda environment name is dev162 located at "/home/aravia1/miniconda3/envs/dev162/" but it is looking for the environment at "/home/aravia1/miniconda3/envs/dev162/envs/dev162" and fails.
Experiment 'pythonaacf' is active
LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
Python interpreter path: ~/miniconda3/envs/dev162/bin/python
Starting Pylance language server.
> conda info --json
> conda run -n dev162 --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2022.12.1/pythonFiles/printEnvVariables.py
> conda run -n dev162 --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2022.12.1/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
cwd: .
[ERROR 2022-7-24 11:58:52.839]: Error discovering pytest tests:
[n [Error]:
EnvironmentLocationNotFound: Not a conda environment: /home/aravia1/miniconda3/envs/dev162/envs/dev162
at ChildProcess.<anonymous> (/home/aravia1/.vscode-server/extensions/ms-python.python-2022.12.1/out/client/extension.js:2:238622)
at Object.onceWrapper (node:events:510:26)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)]
> conda info --json
As weird as it sounds, i just tried creating a symlink at the path "/home/aravia1/miniconda3/envs/dev162/envs/dev162" and the tests gets discovered 🤷.
Symlink:
ln -s ~/miniconda3/envs/dev162/ ~/miniconda3/envs/dev162/envs/dev162
Successful test discovery:
> conda run -n dev162 --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2022.12.1/pythonFiles/printEnvVariables.py
> conda run -n dev162 --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2022.12.1/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
cwd: .
Hello! Unfortunately, I'm having the same issue in a few workspaces. It is occurring in macOS as well as ubuntu 20.04 with code-insiders and python extension v2022.12.1. Also happens when using the remote-SSH extension, but it's not exclusive to that scenario. Can be tested with this repository.
Python extension output:
Experiment 'pythonaa' is active
LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
> conda info --json
> /usr/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /usr/include/python3.6 ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /usr/include/python3.7 ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
[ERROR 2022-7-31 2:27:34.462]: [Error: Command failed: /usr/include/python3.6 /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.6: Permission denied
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:526:28)
at Pipe.<anonymous> (node:net:687:12)] {
killed: false,
code: 126,
signal: null,
cmd: '/usr/include/python3.6 /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py'
}
[ERROR 2022-7-31 2:27:34.467]: [Error: Command failed: /usr/include/python3.7 /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.7: Permission denied
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:526:28)
at Pipe.<anonymous> (node:net:687:12)] {
killed: false,
code: 126,
signal: null,
cmd: '/usr/include/python3.7 /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py'
}
> /anaconda/envs/aisc/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/alae/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/archai/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/ddm/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
Python interpreter path: /anaconda/envs/ddm/bin/python
> conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/printEnvVariables.py
> /anaconda/envs/audio/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/audiotf2/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/azureml_py36_automl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/azureml_py36_pytorch/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/azureml_py36_tensorflow/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/bonsai/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/bonsai-batch/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/bonsai-preview/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/bonsai-scg-latest/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/brain/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/cleanrl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/clip-dalle/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/clip-featureviz/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/coinbot/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/colab/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/d3rl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/dalle/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/data2sim/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/ddm3/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/dmcontrol/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/dvc/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/hfcourse/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/iglu/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/jpylb/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/jupy/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/mineiglurl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/minerl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/modelcard/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/nlu/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/parsing/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/py37_default/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/py37_pytorch/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/py37_tensorflow/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/ray/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/repsol/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/rl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/rlex/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/rlydoe/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/sbi/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/timeformers/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /anaconda/envs/torch/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
> /bin/bash ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
[ERROR 2022-7-31 2:27:46.530]: Error: Command failed: /bin/bash /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py
/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py: line 4: import: command not found
/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py: line 5: import: command not found
/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py: line 10: syntax error near unexpected token `">>>PYTHON-EXEC-OUTPUT"'
/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py: line 10: `print(">>>PYTHON-EXEC-OUTPUT")'
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
killed: false,
code: 2,
signal: null,
cmd: '/bin/bash /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/interpreterInfo.py'
}
Starting Pylance language server.
> conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/printEnvVariables.py
> conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
cwd: .
[ERROR 2022-7-31 2:28:4.244]: Error discovering pytest tests:
n [Error]:
EnvironmentLocationNotFound: Not a conda environment: /anaconda/envs/ddm/envs/ddm
at ChildProcess.<anonymous> (/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/out/client/extension.js:2:238622)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:526:28)
at Pipe.<anonymous> (node:net:687:12)
Jupyter provided interpreter path override: /anaconda/envs/ddm/bin/python
Additional environment Info:
Version: 1.71.0-insider
Commit: 7ed02a69658fc07f08740b98fa0d8d96c1a61ed4
Date: 2022-08-24T05:18:46.886Z (6 days ago)
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 21.6.0
Sandboxed: Yes
Note that directly running the command conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
in my active terminal works fine, and that terminal has already activated my virtual environment. Is there a step where it's appending the virtual environment name and parent directory to the activated pytest
test?
Thanks in advance for help!
Hey @akzaidi, can you help me with the information asked here https://github.com/microsoft/vscode-python/issues/19421#issuecomment-1178145859?
I suspect it's caused due to conda itself, and they made some recent fixes in their canary build, can you checkout the conda canary build and see if it helps?
conda update -c conda-canary/label/dev conda
Hey @akzaidi, can you help me with the information asked here #19421 (comment)?
I suspect it's caused due to conda itself, and they made some recent fixes in their canary build, can you checkout the conda canary build and see if it helps?
conda update -c conda-canary/label/dev conda
I'm having the same issue. Just tried this and had conda updated to 4.14.0-py38h10201cd_0
, but getting the same error.
This is a Macbook Pro M1 , VSCode version 1.70.
@dorukhansergin I see, can you help me with the other information I asked?
Note that directly running the <
command
> in my active terminal works fine, and that terminal has already activated my virtual environment.
@akzaidi Can you deactivate the terminal and then attempt to run the command. You can do this in any of the two ways:
"python.terminal.activateEnvironment": false
in your settings and open a new terminal to get a de-activated terminal.conda deactivate ddm
.Please send a screenshot.
Is there a step where it's appending the virtual environment name and parent directory to the activated pytest test?
Not in the Python extension, https://github.com/conda/conda handles that. Which is why I'm trying to reproduce this in a terminal, to make sure it's unrelated to the Python extension.
@dorukhansergin I see, can you help me with the other information I asked?
I closed VSCode -> opened up a fresh terminal -> ran conda deactivate
-> cd'ed into my root folder of my project -> ran code .
-> tried to discover tests, still same error.
FWIW, I'm using miniforge3 as the conda distro.
Also:
echo $VIRTUAL_ENV
returns empty line.
echo $CONDA_SHLVL
returns 0.
Thanks. Can you demonstrate to me the command which fails:
conda run -n <name of ur env> --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
(or something similar for you)
works in:
I suspect it's an issue with conda itself and so will fail in both. Remember to deactivate conda environment before attempting to run the command.
Hmm, both has the following structure
>>>PYTHON-EXEC-OUTPUT
equivalent command: <correct conda binary path> -m pytest --cov-report term-missing --cov-report xml --doctest-modules --benchmark-disable -p no:logging --collect-only --rootdir <correct path to where tests folder is at> -s --cache-clear tests
============================= test session starts ==============================
platform darwin -- Python 3.8.6, pytest-7.1.2, pluggy-1.0.0
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
hypothesis profile 'dev' -> max_examples=10, verbosity=Verbosity.verbose, deadline=timedelta(milliseconds=10000), database=DirectoryBasedExampleDatabase('/Users/dorukhansergin/Projects/src2/.hypothesis/examples')
rootdir: <correct path to where tests folder is at>, configfile: ../../../../../setup.cfg
plugins: ddtrace-1.3.0, anyio-3.6.1, benchmark-3.4.1, hydra-core-1.1.2, env-0.6.2, timestamper-0.0.9, mock-3.8.2, hypothesis-6.54.4, cov-3.0.0
collected 0 items
========================= no tests collected in 0.01s ==========================
ERROR: file or directory not found: tests
<<<PYTHON-EXEC-OUTPUT
Thanks. Can you demonstrate to me the command which fails:
conda run -n <name of ur env> --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.12.1/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir . -s --cache-clear tests
(or something similar for you)
works in:
- An external terminal
- VSCode integrated terminal
I suspect it's an issue with conda itself and so will fail in both. Remember to deactivate conda environment before attempting to run the command.
@karrtikr FWIW, tests are collected correctly if I do the following:
<correct conda binary path> -m pytest --cov-report term-missing --cov-report xml --doctest-modules --benchmark-disable -p no:logging --collect-only -s --cache-clear <correct path to where tests folder is at>
So I think (1) is a conda issue, because somehow it doesn't pick up that specific python binary and it picks up the default one (in my case this is /opt/homebrew/bin/python
).
(2) seems to be a pytest issue, though.
PYTHON-EXEC-OUTPUT equivalent command:
-m pytest --cov-report term-missing --cov-report xml --doctest-modules --benchmark-disable -p no:logging --collect-only --rootdir -s --cache-clear tests
The command we send does not have a -m
flag. Can you please send a screenshot instead so I can verify it's the right command? It'll also be easier to demonstrate that to conda. Make sure to include the terminal type on the top right:
Lastly, we'll need to open a bug at conda for (1): Create bug, saying that the command works when activating conda and then running conda run
, but does not work when directly running conda run
.
Hi @karrtikr -
4.14.0+31.g9f16472a4
, and the error persists. ❯ echo $ComSpec; echo $VIRTUAL_ENV; echo $CONDA_SHLVL
3
conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir ~/bonsai/datadrivenmodel -s --cache-clear tests
works in the integrated terminal, but the tests still fail to get discovered by the extension, indicating it's an issue with the extension, not conda?I linked a repository above, if you clone it and try discovering tests, does it work? I tried that same repository with github codespaces, and it fails...
Thanks I'll have a look tomorrow. Can you demonstrate to me via screenshot that it works in integrated terminal? https://github.com/microsoft/vscode-python/issues/19069#issuecomment-1233510095
I want to make sure conda environment is deactivated before you run the command, also please make sure to include the terminal type on the top right.
❯ echo $ComSpec; echo $VIRTUAL_ENV; echo $CONDA_SHLVL
3
Where did 3 come from?
@karrtikr here's a screenshot of running conda run
for the tests in the integrated terminal (where the conda env is already activated):
I am seeing this exception after the tests:
Traceback (most recent call last):
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py", line 26, in <module>
runpy.run_path(module, run_name="__main__")
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py", line 22, in <module>
main(tool, cmd, subargs, toolargs)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/adapter/__main__.py", line 99, in main
parents, result = run(toolargs, **subargs)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 44, in discover
raise Exception("pytest discovery failed (exit code {})".format(ec))
Exception: pytest discovery failed (exit code 2)
ERROR conda.cli.main_run:execute(49): `conda run python /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py /home/alizaidi/.v
The same behavior occurs from running conda run
after deactivating the environment first:
❯ conda deactivate
alizaidi in azdevrl in datadrivenmodel on alizaidi/lag_improvements [?] via 🐍 v3.7.6 via 📐 v3.6.3
❯ conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir ~/bonsai/datadrivenmodel -s --cache-clear tests
>>>PYTHON-EXEC-OUTPUT
equivalent command: /anaconda/envs/ddm/bin/python -m pytest --collect-only --rootdir /home/alizaidi/bonsai/datadrivenmodel -s --cache-clear tests
============================= test session starts ==============================
platform linux -- Python 3.7.7, pytest-7.1.2, pluggy-0.13.1
rootdir: /home/alizaidi/bonsai/datadrivenmodel
plugins: anyio-3.4.0, clarity-1.0.1, hydra-core-1.0.5
collected 30 items / 1 error
<Package tests>
<Module test_dataclass.py>
<Function test_cartpole_at_st1>
<Function test_cartpole_at_st>
<Function test_diff_labels_1>
<Function test_diff_labels_2>
<Function test_concatenate_states_1>
<Function test_concatenate_states_2>
<Function test_concatenate_states_3>
<Module test_gboost.py>
<Function test_shape>
<Function test_lgm_train>
<Function test_xgb_train>
<Module test_gboost_diff.py>
<Function test_shape>
<Function test_lgm_train>
<Function test_xgb_train>
<Module test_loaders.py>
<Function test_cartpole_at_st1>
<Function test_cartpole_at_st>
<Function test_base_reader>
<Function test_diff_names>
<Module test_pytorch_model.py>
<Function test_shape>
<Function test_build>
<Function test_fit>
<Function test_sweep>
<Function test_predictor>
<Function test_save_model>
<Module test_sklearn.py>
<Function test_shape>
<Function test_svm_train>
<Function test_linear_train>
<Function test_gbr_train>
<Module test_sweeping.py>
<Function test_sweeping_lightgbm>
<Function test_sweeping_svr>
<Function test_sweeping_xgboost>
==================================== ERRORS ====================================
_________________ ERROR collecting tests/test_gboost_concat.py _________________
/anaconda/envs/ddm/lib/python3.7/site-packages/pandas/core/indexes/base.py:3361: in get_loc
return self._engine.get_loc(casted_key)
pandas/_libs/index.pyx:76: in pandas._libs.index.IndexEngine.get_loc
???
pandas/_libs/index.pyx:108: in pandas._libs.index.IndexEngine.get_loc
???
pandas/_libs/hashtable_class_helper.pxi:5198: in pandas._libs.hashtable.PyObjectHashTable.get_item
???
pandas/_libs/hashtable_class_helper.pxi:5206: in pandas._libs.hashtable.PyObjectHashTable.get_item
???
E KeyError: 'prev_state_x_position_1'
The above exception was the direct cause of the following exception:
tests/test_gboost_concat.py:17: in <module>
concatenated_zero_padding=True,
base.py:243: in load_csv
concatenate_var_length=concatenate_var_length,
dataclass.py:376: in load_csv
aux_df = self.df_concatenate_inputs(df)
dataclass.py:875: in df_concatenate_inputs
feat_array = df[feat].values
/anaconda/envs/ddm/lib/python3.7/site-packages/pandas/core/frame.py:3458: in __getitem__
indexer = self.columns.get_loc(key)
/anaconda/envs/ddm/lib/python3.7/site-packages/pandas/core/indexes/base.py:3363: in get_loc
raise KeyError(key) from err
E KeyError: 'prev_state_x_position_1'
=============================== warnings summary ===============================
../../../../anaconda/envs/ddm/lib/python3.7/site-packages/pkg_resources/__init__.py:1131
/anaconda/envs/ddm/lib/python3.7/site-packages/pkg_resources/__init__.py:1131: DeprecationWarning: Use of .. or absolute path in a resource path is not allowed and will raise exceptions in a future release.
self, resource_name
../../../../anaconda/envs/ddm/lib/python3.7/site-packages/mlflow/types/schema.py:49
/anaconda/envs/ddm/lib/python3.7/site-packages/mlflow/types/schema.py:49: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
binary = (7, np.dtype("bytes"), "BinaryType", np.object)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/test_gboost_concat.py - KeyError: 'prev_state_x_position_1'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
===================== 30 tests collected, 1 error in 3.34s =====================
<<<PYTHON-EXEC-OUTPUT
Traceback (most recent call last):
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py", line 26, in <module>
runpy.run_path(module, run_name="__main__")
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py", line 22, in <module>
main(tool, cmd, subargs, toolargs)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/adapter/__main__.py", line 99, in main
parents, result = run(toolargs, **subargs)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 44, in discover
raise Exception("pytest discovery failed (exit code {})".format(ec))
Exception: pytest discovery failed (exit code 2)
ERROR conda.cli.main_run:execute(49): `conda run python /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir /home/alizaidi/bonsai/datadrivenmodel -s --cache-clear tests` failed. (See above for error)
```bash ❯ echo $ComSpec; echo $VIRTUAL_ENV; echo $CONDA_SHLVL 3
Where did 3 come from?
hmm that is coming from CONDA_SHLVL
...
hmm that is coming from CONDA_SHLVL...
Well that suggests that the conda environment has not been deactivated successfully, before running the conda run
command. Try the first approach mentioned in https://github.com/microsoft/vscode-python/issues/19069#issuecomment-1233420828 to get a deactivated terminal, and then attempt to run the command. The value of CONDA_SHLVL
should be 0 if the terminal is deactivated.
I'm expecting to see the same error: EnvironmentLocationNotFound: Not a conda environment: /anaconda/envs/ddm/envs/ddm
in the terminal, after which we can raise this bug with conda.
Thanks for all the help!
@akzaidi I tried with codespaces but I'm successfully able to discover the tests:
All I did was create 16 core machine, run:
conda env update -f environment.yml
conda init --all
<close shell and reopen>
conda activate ddm
then created an .env
file with:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
reload the window and tests were discovered.
then created an
.env
file with:PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
aha, I was also able to get tests discovered on codespaces when creating the .env
file with the PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION
variable. Why is this necessary?
Unfortunately, I'm still hitting the same error locally. I added the "python.terminal.activateEnvironment": false
to my settings file and then had to deactivate conda twice in order to set $CONDA_SHLVL
to zero. Running conda run
after that did work, but tests still were not discovered by the extension.
and then had to deactivate conda twice in order to set $CONDA_SHLVL to zero.
Interesting, so it would seem the environment is already activated in the bash terminal (You've probably have set .bashrc
or .bashprofile
which does this, or some User setting in VSCode). Let's skip this step. I think $CONDA_SHLVL
would be 2. Just open a new terminal and then attempt to run the conda run
command.
Note we're trying to replicate the same error in terminal under the same conditions, so that we can take the Python extension out of the picture and only focus on the command. Python extension internally simply launches the /bin/sh
terminal and runs the conda run
command.
Please also send me your User settings.
aha, I was also able to get tests discovered on codespaces when creating the .env file with the PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION variable. Why is this necessary?
That's the environment variable the error told me to set, it can be done via environments definitions file in the Python extension.
hmm, sometimes the env variable is set to 3 instead of 2... Not sure what to make of that.
In a new terminal running conda run
:
alizaidi in azdevrl in datadrivenmodel on alizaidi/lag_improvements [?] via 🐍 v3.7.4 via 📐 v3.6.3
❯ conda activate ddm
alizaidi in azdevrl in datadrivenmodel on alizaidi/lag_improvements [?] via 🐍 v3.7.7 via 📐 v3.6.3 via 🅒 ddm
❯ echo $CONDA_SHLVL
3
alizaidi in azdevrl in datadrivenmodel on alizaidi/lag_improvements [?] via 🐍 v3.7.7 via 📐 v3.6.3 via 🅒 ddm
❯ conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir ~/bonsai/datadrivenmodel -s --cache-clear tests
>>>PYTHON-EXEC-OUTPUT
equivalent command: /anaconda/envs/ddm/bin/python -m pytest --collect-only --rootdir /home/alizaidi/bonsai/datadrivenmodel -s --cache-clear tests
============================= test session starts ==============================
platform linux -- Python 3.7.7, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/alizaidi/bonsai/datadrivenmodel
plugins: anyio-3.4.0, clarity-1.0.1, hydra-core-1.0.5
collected 30 items / 1 error
<Package tests>
<Module test_dataclass.py>
<Function test_cartpole_at_st1>
<Function test_cartpole_at_st>
<Function test_diff_labels_1>
<Function test_diff_labels_2>
<Function test_concatenate_states_1>
<Function test_concatenate_states_2>
<Function test_concatenate_states_3>
<Module test_gboost.py>
<Function test_shape>
<Function test_lgm_train>
<Function test_xgb_train>
<Module test_gboost_diff.py>
<Function test_shape>
<Function test_lgm_train>
<Function test_xgb_train>
<Module test_loaders.py>
<Function test_cartpole_at_st1>
<Function test_cartpole_at_st>
<Function test_base_reader>
<Function test_diff_names>
<Module test_pytorch_model.py>
<Function test_shape>
<Function test_build>
<Function test_fit>
<Function test_sweep>
<Function test_predictor>
<Function test_save_model>
<Module test_sklearn.py>
<Function test_shape>
<Function test_svm_train>
<Function test_linear_train>
<Function test_gbr_train>
<Module test_sweeping.py>
<Function test_sweeping_lightgbm>
<Function test_sweeping_svr>
<Function test_sweeping_xgboost>
==================================== ERRORS ====================================
_________________ ERROR collecting tests/test_gboost_concat.py _________________
/anaconda/envs/ddm/lib/python3.7/site-packages/pandas/core/indexes/base.py:3361: in get_loc
return self._engine.get_loc(casted_key)
pandas/_libs/index.pyx:76: in pandas._libs.index.IndexEngine.get_loc
???
pandas/_libs/index.pyx:108: in pandas._libs.index.IndexEngine.get_loc
???
pandas/_libs/hashtable_class_helper.pxi:5198: in pandas._libs.hashtable.PyObjectHashTable.get_item
???
pandas/_libs/hashtable_class_helper.pxi:5206: in pandas._libs.hashtable.PyObjectHashTable.get_item
???
E KeyError: 'prev_state_x_position_1'
The above exception was the direct cause of the following exception:
tests/test_gboost_concat.py:17: in <module>
concatenated_zero_padding=True,
base.py:243: in load_csv
concatenate_var_length=concatenate_var_length,
dataclass.py:376: in load_csv
aux_df = self.df_concatenate_inputs(df)
dataclass.py:875: in df_concatenate_inputs
feat_array = df[feat].values
/anaconda/envs/ddm/lib/python3.7/site-packages/pandas/core/frame.py:3458: in __getitem__
indexer = self.columns.get_loc(key)
/anaconda/envs/ddm/lib/python3.7/site-packages/pandas/core/indexes/base.py:3363: in get_loc
raise KeyError(key) from err
E KeyError: 'prev_state_x_position_1'
=============================== warnings summary ===============================
../../../../anaconda/envs/ddm/lib/python3.7/site-packages/pkg_resources/__init__.py:1131
/anaconda/envs/ddm/lib/python3.7/site-packages/pkg_resources/__init__.py:1131: DeprecationWarning: Use of .. or absolute path in a resource path is not allowed and will raise exceptions in a future release.
self, resource_name
../../../../anaconda/envs/ddm/lib/python3.7/site-packages/mlflow/types/schema.py:49
/anaconda/envs/ddm/lib/python3.7/site-packages/mlflow/types/schema.py:49: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
binary = (7, np.dtype("bytes"), "BinaryType", np.object)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/test_gboost_concat.py - KeyError: 'prev_state_x_position_1'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
===================== 30 tests collected, 1 error in 3.32s =====================
<<<PYTHON-EXEC-OUTPUT
Traceback (most recent call last):
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py", line 26, in <module>
runpy.run_path(module, run_name="__main__")
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py", line 22, in <module>
main(tool, cmd, subargs, toolargs)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/adapter/__main__.py", line 99, in main
parents, result = run(toolargs, **subargs)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 44, in discover
raise Exception("pytest discovery failed (exit code {})".format(ec))
Exception: pytest discovery failed (exit code 2)
ERROR conda.cli.main_run:execute(49): `conda run python /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir /home/alizaidi/bonsai/datadrivenmodel -s --cache-clear tests` failed. (See above for error)
My user settings:
{
"tabnine.experimentalAutoImports": true,
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.cursorStyle": "line",
"editor.lineNumbers": "on",
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"workbench.panel.defaultLocation": "right",
"markdownlint.customRules": [
"{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js"
],
"markdownlint.config": {
"MD028": false,
"MD025": {
"front_matter_title": ""
}
},
"workbench.colorTheme": "Pitch Black",
// "todo-tree.general.tags": [
// "BUG",
// "HACK",
// "FIXME",
// "TODO",
// "XXX",
// "[ ]",
// // "[x]"
// ],
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS)",
"yaml.schemas": {
"file:///toc.schema.json": "/toc\\.yml/i"
},
// "git.autofetch": true
"editor.wordWrap": "on",
"vim.useSystemClipboard": true,
"vim.hlsearch": true,
"vim.insertModeKeyBindings": [
{
"before": [
"j",
"j"
],
"after": [
"<Esc>"
]
}
],
"vim.handleKeys": {
"<C-w>": false,
"<C-k>": false,
"<C-a>": false,
"<C-f>": false,
"<C-b>": false,
"<C-n>": false,
},
"vim.visualstar": true,
"editor.minimap.enabled": true,
"editor.rulers": [
80,
120
],
"explorer.openEditors.visible": 10,
"autoDocstring.docstringFormat": "numpy",
"[markdown]": {
"editor.quickSuggestions": {
"comments": "on",
"strings": "on",
"other": "on"
},
"editor.defaultFormatter": "yzhang.markdown-all-in-one",
"editor.tabSize": 2
},
"git.autofetch": true,
"workbench.editor.showTabs": true,
"breadcrumbs.symbolPath": "on",
"gitlens.keymap": "chorded",
"gitlens.views.fileHistory.enabled": true,
"files.eol": "\n",
"editor.fontLigatures": true,
"editor.fontFamily": "Fira Code",
"editor.suggestSelection": "first",
"files.associations": {
"*.rmd": "markdown"
},
"editor.quickSuggestions": {
"strings": true,
"comments": true,
"other": true
},
"tabnine.disable_file_regex": [
"[.]md$",
"[.]Rmd$"
],
// "tabnine.disable_file_regex": ["[.]md$", "[.]Rmd$"],
"clock.alignment": "Right",
"clock.format": "dddd, mmmm dd, HH:MM:ss",
"explorer.confirmDragAndDrop": false,
"markdown.preview.breaks": true,
"git.confirmSync": false,
"workbench.tree.indent": 18,
"markdown-preview-enhanced.frontMatterRenderingOption": "table",
"workbench.colorCustomizations": {
"statusBar.background": "#1b1b1b",
"statusBar.foreground": "#db68a2",
"statusBar.debuggingBackground": "#1d043d",
"statusBar.debuggingForeground": "#d4d490",
"editorLineNumber.activeForeground": "#494747",
"editorLineNumber.foreground": "#818181",
"activityBarBadge.background": "#388E3C",
"list.activeSelectionForeground": "#388E3C",
"list.inactiveSelectionForeground": "#388E3C",
"list.highlightForeground": "#388E3C",
"scrollbarSlider.activeBackground": "#388E3C50",
"editorSuggestWidget.highlightForeground": "#388E3C",
"textLink.foreground": "#388E3C",
"progressBar.background": "#388E3C",
"pickerGroup.foreground": "#388E3C",
"tab.activeBorder": "#388E3C",
"notificationLink.foreground": "#388E3C",
"editorWidget.resizeBorder": "#388E3C",
"editorWidget.border": "#388E3C",
"settings.modifiedItemIndicator": "#388E3C",
"settings.headerForeground": "#388E3C",
"panelTitle.activeBorder": "#388E3C",
"breadcrumb.activeSelectionForeground": "#388E3C",
"menu.selectionForeground": "#388E3C",
"menubar.selectionForeground": "#388E3C",
"editor.findMatchBorder": "#388E3C",
"selection.background": "#388E3C40"
},
"markdown.preview.fontFamily": "Fira Code",
"markdown.preview.fontSize": 13,
"editor.tokenColorCustomizations": {
"comments": "#7a7a7a",
"textMateRules": [
{
"scope": "string.quoted.docstring.multi.python",
"settings": {
"foreground": "#fcba03" //change to your preference
}
}
]
},
"plantuml.server": "https://www.plantuml.com/plantuml",
"workbench.statusBar.visible": true,
"workbench.activityBar.visible": true,
"sync.gist": "20ccc1e6baab85027bc6f5c23e813644",
"terminal.integrated.inheritEnv": true,
"diffEditor.ignoreTrimWhitespace": false,
"markdown-preview-enhanced.enableExtendedTableSyntax": true,
"markdown-preview-enhanced.enableScriptExecution": true,
"markdown-preview-enhanced.enableTypographer": true,
"terminal.integrated.showExitAlert": false,
"todo-tree.tree.showScanModeButton": false,
"todo-tree.general.tagGroups": {
"DEBUG": [
"BUG",
"DEBUG",
"BUGGY",
],
"FIXME": [
"FIXME",
"FIX"
],
"REVIEW": [
"REVIEW",
"OPTIMIZE",
"UGLY"
]
},
"todo-tree.general.tags": [
"BUG",
"DEBUG",
"END REGION",
"FIX",
"FIXME",
"HACK",
"IDEA",
"NOTE",
"OPTIMIZE",
"REGION",
"REVIEW",
"TODO",
"UGLY",
"[ ]"
// "[x]"
],
// Icon names from https://primer.style/octicons/
"todo-tree.highlights.customHighlight": {
"DEBUG": {
"icon": "bug",
"iconColour": "#cc0000" // Red
},
"END REGION": {
"icon": "fold-up",
"iconColour": "#006600", // Green
"hideFromTree": true, // Regions don't need to be included in the tree
},
"FIXME": {
"icon": "flame",
"iconColour": "#ff8000" // Orange
},
"HACK": {
"icon": "zap", // Alternates: squirrel, cpu
"iconColour": "#9933FF" // Purple
},
"IDEA": {
"icon": "light-bulb",
"iconColour": "#bbbb22" // Yellow
},
"NOTE": {
"icon": "pencil",
"iconColour": "#ff00ff", // Indego
"hideFromTree": true, // Notes don't need to be included in the tree
"gutterIcon": false // No need to see note comments in the gutter
},
"REGION": {
"icon": "fold-down",
"iconColour": "#006600", // Green
"hideFromTree": true, // Regions don't need to be included in the tree
},
"REVIEW": {
"icon": "eye",
"iconColour": "#00ccff" // Aqua
},
"TODO": {
"icon": "check-circle",
"iconColour": "#009900", // Green
},
},
"remote.extensionKind": {
"ms-azuretools.vscode-docker": "workspace"
},
// "python.dataScience.changeDirOnImportExport": true,
// "python.dataScience.notebookFileRoot": "${fileDirname)",
// "python.condaPath": "/anaconda/condabin/conda",
// "python.analysis.downloadChannel": "daily",
// "python.jediEnabled": false,
"latex-workshop.view.pdf.viewer": "tab",
"editor.largeFileOptimizations": false,
"markdown.extension.tableFormatter.normalizeIndentation": true,
"spellright.addToSystemDictionary": true,
"r.sessionWatcher": true,
"julia.enableTelemetry": true,
"sync.autoDownload": true,
"sync.autoUpload": true,
"sync.removeExtensions": false,
"sync.syncExtensions": true,
// "tabnine.experimentalAutoImports": true,
// "r.lsp.path": "/usr/local/bin/R",
"r.rterm.mac": "/Users/alizaidi-msft/miniconda3/bin/radian",
"r.rpath.mac": "/usr/local/bin/R",
"r.alwaysUseActiveTerminal": true,
"r.bracketedPaste": true,
"markdown-preview-enhanced.scrollSync": true,
"python.analysis.diagnosticMode": "workspace",
"python.showStartPage": false,
"python.dataScience.alwaysTrustNotebooks": true,
"python.languageServer": "Pylance",
"python.formatting.provider": "black",
"python.dataScience.askForKernelRestart": false,
"python.dataScience.sendSelectionToInteractiveWindow": true,
"gutterpreview.imagePreviewMaxHeight": 400,
"markdown-preview-enhanced.HTML5EmbedUseLinkSyntax": true,
"sync.quietSync": true,
"editor.formatOnSave": true,
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"cSpell.userWords": [
"discretize",
"multimodality",
"quickstart"
],
"cSpell.enabled": true,
"python.analysis.typeCheckingMode": "basic",
"workbench.iconTheme": "material-icon-theme",
// "markdownlint.customRules": [
// "{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js"
// ],
// "markdownlint.config": {
// "MD028": false
// },
"jupyter.alwaysTrustNotebooks": true,
"editor.accessibilitySupport": "off",
// "yaml.schemas": {
// "file:///toc.schema.json": "/toc\\.yml/i"
// },
"search.useIgnoreFiles": false,
"sync.forceUpload": true,
"jupyter.askForKernelRestart": false,
"sync.forceDownload": true,
"jupyter.insidersChannel": "off",
"terminal.integrated.commandsToSkipShell": [
"language-julia.interrupt"
],
// "workbench.colorTheme": "Pitch Black",
"workbench.startupEditor": "welcomePage",
"footsteps.doHighlightChanges": false,
"foam.graph.style": {
"fontSize": 11,
"lineColor": "#277da1",
"lineWidth": 0.2,
"particleWidth": 1.0,
"highlightedForeground": "#f9c74f",
"node": {
"note": "#277da1",
"placeholder": "#545454",
}
},
// "todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS)",
"githubPullRequests.fileListLayout": "flat",
"jupyter.interactiveWindowMode": "perFile",
"ai.azureml.experimental: V2Config": true,
"jupyter.allowUnauthorizedRemoteConnection": true,
"security.workspace.trust.untrustedFiles": "open",
"editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
"notebook.insertToolbarLocation": "betweenCells",
"notebook.showCellStatusBar": "hidden",
"redhat.telemetry.enabled": false,
"tabnine.receiveBetaChannelUpdates": true,
"editor.inlineSuggest.enabled": true,
"editor.tabCompletion": "on",
"github.copilot.enable": {
"*": true,
"yaml": true,
"plaintext": true,
"markdown": true,
"r": true,
},
"github.copilot.autocomplete.enable": true,
"github.copilot.advanced": {
"debug.autocomplete.showConfidence": true,
},
"julia.symbolCacheDownload": true,
"jupyter.sendSelectionToInteractiveWindow": true,
"jupyter.interactiveWindow.alwaysScrollOnNewCell": true,
"markdown.marp.enableHtml": true,
"jupyter.themeMatplotlibPlots": true,
"jupyter.showVariableViewWhenDebugging": true,
"jupyter.generateSVGPlots": true,
"r.plot.useHttpgd": true,
"editor.stickyScroll.enabled": true,
// "python.terminal.activateEnvironment": false
}
Please don't activate the terminal using conda activate ddm before running the command. Make sure the setting python.terminal.activateEnvironment is set to false.
Okay, I set it to false. Here is the output from running conda run
in the integrated terminal:
alizaidi in azdevrl in datadrivenmodel on alizaidi/lag_improvements [?] via 🐍 v3.7.4 via 📐 v3.6.3
❯ echo $CONDA_SHLVL
2
alizaidi in azdevrl in datadrivenmodel on alizaidi/lag_improvements [?] via 🐍 v3.7.4 via 📐 v3.6.3
❯
alizaidi in azdevrl in datadrivenmodel on alizaidi/lag_improvements [?] via 🐍 v3.7.4 via 📐 v3.6.3
❯ conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir ~/bonsai/datadrivenmodel -s --cache-clear tests
>>>PYTHON-EXEC-OUTPUT
equivalent command: /anaconda/envs/ddm/bin/python -m pytest --collect-only --rootdir /home/alizaidi/bonsai/datadrivenmodel -s --cache-clear tests
============================= test session starts ==============================
platform linux -- Python 3.7.7, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/alizaidi/bonsai/datadrivenmodel
plugins: anyio-3.4.0, clarity-1.0.1, hydra-core-1.0.5
collected 30 items / 1 error
<Package tests>
<Module test_dataclass.py>
<Function test_cartpole_at_st1>
<Function test_cartpole_at_st>
<Function test_diff_labels_1>
<Function test_diff_labels_2>
<Function test_concatenate_states_1>
<Function test_concatenate_states_2>
<Function test_concatenate_states_3>
<Module test_gboost.py>
<Function test_shape>
<Function test_lgm_train>
<Function test_xgb_train>
<Module test_gboost_diff.py>
<Function test_shape>
<Function test_lgm_train>
<Function test_xgb_train>
<Module test_loaders.py>
<Function test_cartpole_at_st1>
<Function test_cartpole_at_st>
<Function test_base_reader>
<Function test_diff_names>
<Module test_pytorch_model.py>
<Function test_shape>
<Function test_build>
<Function test_fit>
<Function test_sweep>
<Function test_predictor>
<Function test_save_model>
<Module test_sklearn.py>
<Function test_shape>
<Function test_svm_train>
<Function test_linear_train>
<Function test_gbr_train>
<Module test_sweeping.py>
<Function test_sweeping_lightgbm>
<Function test_sweeping_svr>
<Function test_sweeping_xgboost>
==================================== ERRORS ====================================
_________________ ERROR collecting tests/test_gboost_concat.py _________________
/anaconda/envs/ddm/lib/python3.7/site-packages/pandas/core/indexes/base.py:3361: in get_loc
return self._engine.get_loc(casted_key)
pandas/_libs/index.pyx:76: in pandas._libs.index.IndexEngine.get_loc
???
pandas/_libs/index.pyx:108: in pandas._libs.index.IndexEngine.get_loc
???
pandas/_libs/hashtable_class_helper.pxi:5198: in pandas._libs.hashtable.PyObjectHashTable.get_item
???
pandas/_libs/hashtable_class_helper.pxi:5206: in pandas._libs.hashtable.PyObjectHashTable.get_item
???
E KeyError: 'prev_state_x_position_1'
The above exception was the direct cause of the following exception:
tests/test_gboost_concat.py:17: in <module>
concatenated_zero_padding=True,
base.py:243: in load_csv
concatenate_var_length=concatenate_var_length,
dataclass.py:376: in load_csv
aux_df = self.df_concatenate_inputs(df)
dataclass.py:875: in df_concatenate_inputs
feat_array = df[feat].values
/anaconda/envs/ddm/lib/python3.7/site-packages/pandas/core/frame.py:3458: in __getitem__
indexer = self.columns.get_loc(key)
/anaconda/envs/ddm/lib/python3.7/site-packages/pandas/core/indexes/base.py:3363: in get_loc
raise KeyError(key) from err
E KeyError: 'prev_state_x_position_1'
=============================== warnings summary ===============================
../../../../anaconda/envs/ddm/lib/python3.7/site-packages/pkg_resources/__init__.py:1131
/anaconda/envs/ddm/lib/python3.7/site-packages/pkg_resources/__init__.py:1131: DeprecationWarning: Use of .. or absolute path in a resource path is not allowed and will raise exceptions in a future release.
self, resource_name
../../../../anaconda/envs/ddm/lib/python3.7/site-packages/mlflow/types/schema.py:49
/anaconda/envs/ddm/lib/python3.7/site-packages/mlflow/types/schema.py:49: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
binary = (7, np.dtype("bytes"), "BinaryType", np.object)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/test_gboost_concat.py - KeyError: 'prev_state_x_position_1'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
===================== 30 tests collected, 1 error in 3.38s =====================
<<<PYTHON-EXEC-OUTPUT
Traceback (most recent call last):
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py", line 26, in <module>
runpy.run_path(module, run_name="__main__")
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/anaconda/envs/ddm/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py", line 22, in <module>
main(tool, cmd, subargs, toolargs)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/adapter/__main__.py", line 99, in main
parents, result = run(toolargs, **subargs)
File "/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 44, in discover
raise Exception("pytest discovery failed (exit code {})".format(ec))
Exception: pytest discovery failed (exit code 2)
ERROR conda.cli.main_run:execute(49): `conda run python /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir /home/alizaidi/bonsai/datadrivenmodel -s --cache-clear tests` failed. (See above for error)
Unfortunately, the extension continues to fail at discovering tests:
Experiment 'pythonaa' is active
Experiment 'pythonSurveyNotificationcf' is active
LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
Python interpreter path: /anaconda/envs/ddm/bin/python
> conda info --json
> poetry env list --full-path
cwd: ~/courses/streamlit/streamlit-examples/streamlit_prophet
[ERROR 2022-8-6 23:42:15.805]: [Error: Command failed: poetry env list --full-path
/bin/sh: 1: poetry: not found
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:526:28)
at Pipe.<anonymous> (node:net:687:12)] {
killed: false,
code: 127,
signal: null,
cmd: 'poetry env list --full-path'
}
> /usr/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /usr/bin/python3 ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /usr/include/python3.6 ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /usr/include/python3.7 ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
[ERROR 2022-8-6 23:42:15.906]: [Error: Command failed: /usr/include/python3.6 /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.6: Permission denied
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:526:28)
at Pipe.<anonymous> (node:net:687:12)] {
killed: false,
code: 126,
signal: null,
cmd: '/usr/include/python3.6 /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py'
}
[ERROR 2022-8-6 23:42:15.908]: [Error: Command failed: /usr/include/python3.7 /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.7: Permission denied
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:526:28)
at Pipe.<anonymous> (node:net:687:12)] {
killed: false,
code: 126,
signal: null,
cmd: '/usr/include/python3.7 /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py'
}
> conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
> /anaconda/envs/aisc/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/alae/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/archai/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/audio/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/audiotf2/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/azureml_py36_automl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/azureml_py36_pytorch/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/azureml_py36_tensorflow/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/bonsai/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/bonsai-batch/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/bonsai-preview/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/bonsai-scg-latest/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/brain/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/cleanrl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/clip-dalle/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/clip-featureviz/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/coinbot/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/colab/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/d3rl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/dalle/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/data2sim/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/ddm/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/ddm3/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/dmcontrol/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/dvc/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/hfcourse/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/iglu/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/jpylb/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/jupy/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/mineiglurl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/minerl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/modelcard/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/nlu/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/parsing/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/py37_default/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/py37_pytorch/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/py37_tensorflow/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/ray/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/repsol/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/rl/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/rlex/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/rlydoe/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/sbi/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/timeformers/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /anaconda/envs/torch/bin/python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /bin/bash ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
[ERROR 2022-8-6 23:42:31.569]: Error: Command failed: /bin/bash /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py: line 4: import: command not found
/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py: line 5: import: command not found
/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py: line 10: syntax error near unexpected token `">>>PYTHON-EXEC-OUTPUT"'
/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py: line 10: `print(">>>PYTHON-EXEC-OUTPUT")'
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
killed: false,
code: 2,
signal: null,
cmd: '/bin/bash /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py /home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py'
}
Starting Pylance language server.
> conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
> conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir ~/bonsai/datadrivenmodel -s --cache-clear tests
cwd: ~/bonsai/datadrivenmodel
[ERROR 2022-8-6 23:43:3.162]: Error discovering pytest tests:
n [Error]:
EnvironmentLocationNotFound: Not a conda environment: /anaconda/envs/ddm/envs/ddm
at ChildProcess.<anonymous> (/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/out/client/extension.js:2:240364)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
Python interpreter path: /usr/bin/python3
Starting Pylance language server.
Python interpreter path: /anaconda/envs/ddm/bin/python
> conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
> conda run -n ddm --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir ~/bonsai/datadrivenmodel -s --cache-clear tests
cwd: ~/bonsai/datadrivenmodel
[ERROR 2022-8-7 1:46:17.863]: Error discovering pytest tests:
n [Error]:
EnvironmentLocationNotFound: Not a conda environment: /anaconda/envs/ddm/envs/ddm
at ChildProcess.<anonymous> (/home/alizaidi/.vscode-server-insiders/extensions/ms-python.python-2022.14.0/out/client/extension.js:2:240364)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
Hey everyone, check https://github.com/microsoft/vscode-python/issues/18493#issuecomment-1034458438 out, let me know if you have the same issue.
Hey everyone, check #18493 (comment) out, let me know if you have the same issue.
Hey @karrtikr , got some time to check this today. Can confirm having conda in the environment was causing the test discovery to fail. The environment which I was using had conda=4.12.0=py37h89c1867_0
and after removing it the test discovery succeeds.
I tried install the latest conda-4.14.0-py37h06a4308_0
and latest canary conda-4.14.0+39_gde3db7f75-py37_0
, but the test discovery fails. So the solution for the time being is to remove conda from the environment.
Unfortunately, the issue persists for me in my conda environments, even after removing conda as suggested by #18493. I suppose I should wait to see if #17242 resolves my issue?
@akzaidi Now that we can reproduce it, I'll open an issue on conda. And I'm pretty sure fixing that will also fix your issue.
Btw, can you demonstrate to me that conda is not installed in your environment?
@aaravind100 In order to open an issue on conda, can you help me with the following deets:
conda info
conda config --show-sources
conda list --show-channel-urls
They're needed to file a bug report on conda :)
Hey @karrtikr , so I tried removing and saw it was already removed and I listed the packages in my environment and confirmed conda
was not there. Is there another way of testing that isn't installed in my environment?
Output from both commands:
alizaidi in azdevrl in datadrivenmodel on alizaidi/lag_improvements [!?] via 🐍 v3.8.11 via 📐 v3.6.3 via 🅒 ddm took 22s
❯ conda uninstall -n ddm conda
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are missing from the target environment:
- conda
alizaidi in azdevrl in datadrivenmodel on alizaidi/lag_improvements [!?] via 🐍 v3.8.11 via 📐 v3.6.3 via 🅒 ddm took 13s
❯ conda list
# packages in environment at /anaconda/envs/ddm:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_kmp_llvm conda-forge
absl-py 0.15.0 pypi_0 pypi
aiohttp 3.8.1 py38h7f8727e_1
aiohttp-cors 0.7.0 pypi_0 pypi
aiohttp-retry 2.4.6 pyhd8ed1ab_1 conda-forge
aioredis 2.0.1 pypi_0 pypi
aiosignal 1.2.0 pyhd3eb1b0_0
alembic 1.4.1 pypi_0 pypi
antlr4-python3-runtime 4.8 pypi_0 pypi
appdirs 1.4.4 pyhd3eb1b0_0
argon2-cffi 21.3.0 pyhd3eb1b0_0
argon2-cffi-bindings 21.2.0 py38h7f8727e_0
astunparse 1.6.3 pypi_0 pypi
async-timeout 4.0.2 pypi_0 pypi
asyncssh 2.11.0 pyhd8ed1ab_0 conda-forge
asynctest 0.13.0 py_0
atk-1.0 2.36.0 ha1a6a79_0
atpublic 3.0.1 pyhd8ed1ab_0 conda-forge
attrs 21.4.0 pyhd3eb1b0_0
autopage 0.5.1 pypi_0 pypi
azure-core 1.22.1 pypi_0 pypi
backcall 0.2.0 pyhd3eb1b0_0
black 19.10b0 pypi_0 pypi
blas 1.0 mkl
bleach 4.1.0 pyhd3eb1b0_0
blessed 1.19.1 pypi_0 pypi
boltons 21.0.0 pypi_0 pypi
bonsai-cli 1.0.10 pypi_0 pypi
bzip2 1.0.8 h7b6447c_0
ca-certificates 2022.07.19 h06a4308_0
cached-property 1.5.2 py_0
cachetools 4.2.4 pypi_0 pypi
cairo 1.16.0 h19f5f5c_2
certifi 2022.6.15 py38h06a4308_0
cffi 1.15.1 py38h74dc2b5_0
charset-normalizer 2.0.4 pyhd3eb1b0_0
click 7.1.2 pypi_0 pypi
cliff 4.0.0 pypi_0 pypi
cloudpickle 2.2.0 pypi_0 pypi
cmaes 0.8.2 pypi_0 pypi
cmd2 2.4.2 pypi_0 pypi
colorama 0.4.5 py38h06a4308_0
colorful 0.5.4 pypi_0 pypi
colorlog 6.7.0 pypi_0 pypi
commonmark 0.9.1 pyhd3eb1b0_0
configobj 5.0.6 py38h06a4308_1
contourpy 1.0.5 pypi_0 pypi
cryptography 3.1.1 py38h1ba5d50_0
cycler 0.11.0 pypi_0 pypi
databricks-cli 0.17.3 pypi_0 pypi
dataclasses 0.8 pyh6d0b6a4_7
dbus 1.13.18 hb2f20db_0
decorator 5.1.1 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
deprecated 1.2.13 pypi_0 pypi
dictdiffer 0.9.0 pyhd8ed1ab_0 conda-forge
diskcache 5.4.0 pyhd8ed1ab_0 conda-forge
distro 1.5.0 pyhd3eb1b0_1
docker 6.0.0 pypi_0 pypi
dpath 2.0.6 py38h578d9bd_1 conda-forge
dulwich 0.20.46 py38h0a891b7_0 conda-forge
dvc 2.10.2 py38h578d9bd_0 conda-forge
dvc-render 0.0.5 pyhd8ed1ab_0 conda-forge
dvclive 0.9.0 pyhd8ed1ab_0 conda-forge
entrypoints 0.4 py38h06a4308_0
expat 2.4.4 h295c915_0
filelock 3.8.0 pypi_0 pypi
flask 2.0.3 pypi_0 pypi
flatbuffers 1.12 pypi_0 pypi
flatten-dict 0.4.2 pyhd8ed1ab_1 conda-forge
flufl.lock 7.0 pyhd8ed1ab_0 conda-forge
font-ttf-dejavu-sans-mono 2.37 hd3eb1b0_0
font-ttf-inconsolata 2.001 hcb22688_0
font-ttf-source-code-pro 2.030 hd3eb1b0_0
font-ttf-ubuntu 0.83 h8b1ccd4_0
fontconfig 2.13.1 h6c09931_0
fonts-anaconda 1 h8fa9717_0
fonts-conda-ecosystem 1 hd3eb1b0_0
fonttools 4.37.2 pypi_0 pypi
freetype 2.11.0 h70c0345_0
fribidi 1.0.10 h7b6447c_0
frozenlist 1.2.0 py38h7f8727e_0
fsspec 2022.7.1 py38h06a4308_0
ftfy 6.1.1 pyhd8ed1ab_0 conda-forge
funcy 1.17 pyhd8ed1ab_0 conda-forge
future 0.18.2 py38_1
fuzzywuzzy 0.18.0 pypi_0 pypi
gast 0.3.3 pypi_0 pypi
gdk-pixbuf 2.42.8 h433bba3_0
giflib 5.2.1 h7b6447c_0
gitdb 4.0.7 pyhd3eb1b0_0
gitpython 3.1.18 pyhd3eb1b0_1
glib 2.69.1 h4ff587b_1
gobject-introspection 1.72.0 py38hbb6d50b_0
google-api-core 2.10.1 pypi_0 pypi
google-auth 1.35.0 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
google-pasta 0.2.0 pypi_0 pypi
googleapis-common-protos 1.56.4 pypi_0 pypi
gpustat 1.0.0 pypi_0 pypi
grandalf 0.6 py_0 conda-forge
graphite2 1.3.14 h295c915_1
graphviz 2.50.0 h3cd0ef9_0
greenlet 1.1.3 pypi_0 pypi
grpcio 1.32.0 pypi_0 pypi
gst-plugins-base 1.14.0 h8213a91_2
gstreamer 1.14.0 h28cd5cc_2
gtk2 2.24.33 h73c1081_2
gts 0.7.6 hb67d8dd_3
gunicorn 20.1.0 pypi_0 pypi
h5py 2.10.0 pypi_0 pypi
harfbuzz 4.3.0 hd55b92a_0
hydra-colorlog 1.1.0 pypi_0 pypi
hydra-core 1.0.5 pypi_0 pypi
hyperopt 0.2.5 pypi_0 pypi
icu 58.2 he6710b0_3
idna 3.3 pyhd3eb1b0_0
importlib-metadata 4.11.3 py38h06a4308_0
importlib_metadata 4.11.3 hd3eb1b0_0
importlib_resources 5.8.0 pyhd8ed1ab_0 conda-forge
iniconfig 1.1.1 pyhd3eb1b0_0
intel-openmp 2021.4.0 h06a4308_3561
ipykernel 5.3.4 py38h5ca1d4c_0
ipython 7.22.0 py38hb070fc8_0
ipython_genutils 0.2.0 pyhd3eb1b0_1
ipywidgets 7.6.3 pyhd3eb1b0_1
isodate 0.6.1 pypi_0 pypi
itsdangerous 2.1.2 pypi_0 pypi
jedi 0.17.0 py38_0
jinja2 3.0.3 pyhd3eb1b0_0
joblib 0.17.0 pypi_0 pypi
jpeg 9e h7f8727e_0
jsonschema 4.4.0 py38h06a4308_0
jupyter 1.0.0 py38_7
jupyter_client 7.3.5 py38h06a4308_0
jupyter_console 6.4.3 pyhd3eb1b0_0
jupyter_core 4.10.0 py38h06a4308_0
jupyterlab_pygments 0.1.2 py_0
jupyterlab_widgets 1.0.0 pyhd3eb1b0_1
keras 2.4.3 pypi_0 pypi
keras-preprocessing 1.1.2 pypi_0 pypi
keyutils 1.6.1 h166bdaf_0 conda-forge
kiwisolver 1.4.4 pypi_0 pypi
krb5 1.19.3 h3790be6_0 conda-forge
lcms2 2.12 h3be6417_0
ld_impl_linux-64 2.38 h1181459_1
lerc 3.0 h295c915_0
libblas 3.9.0 8_mkl conda-forge
libcblas 3.9.0 8_mkl conda-forge
libclang 10.0.1 default_hb85057a_2
libdeflate 1.8 h7f8727e_5
libedit 3.1.20210910 h7f8727e_0
libevent 2.1.12 h8f2d780_0
libffi 3.3 he6710b0_2
libgcc-ng 12.1.0 h8d9b700_16 conda-forge
libgd 2.3.3 h695aa2c_1
libgit2 1.4.3 h6529ace_0 conda-forge
libgomp 12.1.0 h8d9b700_16 conda-forge
liblapack 3.9.0 8_mkl conda-forge
libllvm10 10.0.1 hbcb73fb_5
libpng 1.6.37 hbc83047_0
libpq 12.9 h16c4e8d_3
libprotobuf 3.16.0 h780b84a_0 conda-forge
librsvg 2.54.4 h19fe530_0
libsodium 1.0.18 h7b6447c_0
libssh2 1.10.0 h8f2d780_0
libstdcxx-ng 11.2.0 h1234567_1
libtiff 4.4.0 hecacb30_0
libtool 2.4.6 h295c915_1008
libuuid 1.0.3 h7f8727e_2
libwebp 1.2.2 h55f646e_0
libwebp-base 1.2.2 h7f8727e_0
libxcb 1.15 h7f8727e_0
libxkbcommon 1.0.1 hfa300c1_0
libxml2 2.9.14 h74e7548_0
libxslt 1.1.35 h4e12654_0
libzlib 1.2.12 h166bdaf_1 conda-forge
lightgbm 3.2.1 pypi_0 pypi
llvm-openmp 14.0.6 h9e868ea_0
lz4-c 1.9.3 h295c915_1
mailchecker 4.1.17 pyhd8ed1ab_0 conda-forge
mako 1.2.2 pypi_0 pypi
markdown 3.4.1 pypi_0 pypi
markupsafe 2.1.1 py38h7f8727e_0
matplotlib 3.6.0 pypi_0 pypi
microsoft-bonsai-api 0.1.3 pypi_0 pypi
mistune 0.8.4 py38h7b6447c_1000
mkl 2020.4 h726a3e6_304 conda-forge
mlflow 1.15.0 pypi_0 pypi
msal 1.4.3 pypi_0 pypi
msal-extensions 0.2.2 pypi_0 pypi
msgpack 1.0.4 pypi_0 pypi
msrest 0.6.21 pypi_0 pypi
multidict 5.2.0 py38h5eee18b_3
nanotime 0.5.2 py_0 conda-forge
natsort 7.1.0 pypi_0 pypi
nbconvert 5.6.1 py38_0
nbformat 5.1.3 pyhd3eb1b0_0
nbgrader 0.6.1 pypi_0 pypi
ncurses 6.3 h5eee18b_3
nest-asyncio 1.5.5 py38h06a4308_0
networkx 2.6.3 pyhd3eb1b0_0
ninja 1.10.2 h06a4308_5
ninja-base 1.10.2 hd09550d_5
notebook 6.4.12 py38h06a4308_0
nspr 4.33 h295c915_0
nss 3.74 h0370c37_0
numpy 1.19.5 pypi_0 pypi
nvidia-ml-py 11.495.46 pypi_0 pypi
oauthlib 3.2.1 pypi_0 pypi
omegaconf 2.0.6 pypi_0 pypi
opencensus 0.11.0 pypi_0 pypi
opencensus-context 0.1.3 pypi_0 pypi
opencensus-ext-azure 1.0.8 pypi_0 pypi
openssl 1.1.1q h7f8727e_0
opt-einsum 3.3.0 pypi_0 pypi
optuna 2.6.0 pypi_0 pypi
packaging 21.3 pyhd3eb1b0_0
pandas 1.1.4 pypi_0 pypi
pandoc 2.12 h06a4308_0
pandocfilters 1.5.0 pyhd3eb1b0_0
pango 1.50.7 h05da053_0
parso 0.8.3 pyhd3eb1b0_0
pastel 0.2.1 pypi_0 pypi
pathlib2 2.3.6 py38h06a4308_2
pathspec 0.9.0 py38h06a4308_0
pbr 5.10.0 pypi_0 pypi
pcre 8.45 h295c915_0
pcre2 10.37 he7ceb23_1
pexpect 4.8.0 pyhd3eb1b0_3
phonenumbers 8.12.27 pyhd3eb1b0_0
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 9.2.0 py38hace64e9_1
pip 21.0.1 py38h06a4308_0
pixman 0.40.0 h7f8727e_1
plotly 4.14.3 pypi_0 pypi
pluggy 0.13.1 pypi_0 pypi
ply 3.11 py38_0
poethepoet 0.10.0 pypi_0 pypi
portalocker 1.7.1 pypi_0 pypi
prettytable 3.4.1 pypi_0 pypi
prometheus-flask-exporter 0.20.3 pypi_0 pypi
prometheus_client 0.14.1 py38h06a4308_0
prompt-toolkit 3.0.20 pyhd3eb1b0_0
prompt_toolkit 3.0.20 hd3eb1b0_0
protobuf 4.21.6 pypi_0 pypi
psutil 5.9.0 py38h5eee18b_0
ptyprocess 0.7.0 pyhd3eb1b0_2
py 1.11.0 pyhd3eb1b0_0
py-spy 0.3.14 pypi_0 pypi
pyaml 21.10.1 pypi_0 pypi
pyasn1 0.4.8 pyhd3eb1b0_0
pyasn1-modules 0.2.8 pypi_0 pypi
pycparser 2.21 pyhd3eb1b0_0
pydeprecate 0.3.1 pypi_0 pypi
pydot 1.4.1 py38h06a4308_0
pygit2 1.9.2 py38h0a891b7_0 conda-forge
pygments 2.11.2 pyhd3eb1b0_0
pygtrie 2.4.2 pyhd3deb0d_0 conda-forge
pyjwt 1.7.1 pypi_0 pypi
pyopenssl 20.0.1 pyhd3eb1b0_1
pyparsing 2.4.7 pyhd3eb1b0_0
pyperclip 1.8.2 pypi_0 pypi
pyqt 5.15.7 py38h6a678d5_1
pyqt5-sip 12.11.0 py38h6a678d5_1
pyrsistent 0.18.0 py38heee7806_0
pysocks 1.7.1 py38h06a4308_0
pytest 6.2.1 pypi_0 pypi
python 3.8.11 h12debd9_0_cpython
python-benedict 0.25.1 pyhd8ed1ab_0 conda-forge
python-dateutil 2.8.2 pyhd3eb1b0_0
python-dotenv 0.15.0 pypi_0 pypi
python-editor 1.0.4 pypi_0 pypi
python-fsutil 0.6.1 pyhd8ed1ab_0 conda-forge
python-gssapi 1.8.1 py38hf949b76_0 conda-forge
python-slugify 6.1.2 pyhd8ed1ab_0 conda-forge
python_abi 3.8 2_cp38 conda-forge
pytorch-lightning 1.5.10 pypi_0 pypi
pytz 2022.2.1 pypi_0 pypi
pyyaml 5.3.1 pypi_0 pypi
pyzmq 23.2.0 py38h6a678d5_0
qt-main 5.15.2 h327a75a_7
qt-webengine 5.15.9 hd2b0992_4
qtconsole 4.6.0 py_1
qtwebkit 5.212 h4eab89a_4
querystring-parser 1.2.4 pypi_0 pypi
ray 1.2.0 pypi_0 pypi
readline 8.1.2 h7f8727e_1
redis 4.3.4 pypi_0 pypi
regex 2022.9.13 pypi_0 pypi
requests 2.28.1 py38h06a4308_0
requests-oauthlib 1.3.1 pypi_0 pypi
requests-toolbelt 0.9.1 pypi_0 pypi
retrying 1.3.3 pypi_0 pypi
rich 9.13.0 pypi_0 pypi
rsa 4.9 pypi_0 pypi
ruamel.yaml 0.17.21 py38h0a891b7_1 conda-forge
ruamel.yaml.clib 0.2.6 py38h7f8727e_0
scikit-learn 0.23.2 pypi_0 pypi
scikit-optimize 0.8.1 pypi_0 pypi
scipy 1.5.4 pypi_0 pypi
scmrepo 0.0.19 pyhd8ed1ab_0 conda-forge
seaborn 0.11.1 pypi_0 pypi
send2trash 1.8.0 pyhd3eb1b0_1
setuptools 59.5.0 pypi_0 pypi
shortuuid 1.0.9 pyha770c72_1 conda-forge
shtab 1.5.5 pyhd8ed1ab_0 conda-forge
sip 6.6.2 py38h6a678d5_0
six 1.15.0 pypi_0 pypi
sklearn 0.0 pypi_0 pypi
skorch 0.9.0 pypi_0 pypi
sleef 3.5.1 h9b69904_2 conda-forge
smmap 4.0.0 pyhd3eb1b0_0
soupsieve 2.3.1 pyhd3eb1b0_0
sqlalchemy 1.4.41 pypi_0 pypi
sqlite 3.39.2 h5082296_0
sqlparse 0.4.2 pypi_0 pypi
stevedore 4.0.0 pypi_0 pypi
tabulate 0.8.10 py38h06a4308_0
tensorboard 2.5.0 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
tensorboardx 2.2 pypi_0 pypi
tensorflow 2.4.1 pypi_0 pypi
tensorflow-estimator 2.4.0 pypi_0 pypi
termcolor 1.1.0 pypi_0 pypi
terminado 0.13.1 py38h06a4308_0
testpath 0.6.0 py38h06a4308_0
text-unidecode 1.3 pyhd3eb1b0_0
threadpoolctl 3.1.0 pypi_0 pypi
tk 8.6.12 h1ccaba5_0
toml 0.10.2 pyhd3eb1b0_0
tomlkit 0.11.4 pypi_0 pypi
torch 1.12.1 pypi_0 pypi
torchcde 0.2.5 pypi_0 pypi
torchdiffeq 0.2.2 pypi_0 pypi
torchdyn 1.0.1 pypi_0 pypi
torchmetrics 0.9.3 pypi_0 pypi
torchsde 0.2.5 pypi_0 pypi
torchvision 0.9.0 py38h3f3a366_0_cpu conda-forge
tornado 6.2 py38h5eee18b_0
tqdm 4.64.0 py38h06a4308_0
traitlets 5.1.1 pyhd3eb1b0_0
trampoline 0.1.2 pypi_0 pypi
tune-sklearn 0.2.1 pypi_0 pypi
typed-ast 1.5.4 pypi_0 pypi
typing-extensions 3.7.4.3 pypi_0 pypi
unidecode 1.2.0 pyhd3eb1b0_0
urllib3 1.26.12 pypi_0 pypi
voluptuous 0.13.1 pyhd8ed1ab_0 conda-forge
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 py38_1
websocket-client 1.4.1 pypi_0 pypi
werkzeug 2.2.2 pypi_0 pypi
wheel 0.37.1 pyhd3eb1b0_0
widgetsnbextension 3.5.2 py38h06a4308_0
wrapt 1.12.1 pypi_0 pypi
xgboost 1.3.1 pypi_0 pypi
xmltodict 0.12.0 pyhd3eb1b0_0
xz 5.2.5 h7f8727e_1
yaml 0.2.5 h7b6447c_0
yarl 1.8.1 py38h5eee18b_0
zc.lockfile 2.0 pyhd3eb1b0_0
zeromq 4.3.4 h2531618_0
zipp 3.8.0 py38h06a4308_0
zlib 1.2.12 h166bdaf_1 conda-forge
zstd 1.5.2 ha4553b6_0
@akzaidi Thanks! Your issue on the surface seems different but the cause should still be the same, and so will be fixed with conda issue.
@aaravind100 In order to open an issue on conda, can you help me with the following deets:
* `conda info` * `conda config --show-sources` * `conda list --show-channel-urls`
They're needed to file a bug report on conda :)
Just updated to 22.9.0
, the issue still persists. Here's the info below.
(dev162) pytest_explore ~> conda info
active environment : dev162
active env location : /home/aravia1/miniconda3/envs/dev162
shell level : 1
user config file : /home/aravia1/.condarc
populated config files : /home/aravia1/.condarc
conda version : 22.9.0
conda-build version : not installed
python version : 3.9.12.final.0
virtual packages : __cuda=11.6=0
__linux=5.15.57.1=0
__glibc=2.35=0
__unix=0=0
__archspec=1=x86_64
base environment : /home/aravia1/miniconda3 (writable)
conda av data dir : /home/aravia1/miniconda3/etc/conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /home/aravia1/miniconda3/pkgs
/home/aravia1/.conda/pkgs
envs directories : /home/aravia1/miniconda3/envs
/home/aravia1/.conda/envs
platform : linux-64
user-agent : conda/22.9.0 requests/2.28.1 CPython/3.9.12 Linux/5.15.57.1-microsoft-standard-WSL2 ubuntu/22.04.1 glibc/2.35
UID:GID : 1000:1000
netrc file : None
offline mode : False
(dev162) pytest_explore ~> conda config --show-sources
==> /home/aravia1/.condarc <==
auto_activate_base: False
ssl_verify: False
(dev162) pytest_explore ~> conda list --show-channel-urls
# packages in environment at /home/aravia1/miniconda3/envs/dev162:
#
# Name Version Build Channel
_libgcc_mutex 0.1 main conda-forge
absl-py 1.0.0 pypi_0 pypi
adal 1.2.7 pypi_0 pypi
adlfs 2021.8.2 pypi_0 pypi
aiobotocore 1.4.2 pypi_0 pypi
aiohttp 3.8.1 pypi_0 pypi
aioitertools 0.8.0 pypi_0 pypi
aiosignal 1.2.0 pypi_0 pypi
alembic 1.5.8 pypi_0 pypi
appdirs 1.4.4 pypi_0 pypi
argon2-cffi 21.3.0 pypi_0 pypi
argon2-cffi-bindings 21.2.0 pypi_0 pypi
asn1crypto 1.5.1 pypi_0 pypi
async-timeout 4.0.2 pypi_0 pypi
asynctest 0.13.0 pypi_0 pypi
attrs 21.4.0 pypi_0 pypi
azure-common 1.1.28 pypi_0 pypi
azure-core 1.22.1 pypi_0 pypi
azure-datalake-store 0.0.52 pypi_0 pypi
azure-identity 1.10.0 pypi_0 pypi
azure-keyvault-secrets 4.4.0 pypi_0 pypi
azure-storage-blob 12.11.0 pypi_0 pypi
backcall 0.2.0 pypi_0 pypi
beautifulsoup4 4.11.1 pypi_0 pypi
black 20.8b0 pypi_0 pypi
bleach 5.0.0 pypi_0 pypi
blosc 1.18.1 he1b5a44_0 conda-forge
bokeh 2.0.1 py37hc8dfbb8_0 conda-forge
boto3 1.17.106 pypi_0 pypi
botocore 1.20.106 pypi_0 pypi
bottleneck 1.3.2 py37h161383b_2 conda-forge
ca-certificates 2021.10.8 ha878542_0 conda-forge
cachetools 4.2.4 pypi_0 pypi
certifi 2021.10.8 py37h89c1867_2 conda-forge
cffi 1.12.3 py37h2e261b9_0 defaults
chardet 3.0.4 py37_1003 conda-forge
charset-normalizer 2.0.12 pypi_0 pypi
click 8.0.4 py37h89c1867_0 conda-forge
cloudpickle 2.0.0 pypi_0 pypi
conda 4.12.0 py37h89c1867_0 conda-forge
conda-package-handling 1.6.0 py37h7b6447c_0 defaults
cryptography 3.3.2 pypi_0 pypi
cycler 0.11.0 pyhd8ed1ab_0 conda-forge
cython 0.29.28 pypi_0 pypi
cytoolz 0.10.1 py37h516909a_0 conda-forge
dask 2021.11.2 pyhd8ed1ab_0 conda-forge
dask-core 2021.11.2 pyhd8ed1ab_0 conda-forge
dask-glm 0.2.0 py_1 conda-forge
dask-ml 1.9.0 pyhd8ed1ab_0 conda-forge
dbus 1.13.6 hfdff14a_1 conda-forge
debugpy 1.6.0 pypi_0 pypi
decorator 5.1.1 pypi_0 pypi
deepdiff 5.8.0 pypi_0 pypi
defusedxml 0.7.1 pypi_0 pypi
deprecated 1.2.13 pypi_0 pypi
distributed 2021.11.2 py37h89c1867_0 conda-forge
docstring-parser 0.14.1 pypi_0 pypi
entrypoints 0.4 pypi_0 pypi
et-xmlfile 1.1.0 pypi_0 pypi
expat 2.2.9 he1b5a44_2 conda-forge
fastapi 0.67.0 pypi_0 pypi
fastjsonschema 2.15.3 pypi_0 pypi
fire 0.4.0 pypi_0 pypi
flake8 4.0.1 pypi_0 pypi
flatbuffers 2.0 pypi_0 pypi
fontconfig 2.13.1 he4413a7_1000 conda-forge
freetype 2.10.1 he06d7ca_0 conda-forge
frozenlist 1.3.0 pypi_0 pypi
fsspec 2021.8.1 pypi_0 pypi
future 0.18.2 pypi_0 pypi
gcsfs 2021.8.1 pypi_0 pypi
geos 3.8.1 he1b5a44_0 conda-forge
gettext 0.19.8.1 hf34092f_1004 conda-forge
gitdb 4.0.9 pypi_0 pypi
gitpython 3.1.27 pypi_0 pypi
glib 2.66.3 h58526e2_0 conda-forge
google-api-core 2.7.3 pypi_0 pypi
google-api-python-client 1.12.11 pypi_0 pypi
google-auth 1.35.0 pypi_0 pypi
google-auth-httplib2 0.1.0 pypi_0 pypi
google-auth-oauthlib 0.5.1 pypi_0 pypi
google-cloud-core 2.3.0 pypi_0 pypi
google-cloud-storage 1.44.0 pypi_0 pypi
google-crc32c 1.3.0 pypi_0 pypi
google-resumable-media 2.3.2 pypi_0 pypi
googleapis-common-protos 1.56.0 pypi_0 pypi
greenlet 1.1.2 pypi_0 pypi
grpcio 1.41.1 pypi_0 pypi
grpcio-tools 1.41.1 pypi_0 pypi
gst-plugins-base 1.14.5 h0935bb2_2 conda-forge
gstreamer 1.14.5 h36ae1b5_2 conda-forge
heapdict 1.0.1 py_0 conda-forge
httplib2 0.20.4 pypi_0 pypi
humanfriendly 8.2 pypi_0 pypi
icu 58.2 hf484d3e_1000 conda-forge
idna 2.8 py37_0 defaults
imbalanced-learn 0.9.0 pypi_0 pypi
imblearn 0.0 pypi_0 pypi
importlib-metadata 4.2.0 pypi_0 pypi
importlib-resources 5.7.1 pypi_0 pypi
inflection 0.5.1 pypi_0 pypi
iniconfig 1.1.1 pypi_0 pypi
ipykernel 6.13.0 pypi_0 pypi
ipython 7.33.0 pypi_0 pypi
ipython-genutils 0.2.0 pypi_0 pypi
isodate 0.6.1 pypi_0 pypi
jedi 0.18.1 pypi_0 pypi
jinja2 3.0.3 pypi_0 pypi
jmespath 0.10.0 pypi_0 pypi
joblib 1.1.0 pyhd8ed1ab_0 conda-forge
jpeg 9c h14c3975_1001 conda-forge
jsonschema 3.2.0 pypi_0 pypi
jupyter-client 7.3.0 pypi_0 pypi
jupyter-core 4.10.0 pypi_0 pypi
jupyterlab-pygments 0.2.2 pypi_0 pypi
kfp 1.8.12 pypi_0 pypi
kfp-pipeline-spec 0.1.14 pypi_0 pypi
kfp-server-api 1.8.1 pypi_0 pypi
kiwisolver 1.3.1 py37hc928c03_0 conda-forge
kneed 0.7.0 pypi_0 pypi
kubernetes 12.0.1 pypi_0 pypi
libblas 3.8.0 14_openblas conda-forge
libcblas 3.8.0 14_openblas conda-forge
libedit 3.1.20181209 hc058e9b_0 defaults
libffi 3.2.1 hd88cf55_4 defaults
libgcc-ng 9.1.0 hdf63c60_0 defaults
libgfortran-ng 7.3.0 hdf63c60_5 conda-forge
libglib 2.66.3 hbe7bbb4_0 conda-forge
libiconv 1.16 h516909a_0 conda-forge
liblapack 3.8.0 14_openblas conda-forge
libllvm10 10.0.1 he513fc3_3 conda-forge
libopenblas 0.3.7 h5ec1e0e_6 conda-forge
libpng 1.6.37 hed695b0_1 conda-forge
libstdcxx-ng 9.1.0 hdf63c60_0 defaults
libtiff 4.0.9 h648cc4a_1002 conda-forge
libuuid 2.32.1 h14c3975_1000 conda-forge
libxcb 1.13 h14c3975_1002 conda-forge
libxml2 2.9.9 h13577e0_2 conda-forge
lightgbm 3.3.2 pypi_0 pypi
llvmlite 0.34.0 py37h5202443_2 conda-forge
locket 0.2.0 py_2 conda-forge
lz4 3.0.2 py37h5a7ed16_2 conda-forge
lz4-c 1.9.2 he1b5a44_0 conda-forge
mako 1.2.0 pypi_0 pypi
markupsafe 2.1.1 pypi_0 pypi
matplotlib 3.2.1 0 conda-forge
matplotlib-base 3.2.1 py37hef1b27d_0 defaults
matplotlib-inline 0.1.3 pypi_0 pypi
mccabe 0.6.1 pypi_0 pypi
mergedeep 1.3.4 pypi_0 pypi
mistune 0.8.4 pypi_0 pypi
mlrun 1.0.0 pypi_0 pypi
msal 1.17.0 pypi_0 pypi
msal-extensions 1.0.0 pypi_0 pypi
msgpack-python 1.0.0 py37h99015e2_1 conda-forge
msrest 0.6.21 pypi_0 pypi
multidict 6.0.2 pypi_0 pypi
multipledispatch 0.6.0 py_0 conda-forge
mypy-extensions 0.4.3 pypi_0 pypi
nbclient 0.6.2 pypi_0 pypi
nbconvert 6.5.0 pypi_0 pypi
nbformat 5.4.0 pypi_0 pypi
ncurses 6.1 he6710b0_1 defaults
nest-asyncio 1.5.5 pypi_0 pypi
nomkl 1.0 h5ca1d4c_0 conda-forge
notebook 6.4.11 pypi_0 pypi
nuclio-jupyter 0.9.1 pypi_0 pypi
nuclio-sdk 0.4.0 pypi_0 pypi
numba 0.51.2 py37h9fdb41a_0 conda-forge
numexpr 2.7.1 py37h9fdb41a_3 conda-forge
numpy 1.21.6 pypi_0 pypi
oauthlib 3.2.0 pypi_0 pypi
olefile 0.46 py_0 conda-forge
onnx 1.11.0 pypi_0 pypi
onnxconverter-common 1.9.0 pypi_0 pypi
onnxmltools 1.11.0 pypi_0 pypi
onnxruntime 1.11.1 pypi_0 pypi
openpyxl 3.0.9 pypi_0 pypi
openssl 1.1.1h h516909a_0 conda-forge
ordered-set 4.1.0 pypi_0 pypi
orjson 3.6.8 pypi_0 pypi
ortools 9.3.10497 pypi_0 pypi
oscrypto 1.3.0 pypi_0 pypi
packaging 21.3 pyhd8ed1ab_0 conda-forge
pandas 1.3.5 pypi_0 pypi
pandasql 0.7.3 pypi_0 pypi
pandocfilters 1.5.0 pypi_0 pypi
parso 0.8.3 pypi_0 pypi
partd 1.1.0 py_0 conda-forge
pathspec 0.9.0 pypi_0 pypi
patsy 0.5.2 pyhd8ed1ab_0 conda-forge
pcre 8.44 he1b5a44_0 conda-forge
pexpect 4.8.0 pypi_0 pypi
pickleshare 0.7.5 pypi_0 pypi
pillow 5.3.0 py37h00a061d_1000 conda-forge
pip 22.2.2 pypi_0 pypi
plotly 5.7.0 pypi_0 pypi
pluggy 1.0.0 pypi_0 pypi
pmdarima 1.8.5 pypi_0 pypi
portalocker 2.4.0 pypi_0 pypi
prometheus-client 0.14.1 pypi_0 pypi
prompt-toolkit 3.0.29 pypi_0 pypi
protobuf 3.20.1 pypi_0 pypi
psutil 5.7.0 py37h8f50634_1 conda-forge
pthread-stubs 0.4 h36c2ea0_1001 conda-forge
ptyprocess 0.7.0 pypi_0 pypi
py 1.11.0 pypi_0 pypi
pyarrow 5.0.0 pypi_0 pypi
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pycodestyle 2.8.0 pypi_0 pypi
pycosat 0.6.3 py37h14c3975_0 defaults
pycparser 2.19 py37_0 defaults
pycryptodomex 3.15.0 pypi_0 pypi
pydantic 1.9.0 pypi_0 pypi
pyflakes 2.4.0 pypi_0 pypi
pygments 2.12.0 pypi_0 pypi
pyjwt 2.3.0 pypi_0 pypi
pymysql 1.0.2 pypi_0 pypi
pyodbc 4.0.30 py37he1b5a44_0 conda-forge
pyopenssl 19.0.0 py37_0 conda-forge
pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge
pyqt 5.9.2 py37hcca6a23_4 conda-forge
pyrsistent 0.18.1 pypi_0 pypi
pysocks 1.7.1 py37_0 conda-forge
pytest 7.1.2 pypi_0 pypi
python 3.7.4 h265db76_1 defaults
python-blosc 1.9.1 py37h0da4684_0 conda-forge
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python-dotenv 0.17.1 pypi_0 pypi
python-editor 1.0.4 pypi_0 pypi
python-snappy 0.5.4 py37h484ad9e_3 conda-forge
python_abi 3.7 1_cp37m conda-forge
pytz 2019.3 py_0 conda-forge
pyyaml 5.4.1 pypi_0 pypi
pyzmq 22.3.0 pypi_0 pypi
qt 5.9.7 h52cfd70_2 conda-forge
readline 7.0 h7b6447c_5 defaults
regex 2022.4.24 pypi_0 pypi
requests 2.22.0 py37_0 conda-forge
requests-oauthlib 1.3.1 pypi_0 pypi
requests-toolbelt 0.9.1 pypi_0 pypi
rsa 4.8 pypi_0 pypi
ruamel_yaml 0.15.46 py37h14c3975_0 defaults
s3fs 2021.8.1 pypi_0 pypi
s3transfer 0.4.2 pypi_0 pypi
scikit-learn 1.0.2 pypi_0 pypi
scikit-plot 0.3.7 pypi_0 pypi
scipy 1.5.2 py37hb14ef9d_0 conda-forge
seaborn 0.11.2 pypi_0 pypi
semver 2.13.0 pypi_0 pypi
send2trash 1.8.0 pypi_0 pypi
setuptools 41.4.0 py37_0 conda-forge
shap 0.40.0 pypi_0 pypi
shapely 1.7.1 py37hd5b9dd9_1 conda-forge
sip 4.19.8 py37hf484d3e_1000 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
skl2onnx 1.11.1 pypi_0 pypi
slicer 0.0.7 pypi_0 pypi
smmap 5.0.0 pypi_0 pypi
snappy 1.1.8 he1b5a44_3 conda-forge
snowflake-connector-python 2.6.2 pypi_0 pypi
snowflake-sqlalchemy 1.3.3 pypi_0 pypi
sortedcontainers 2.1.0 py_0 conda-forge
soupsieve 2.3.2.post1 pypi_0 pypi
sqlalchemy 1.4.36 pypi_0 pypi
sqlite 3.30.0 h7b6447c_0 defaults
starlette 0.14.2 pypi_0 pypi
statsmodels 0.12.1 py37ha21ca33_1 conda-forge
storey 1.0.4 pypi_0 pypi
strip-hints 0.1.10 pypi_0 pypi
stumpy 1.10.2 pypi_0 pypi
tabulate 0.8.9 pypi_0 pypi
tblib 1.6.0 py_0 conda-forge
tenacity 8.0.1 pypi_0 pypi
termcolor 1.1.0 pypi_0 pypi
terminado 0.13.3 pypi_0 pypi
threadpoolctl 3.1.0 pyh8a188c0_0 conda-forge
tini 0.18.0 h14c3975_1001 conda-forge
tinycss2 1.1.1 pypi_0 pypi
tk 8.6.8 hbc83047_0 defaults
toml 0.10.2 pypi_0 pypi
tomli 2.0.1 pypi_0 pypi
toolz 0.10.0 py_0 conda-forge
tornado 6.1 py37h4abf009_0 conda-forge
tqdm 4.36.1 py_0 conda-forge
traitlets 5.1.1 pypi_0 pypi
typed-ast 1.5.3 pypi_0 pypi
typer 0.4.1 pypi_0 pypi
typing-extensions 3.10.0.2 pypi_0 pypi
ujson 5.2.0 pypi_0 pypi
unixodbc 2.3.7 hd1b7508_1000 conda-forge
uritemplate 3.0.1 pypi_0 pypi
urllib3 1.25.11 pypi_0 pypi
v3io 0.5.15 pypi_0 pypi
v3io-frames 0.10.2 pypi_0 pypi
v3iofs 0.1.10 pypi_0 pypi
wcwidth 0.2.5 pypi_0 pypi
webencodings 0.5.1 pypi_0 pypi
websocket-client 1.3.2 pypi_0 pypi
wheel 0.33.6 py37_0 conda-forge
wrapt 1.14.1 pypi_0 pypi
xgboost 1.6.0 pypi_0 pypi
xorg-libxau 1.0.9 h14c3975_0 conda-forge
xorg-libxdmcp 1.1.3 h516909a_0 conda-forge
xz 5.2.4 h14c3975_4 defaults
yaml 0.1.7 had09818_2 defaults
yarl 1.7.2 pypi_0 pypi
zict 2.0.0 py_0 conda-forge
zipp 3.8.0 pypi_0 pypi
zlib 1.2.11 h7b6447c_3 defaults
Also found this weird path resolution problem :D
when environment is active:
(dev162) pytest_explore ~> which conda
/home/aravia1/miniconda3/envs/dev162/bin/conda
(dev162) pytest_explore ~> conda --version
conda 22.9.0
(dev162) pytest_explore ~> ~/miniconda3/envs/dev162/bin/conda --version
conda 4.12.0
when no environment is active:
pytest_explore ~> which conda
/home/aravia1/miniconda3/condabin/conda
pytest_explore ~> conda --version
conda 22.9.0
pytest_explore ~> ~/miniconda3/condabin/conda --version
conda 22.9.0
Created a bug on conda: https://github.com/conda/conda/issues/12082, feel free to upvote that to raise priority. Closing in favor of conda.
Issue Type: Bug
Pytest discover tests
I get error: EnvironmentLocationNotFound: Not a conda environment: C:\Conda\envs\swp10\envs\swp10 because the true path is just; C:\Conda\envs\swp10\
Steps to reproduce:
Diagnostic data
python.languageServer
setting: PylancelanguageServer: "Pylance"
linting • enabled: true • cwd: ""
• Flake8Args: ""
• flake8Enabled: false
• flake8Path: ""
• lintOnSave: true
• banditArgs: ""
• banditEnabled: false
• banditPath: ""
• mypyArgs: ""
• mypyEnabled: false
• mypyPath: ""
• pycodestyleArgs: ""
• pycodestyleEnabled: false
• pycodestylePath: ""
• prospectorArgs: ""
• prospectorEnabled: false
• prospectorPath: ""
• pydocstyleArgs: ""
• pydocstyleEnabled: false
• pylamaEnabled: false
formatting
• provider: "yapf"
testing • cwd: ""
• debugPort: 3000
• nosetestArgs: ""
• nosetestsEnabled: undefined
• nosetestPath: ""
• promptToConfigure: true
• pytestArgs: ""
• pytestEnabled: true
• pytestPath: ""
• unittestArgs: ""
• unittestEnabled: false
• autoTestDiscoverOnSaveEnabled: true
terminal • activateEnvironment: true
experiments • enabled: true • optInto: [] • optOutFrom: []
vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyl392:30443607 pythontb:30283811 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 pythonvsnew555:30457759 vscscmwlcmt:30465135 cppdebug:30475216