question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python Tensorboard can't open after VSCode's update

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:9
  • Comments:24

github_iconTop GitHub Comments

14reactions
jhliu17commented, Oct 8, 2022

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

11reactions
maxwellzhcommented, Oct 7, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run tensorboard in vscode? - Stack Overflow
Open the command palette (Ctrl/Cmd + Shift + P) · Search for the command “Python: Launch TensorBoard” and press enter. · You will...
Read more >
Install TensorFlow with pip
This guide is for the latest stable version of TensorFlow. For the preview build (nightly), use the pip package named tf-nightly . Refer...
Read more >
PyTorch Development in Visual Studio Code
To start a TensorBoard session, open the Command Palette (Ctrl+Shift+P) and search for the command Python: Launch TensorBoard.
Read more >
How to correctly install Keras and Tensorflow - ActiveState
Keras and TensorFlow are open source Python libraries for working ... To install TensorFlow for CPU and GPU processors, run the following ......
Read more >
How To Install Tensorflow: Best Method + Easy Alternatives
Windows · 1. Install Microsoft Visual Studio. · 2. Install NVIDIA CUDA toolkit. · 3. Install cuDNN. · 4. Extract the ZIP folder...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found