vscode-python: Python Tensorboard can't open after VSCode's update

Type: Bug

Behaviour

Expected vs. Actual

When I want to launch Tensorboard Session, I can’t open and get this: We failed to start a TensorBoard session due to the following error: Command failed: conda activate dynavoxel && echo ‘e8b39361-0157-4923-80e1-22d70d46dee6’ && python /data-2/yuxingyuan/.vscode-server/extensions/ms-python.python-2022.16.0/pythonFiles/printEnvVariables.py CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’. To initialize your shell, run $ conda init <SHELL_NAME> Currently supported shells are: - bash - fish - tcsh - xonsh - zsh - powershell See ‘conda init --help’ for more information and options. IMPORTANT: You may need to close and restart your shell after running ‘conda init’.

In the last version of VSCode, the problem is not existed.

Steps to reproduce:

You may try a python project with “import tensorboardX”, when you click it to open the session you may have the problem.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.4
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings


languageServer: "Pylance"

Extension version: 2022.16.0 VS Code version: Code 1.72.0 (64bbfbf67ada9953918d72e1df2f4d8e537d340e, 2022-10-04T23:20:39.912Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No Remote OS version: Linux x64 4.18.0-15-generic

System Info
Item Value
CPUs 11th Gen Intel® Core™ i7-11800H @ 2.30GHz (16 x 2304)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.71GB (6.91GB free)
Process Argv –folder-uri vscode-remote://ssh-remote%2B7b22686f73744e616d65223a225a4a552d6376672d3330393063227d/mnt/nas_8/group/yuxingyuan/VoxMan --crash-reporter-id c5f83874-9301-48be-a9a1-7b20fc0343c3
Screen Reader no
VM 0%
Item Value
Remote SSH: ZJU-cvg-3090c
OS Linux x64 4.18.0-15-generic
CPUs Intel® Xeon® Silver 4114 CPU @ 2.20GHz (40 x 2360)
Memory (System) 251.58GB (209.50GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
2144e591:30553903
pyindex848:30577860
fc301958:30573243

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 9
  • Comments: 24

Commits related to this issue

Most upvoted comments

Meet the same error after updating to v2022.16.0. Downgrade the python extension to v2022.14.0 can solve this problem.

Same issue here. This happens just after the latest update of vscode (to 1.72.0). Reproducing steps:

  1. cmd + shift + p
  2. select python: launch tensorboard

The error is

We failed to start a TensorBoard session due to the following error: Command failed: conda activate env_name && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/xxx/.vscode-server/extensions/ms-python.python-2022.16.0/pythonFiles/printEnvVariables.py CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run $ conda init <SHELL_NAME> Currently supported shells are: - bash - fish - tcsh - xonsh - zsh - powershell See 'conda init --help' for more information and options. IMPORTANT: You may need to close and restart your shell after running 'conda init'.

But I could run conda activate env_name in my shell command.

Fix is now released in the latest stable extension 2022.16.1.

Hello, I’ve updated to v2022.16.1, restarted vs code but the problem still exists. Switching to pre-release doesn’t help either.

Fix is now released in the latest stable extension 2022.16.1.

@karrtikr It works after conda update!

Thanks both for the info. We have reverted back to using the slower conda run for now so the issue should be reverted, upvote https://github.com/conda/conda/issues/11814 if you would like that to be faster.

Fix should be out in the pre-release version of the extension in a day, use the following to try it out:

image

@jhliu17 Thanks, downgrade to v2022.10 also solve the problem