vscode-jupyter
vscode-jupyter copied to clipboard
Tensorboard is installed, prompted to install repeatedly
Type: Bug
When I run 'Python: Launch Tensorboard' from the command palette, I am prompted with 'The package TensorBoard is required to launch a TensorBoard session. Would you like to install it?'
The package will install into the conda environment 'tf'.
I then run the command palette again, I am prompted to install TensorBoard again. This time, conda states: "# All requested packages already installed."
I have tried the workaround: Set python.conda to "/home/spawn/miniconda3/bin/conda" - issue persists. I have removed/reinstalled tensorboard manually with conda and removed/reinstalled manually with pip. - issue persists.
Notes: This is in a conda environment, and may be related to microsoft/vscode-python#10462 or microsoft/vscode-python#21749 microsoft/vscode-python#10462 discussion indicated we should file a new bug to report this.
Extension version: 2023.15.12301911 VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z) OS version: Windows_NT x64 10.0.19045 Modes: Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
System Info
Item | Value |
---|---|
CPUs | AMD Ryzen 7 5800X3D 8-Core Processor (16 x 3394) |
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 video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
Load (avg) | undefined |
Memory (System) | 63.92GB (30.29GB free) |
Process Argv | --crash-reporter-id d4789ba6-bba4-431a-82bc-55a4e927360f |
Screen Reader | no |
VM | 0% |
Item | Value |
---|---|
Remote | WSL: Ubuntu |
OS | Linux x64 5.15.90.1-microsoft-standard-WSL2 |
CPUs | AMD Ryzen 7 5800X3D 8-Core Processor (16 x 3393) |
Memory (System) | 31.31GB (29.38GB free) |
VM | 0% |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30803845
282f8724:30602487
f6dab269:30613381
showlangstatbar:30737416
03d35959:30757346
ecj1e332:30736112
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofa:30804715
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
asynctok:30821568
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
Additional note: This occurs even if Jupyter Notebook extension is disabled. Test: Close all active .ipynb files. Close and reopen VSCode Disable Jupyter extension. Use 'Reload Required' button Command Palette > Python: Launch Tensorboard - issue repeats.
This sounds similar to the issue I reported #12420
I am back here because I got stuck with a Tensorboard launch error again, I think I know why, and the root of the cause is the same. The error I get now is
We failed to start a TensorBoard session due to the following error: Command failed: conda run -n comodgan --no-capture-output python /home/jsaito/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py /home/jsaito/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/printEnvVariables.py EnvironmentLocationNotFound: Not a conda environment: /opt/conda/envs/myenv
This happens when there is a system-installed conda, but I use a separate Mamba install under my home. Specifically, in my case, the correct location of myenv
is /home/jsaito/mambaforge/envs/myenv
, not /opt/conda/envs/myenv
. This is interesting because VSCode Python extension has no problem finding myenv
under /home/jsaito/mambaforge
. It seems that the Tensorboard integration is not reusing the same logic as the Python extension to find the correct environment location.
I hope this helps to finally fix this bug.
I also have problem starting tensorboard from vs code. When I try Python: Loanch Tensorbaord
I get a message: The package TensorBoard is required to launch a TensorBoard session. Would you like to install it?
and then when I press Yes
I get Could not install tensorboard. If pip is not available, please use the package manager of your choice to manually install this library into your Python environment.
. This is strange because both my default base environment has tensorboard 2.4.1
and the one I would like to actually tensorboard 2.6.0
.
@georgemilosh Please can you share the logs from the python extension What version of Python are you using, what OS and what version of VS Code and Python extension as well.
I am running VS code on a remote linux machine with ssh. VS code version:
Version: 1.83.1 (Universal)
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:46:55.789Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.0.0
The version of the operating system:
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
the version of python extension v2023.18.0
along with other related extensions like Jupyter v2023.9.1102792234
, Pylance v2023.10.30
etc.
my .bashrc
indicates I am running python with miniconda3
@georgemilosh Please can you
- Open the command palette in VS Code and select
Developer: Set Log Level
- Select
Python -> Trace
- Then open the Python output window using the command
Python: Show Output
- Clear the output
- Then replicate the issue
- Then open the Python output window using the command
Python: Show Output
- Copy all of the messages
- Paste the copied logs here
Yeah it something with the python it uses:
2023-10-19 14:50:15.639 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-19 14:50:15.639 [debug] Clearing context for python dependencies not installed: /net/nfs/ssd2/gmiloshe/tests/tests.ipynb
2023-10-19 14:50:15.639 [debug] Starting new TensorBoard session...
2023-10-19 14:50:15.639 [debug] Ensuring TensorBoard package is installed into active interpreter
2023-10-19 14:50:15.639 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-19 14:50:15.640 [debug] Found cached env for /usr/bin/python3
2023-10-19 14:50:15.640 [debug] Found cached env for /usr/bin/python3
2023-10-19 14:50:15.640 [debug] Resolved /usr/bin/python3 from cache: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":1646236337304,"mtime":1584102020000},"display":"Python 3.8.10 64-bit","version":{"major":3,"minor":8,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.8.10 (default, May 26 2023, 14:05:08) \n[GCC 9.4.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3","detailedDisplayName":"Python 3.8.10 64-bit"}
2023-10-19 14:50:15.642 [debug] Resolved /usr/bin/python3 from cache: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":1646236337304,"mtime":1584102020000},"display":"Python 3.8.10 64-bit","version":{"major":3,"minor":8,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.8.10 (default, May 26 2023, 14:05:08) \n[GCC 9.4.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3","detailedDisplayName":"Python 3.8.10 64-bit"}
2023-10-19 14:50:15.644 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/usr/bin/python3"-Arg-Separator-undefined
2023-10-19 14:50:15.704 [debug] Activation Commands received undefined for shell bash
2023-10-19 14:50:15.712 [debug] Activation Commands received undefined for shell bash
2023-10-19 14:50:15.752 [info] > /usr/bin/python3 -c "import tensorboard; print(tensorboard.__version__)"
2023-10-19 14:50:15.783 [info] > /usr/bin/python3 -c "import torch_tb_profiler; print(torch_tb_profiler.__version__)"
2023-10-19 14:50:15.892 [debug] Error when getting version of module tensorboard n [Error]: Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'tensorboard'
at ChildProcess.<anonymous> (/home/gmiloshe/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
2023-10-19 14:50:15.919 [debug] Error when getting version of module torch_tb_profiler n [Error]: Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'torch_tb_profiler'
at ChildProcess.<anonymous> (/home/gmiloshe/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:513:28)
at Pipe.<anonymous> (node:net:322:12)
2023-10-19 14:50:25.483 [info] > /usr/bin/python3 -c "import pip"
2023-10-19 14:50:25.613 [debug] Error when checking if module is installed pip n [Error]: Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pip'
at ChildProcess.<anonymous> (/home/gmiloshe/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
2023-10-19 14:50:25.683 [debug] Activation Commands received undefined for shell bash
2023-10-19 14:50:25.690 [debug] Activation Commands received undefined for shell bash
2023-10-19 14:50:25.727 [info] > /usr/bin/python3 -c "import tensorboard; print(tensorboard.__version__)"
2023-10-19 14:50:25.757 [info] > /usr/bin/python3 -c "import torch_tb_profiler; print(torch_tb_profiler.__version__)"
2023-10-19 14:50:25.864 [debug] Error when getting version of module tensorboard n [Error]: Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'tensorboard'
at ChildProcess.<anonymous> (/home/gmiloshe/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
2023-10-19 14:50:25.893 [debug] Error when getting version of module torch_tb_profiler n [Error]: Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'torch_tb_profiler'
at ChildProcess.<anonymous> (/home/gmiloshe/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
2023-10-19 14:51:34.088 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-19 14:51:34.088 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-10-19 14:51:34.089 [debug] Found cached env for /usr/bin/python3
2023-10-19 14:51:34.089 [debug] Resolved /usr/bin/python3 from cache: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":1646236337304,"mtime":1584102020000},"display":"Python 3.8.10 64-bit","version":{"major":3,"minor":8,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.8.10 (default, May 26 2023, 14:05:08) \n[GCC 9.4.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3","detailedDisplayName":"Python 3.8.10 64-bit"}
2023-10-19 14:51:34.090 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/usr/bin/python3"-Arg-Separator-undefined
I would rather it use my miniconda3 environments which have tensorboard
I would rather it use my miniconda3 environments which have tensorboard
Please select the Miniconda environment using the Python: Select Interpretre
command.
Let me know how that goes
It works, many thanks!
As the originator, is there anything you need me to try?
So sorry,
if anyone else is running into this, please can you share your python logs as well See instructions here https://github.com/microsoft/vscode-jupyter/issues/14206#issuecomment-1770911061
Show Logs
2023-10-21 13:32:36.655 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:32:36.656 [debug] Clearing context for python dependencies not installed: /home/spawn/MSDS/MSDS-Deep-Learning/grader/tests.py
2023-10-21 13:32:36.656 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:36.656 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:36.656 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/spawn/miniconda3/envs/tf/bin/python"-Arg-Separator-{"uri":{"$mid":1,"fsPath":"/home/spawn/MSDS/MSDS-Deep-Learning","external":"file:///home/spawn/MSDS/MSDS-Deep-Learning","path":"/home/spawn/MSDS/MSDS-Deep-Learning","scheme":"file"},"name":"MSDS-Deep-Learning","index":0}
2023-10-21 13:32:43.802 [debug] Starting new TensorBoard session...
2023-10-21 13:32:43.802 [debug] Ensuring TensorBoard package is installed into active interpreter
2023-10-21 13:32:43.802 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:32:43.802 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:43.802 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:43.804 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:43.804 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:43.804 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.getCondaVersion-Args=
2023-10-21 13:32:43.804 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:43.804 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:43.804 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.getCondaVersion-Args=
2023-10-21 13:32:43.804 [debug] Found executable within conda env {"name":"tf","prefix":"/home/spawn/miniconda3/envs/tf"}
2023-10-21 13:32:43.809 [info] > ~/miniconda3/bin/conda run -n tf --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.18.0/pythonFiles/get_output_via_markers.py -c "import tensorboard; print(tensorboard.__version__)"
2023-10-21 13:32:43.809 [debug] Found executable within conda env {"name":"tf","prefix":"/home/spawn/miniconda3/envs/tf"}
2023-10-21 13:32:43.811 [info] > ~/miniconda3/bin/conda run -n tf --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.18.0/pythonFiles/get_output_via_markers.py -c "import torch_tb_profiler; print(torch_tb_profiler.__version__)"
2023-10-21 13:32:44.324 [debug] Error when getting version of module torch_tb_profiler [n [Error]: /usr/bin/bash: /home/spawn/miniconda3/envs/tf/lib/libtinfo.so.6: no version information available (required by /usr/bin/bash)
at ChildProcess.<anonymous> (/home/spawn/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)]
2023-10-21 13:32:44.324 [debug] Error when getting version of module tensorboard [n [Error]: /usr/bin/bash: /home/spawn/miniconda3/envs/tf/lib/libtinfo.so.6: no version information available (required by /usr/bin/bash)
at ChildProcess.<anonymous> (/home/spawn/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:513:28)
at Pipe.<anonymous> (node:net:322:12)]
2023-10-21 13:32:48.723 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.getCondaVersion-Args=
2023-10-21 13:32:48.723 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.getCondaVersion-Args=
2023-10-21 13:32:48.726 [info] Interpreter type is conda but package torch-tb-profiler is not available through conda, using pip instead.
2023-10-21 13:32:48.727 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:48.727 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:48.729 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:48.729 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:48.729 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.getCondaVersion-Args=
2023-10-21 13:32:48.729 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:48.729 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:48.729 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.getCondaVersion-Args=
2023-10-21 13:32:48.730 [debug] Found executable within conda env {"name":"tf","prefix":"/home/spawn/miniconda3/envs/tf"}
2023-10-21 13:32:48.734 [info] > ~/miniconda3/bin/conda run -n tf --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.18.0/pythonFiles/get_output_via_markers.py -c "import tensorboard; print(tensorboard.__version__)"
2023-10-21 13:32:48.734 [debug] Found executable within conda env {"name":"tf","prefix":"/home/spawn/miniconda3/envs/tf"}
2023-10-21 13:32:48.737 [info] > ~/miniconda3/bin/conda run -n tf --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.18.0/pythonFiles/get_output_via_markers.py -c "import torch_tb_profiler; print(torch_tb_profiler.__version__)"
2023-10-21 13:32:48.739 [debug] [object Object]. Shell identified as undefined
2023-10-21 13:32:48.739 [debug] Shell path '/bin/bash', base path '/bin/bash'
2023-10-21 13:32:48.739 [debug] Shell path identified as shell 'bash'
2023-10-21 13:32:48.739 [debug] Terminal shell path '/bin/bash' identified as shell 'bash'
2023-10-21 13:32:48.739 [debug] [object Object]. Shell identified as bash
2023-10-21 13:32:48.739 [debug] Shell identified as 'bash'
2023-10-21 13:32:48.739 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:48.739 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:48.739 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.getCondaVersion-Args=
2023-10-21 13:32:48.739 [debug] Found executable within conda env {"name":"tf","prefix":"/home/spawn/miniconda3/envs/tf"}
2023-10-21 13:32:48.743 [info] > ~/miniconda3/bin/conda run -n tf --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.18.0/pythonFiles/get_output_via_markers.py -c "import tensorboard"
2023-10-21 13:32:48.841 [info] Send text to terminal: /home/spawn/miniconda3/envs/tf/bin/python /home/spawn/.vscode-server/extensions/ms-python.python-2023.18.0/pythonFiles/shell_exec.py /home/spawn/miniconda3/bin/conda install -c conda-forge --name tf tensorboard -y /tmp/tmp-14787RbMmQWP2RboV.log
2023-10-21 13:32:48.949 [debug] Clearing context for python dependencies not installed: /home/spawn/MSDS/MSDS-Deep-Learning/grader/tests.py
2023-10-21 13:32:49.241 [debug] Command state changed to 1. /home/spawn/miniconda3/bin/conda install -c conda-forge --name tf tensorboard -y
2023-10-21 13:32:49.352 [debug] Error when getting version of module tensorboard [n [Error]: /usr/bin/bash: /home/spawn/miniconda3/envs/tf/lib/libtinfo.so.6: no version information available (required by /usr/bin/bash)
at ChildProcess.<anonymous> (/home/spawn/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)]
2023-10-21 13:32:49.355 [debug] Error when getting version of module torch_tb_profiler [n [Error]: /usr/bin/bash: /home/spawn/miniconda3/envs/tf/lib/libtinfo.so.6: no version information available (required by /usr/bin/bash)
at ChildProcess.<anonymous> (/home/spawn/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)]
2023-10-21 13:32:49.356 [error] Failed to install torch-tb-plugin. Profiler plugin will not appear in TensorBoard session.
2023-10-21 13:32:49.374 [debug] Error when checking if module is installed tensorboard [n [Error]: /usr/bin/bash: /home/spawn/miniconda3/envs/tf/lib/libtinfo.so.6: no version information available (required by /usr/bin/bash)
at ChildProcess.<anonymous> (/home/spawn/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)]
2023-10-21 13:32:53.675 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:32:53.675 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:32:53.675 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-10-21 13:32:53.675 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:53.675 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:53.675 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:53.676 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:53.676 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/spawn/miniconda3/envs/tf/bin/python"-Arg-Separator-undefined
2023-10-21 13:32:53.725 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-10-21 13:32:59.141 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:32:59.141 [debug] Clearing context for python dependencies not installed: /home/spawn/MSDS/MSDS-Deep-Learning/grader/tests.py
2023-10-21 13:32:59.141 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:32:59.141 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:32:59.141 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/spawn/miniconda3/envs/tf/bin/python"-Arg-Separator-{"uri":{"$mid":1,"fsPath":"/home/spawn/MSDS/MSDS-Deep-Learning","external":"file:///home/spawn/MSDS/MSDS-Deep-Learning","path":"/home/spawn/MSDS/MSDS-Deep-Learning","scheme":"file"},"name":"MSDS-Deep-Learning","index":0}
2023-10-21 13:32:59.190 [debug] Clearing context for python dependencies not installed: /home/spawn/MSDS/MSDS-Deep-Learning/grader/tests.py
2023-10-21 13:33:08.143 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:33:08.143 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:33:08.145 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-10-21 13:33:08.145 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:33:08.145 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:33:08.145 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:33:08.145 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:33:08.145 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/spawn/miniconda3/envs/tf/bin/python"-Arg-Separator-undefined
2023-10-21 13:33:08.193 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-10-21 13:33:10.362 [debug] Command state changed to 3. /home/spawn/miniconda3/bin/conda install -c conda-forge --name tf tensorboard -y
2023-10-21 13:33:20.505 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:33:20.505 [debug] Clearing context for python dependencies not installed: /home/spawn/MSDS/MSDS-Deep-Learning/grader/tests.py
2023-10-21 13:33:20.505 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:33:20.505 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:33:20.505 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/spawn/miniconda3/envs/tf/bin/python"-Arg-Separator-{"uri":{"$mid":1,"fsPath":"/home/spawn/MSDS/MSDS-Deep-Learning","external":"file:///home/spawn/MSDS/MSDS-Deep-Learning","path":"/home/spawn/MSDS/MSDS-Deep-Learning","scheme":"file"},"name":"MSDS-Deep-Learning","index":0}
2023-10-21 13:33:20.555 [debug] Clearing context for python dependencies not installed: /home/spawn/MSDS/MSDS-Deep-Learning/grader/tests.py
2023-10-21 13:33:21.957 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:33:21.957 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:33:21.957 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-10-21 13:33:21.957 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:33:21.957 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:33:21.957 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:33:21.957 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:33:21.958 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/spawn/miniconda3/envs/tf/bin/python"-Arg-Separator-undefined
2023-10-21 13:33:22.006 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-10-21 13:34:19.229 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:34:19.229 [debug] Clearing context for python dependencies not installed: /home/spawn/MSDS/MSDS-Deep-Learning/grader/tests.py
2023-10-21 13:34:19.230 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:34:19.230 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:34:19.230 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/spawn/miniconda3/envs/tf/bin/python"-Arg-Separator-{"uri":{"$mid":1,"fsPath":"/home/spawn/MSDS/MSDS-Deep-Learning","external":"file:///home/spawn/MSDS/MSDS-Deep-Learning","path":"/home/spawn/MSDS/MSDS-Deep-Learning","scheme":"file"},"name":"MSDS-Deep-Learning","index":0}
2023-10-21 13:34:19.887 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-10-21 13:34:19.887 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-10-21 13:34:19.887 [debug] Found cached env for /home/spawn/miniconda3/envs/tf/bin/python
2023-10-21 13:34:19.887 [debug] Resolved /home/spawn/miniconda3/envs/tf/bin/python from cache: {"name":"tf","location":"/home/spawn/miniconda3/envs/tf","kind":"virt-conda","executable":{"filename":"/home/spawn/miniconda3/envs/tf/bin/python","sysPrefix":"/home/spawn/miniconda3/envs/tf","ctime":1693154303491,"mtime":1693154303491},"display":"Python 3.9.17 ('tf')","version":{"major":3,"minor":9,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"3.9.17 (main, Jul 5 2023, 20:41:20) \n[GCC 11.2.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/spawn/miniconda3/envs/tf/bin/python","detailedDisplayName":"Python 3.9.17 ('tf': conda)"}
2023-10-21 13:34:19.887 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/spawn/miniconda3/envs/tf/bin/python"-Arg-Separator-undefined
@TommyJW Thank you very much for the logs Looking at the logs, there seems tobe some errors in the installation of some of the packages
[debug] Error when getting version of module torch_tb_profiler [n [Error]: /usr/bin/bash: /home/spawn/miniconda3/envs/tf/lib/libtinfo.so.6: no version information available (required by /usr/bin/bash)
at ChildProcess.<anonymous> (/home/spawn/.vscode-server/extensions/ms-python.python-2023.18.0/out/client/extension.js:2:238843)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
Q 1. Please can you confirm that tensorboard works property in the same tf
conda env.
- Please can you try this once again and share the logs from the Python extension
There might be some errors earlier on in the logs indicating the fact that Python extension failed to activate the
tf
conda environment
Q 1. Please can you confirm that tensorboard works property in the same tf conda env. I can launch Tensorboard in Simple Browser:
- Launch VSCode, which opens the default terminal in (base) environment
- Terminal -> "conda activate tf"
- Observe Terminal now activated the (tf) environment
- Terminal -> "tensorboard --logdir loggingHW4"
- Tensorboard begins the process in that terminal.
- Navigate to the Ports view, select 127.0.0.1:6006 which is running in /home/spawn/miniconda3/envs/tf/bin/python3.9 /home/spawn/miniconda3/envs/tf/bin/tensorboard --logdir loggingHW4 (6847)
- Right click on that line and select Open in Browser.
- Tensorboard browser window opens.
Q2 Could you elaborate on what you need? I followed the steps in https://github.com/microsoft/vscode-jupyter/issues/14206#issuecomment-1770911061 The 4th step is to clear the output. So if you want something earlier in that log, I'll need new steps that detail where to start from.
i have same issue. log python:
2023-11-12 11:57:00.458 [debug] Ensuring TensorBoard package is installed into active interpreter
2023-11-12 11:57:00.458 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-11-12 11:57:00.459 [debug] Found cached env for /home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python
2023-11-12 11:57:00.460 [debug] Resolved /home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python from cache: {"name":"TensorFlow_pypi","location":"/home/hamze/mambaforge/envs/TensorFlow_pypi","kind":"virt-conda","executable":{"filename":"/home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python","sysPrefix":"/home/hamze/mambaforge/envs/TensorFlow_pypi","ctime":1699253134407,"mtime":1699253134407},"display":"Python 3.10.13 ('TensorFlow_pypi')","version":{"major":3,"minor":10,"micro":13,"release":{"level":"final","serial":0},"sysVersion":"3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 18:07:37) [GCC 12.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python","detailedDisplayName":"Python 3.10.13 ('TensorFlow_pypi': conda)"}
2023-11-12 11:57:00.467 [debug] Found cached env for /home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python
2023-11-12 11:57:00.467 [debug] Resolved /home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python from cache: {"name":"TensorFlow_pypi","location":"/home/hamze/mambaforge/envs/TensorFlow_pypi","kind":"virt-conda","executable":{"filename":"/home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python","sysPrefix":"/home/hamze/mambaforge/envs/TensorFlow_pypi","ctime":1699253134407,"mtime":1699253134407},"display":"Python 3.10.13 ('TensorFlow_pypi')","version":{"major":3,"minor":10,"micro":13,"release":{"level":"final","serial":0},"sysVersion":"3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 18:07:37) [GCC 12.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python","detailedDisplayName":"Python 3.10.13 ('TensorFlow_pypi': conda)"}
2023-11-12 11:57:00.468 [debug] Cached data exists KeyPrefix=Cache_Method_Output__.getCondaVersion-Args=
2023-11-12 11:57:00.469 [debug] Found cached env for /home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python
2023-11-12 11:57:00.469 [debug] Resolved /home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python from cache: {"name":"TensorFlow_pypi","location":"/home/hamze/mambaforge/envs/TensorFlow_pypi","kind":"virt-conda","executable":{"filename":"/home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python","sysPrefix":"/home/hamze/mambaforge/envs/TensorFlow_pypi","ctime":1699253134407,"mtime":1699253134407},"display":"Python 3.10.13 ('TensorFlow_pypi')","version":{"major":3,"minor":10,"micro":13,"release":{"level":"final","serial":0},"sysVersion":"3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 18:07:37) [GCC 12.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/hamze/mambaforge/envs/TensorFlow_pypi/bin/python","detailedDisplayName":"Python 3.10.13 ('TensorFlow_pypi': conda)"}
2023-11-12 11:57:00.470 [debug] Cached data exists KeyPrefix=Cache_Method_Output__.getCondaVersion-Args=
2023-11-12 11:57:00.470 [debug] Found executable within conda env {"name":"TensorFlow_pypi","prefix":"/home/hamze/mambaforge/envs/TensorFlow_pypi"}
2023-11-12 11:57:00.532 [info] > conda run -n TensorFlow_pypi --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.21.13141007/pythonFiles/get_output_via_markers.py -c "import tensorboard; print(tensorboard.__version__)"
2023-11-12 11:57:00.533 [debug] Found executable within conda env {"name":"TensorFlow_pypi","prefix":"/home/hamze/mambaforge/envs/TensorFlow_pypi"}
2023-11-12 11:57:00.582 [info] > conda run -n TensorFlow_pypi --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.21.13141007/pythonFiles/get_output_via_markers.py -c "import torch_tb_profiler; print(torch_tb_profiler.__version__)"
2023-11-12 11:57:01.224 [debug] Error when getting version of module tensorboard [n [Error]:
EnvironmentLocationNotFound: Not a conda environment: /home/hamze/mambaforge/envs/TensorFlow_pypi/envs/TensorFlow_pypi
at ChildProcess.<anonymous> (/home/hamze/.vscode-server/extensions/ms-python.python-2023.21.13141007/out/client/extension.js:2:229511)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)]
2023-11-12 11:57:01.249 [debug] Error when getting version of module torch_tb_profiler [n [Error]:
EnvironmentLocationNotFound: Not a conda environment: /home/hamze/mambaforge/envs/TensorFlow_pypi/envs/TensorFlow_pypi
at ChildProcess.<anonymous> (/home/hamze/.vscode-server/extensions/ms-python.python-2023.21.13141007/out/client/extension.js:2:229511)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1091:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at Pipe.<anonymous> (node:net:322:12)]
I guess this problem is due to considering the wrong env location
2023-11-12 11:57:01.224 [debug] Error when getting version of module tensorboard [n [Error]:
EnvironmentLocationNotFound: Not a conda environment: /home/hamze/mambaforge/envs/TensorFlow_pypi/envs/TensorFlow_pypi
I manually entered the conda path in the Python Extension settings, but it had no effect
vscode version:
Version: 1.84.2 (system setup)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:51:52.184Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.25992
wsl version:
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar
kernel: 5.15.133.1-microsoft-standard-WSL2
Extension version:
ms-python.python=v2023.21.13141007-Pre-Release
ms-toolsai.tensorboard=v2023.10.1002992421-Preview
@TommyJW @Earendilism Please can you install the new Tensorboard extension and very you are still running into this issue?
@TommyJW @Earendilism Please can you install the new Tensorboard extension and very you are still running into this issue?
thanks. I haven't received the update yet, but my problem is solved. I deleted the environment and created a new environment; I have no idea how this problem was solved with this solution.
Save issue. When calling tensorboard command, python extension outputs:
2024-01-04 15:26:31.753 [info] shell: bash
2024-01-04 15:26:32.182 [info] > conda run -n default-dl --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/get_output_via_markers.py -c "import tensorboard; print(tensorboard.__version__)"
2024-01-04 15:26:32.216 [info] > conda run -n default-dl --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/get_output_via_markers.py -c "import torch_tb_profiler; print(torch_tb_profiler.__version__)"
And manually running following, got the output:
$ conda run -n default-dl --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/get_output_via_markers.py -c "import torch_tb_profiler; print(torch_tb_profiler.__version__)"
>>>PYTHON-EXEC-OUTPUT
0.4.3
<<<PYTHON-EXEC-OUTPUT
$ conda run -n default-dl --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2023.22.1/pythonFiles/get_output_via_markers.py -c "import tensorboard; print(tensorboard.__version__)"
>>>PYTHON-EXEC-OUTPUT
2.15.1
<<<PYTHON-EXEC-OUTPUT
Switching to the preview version will report
Extension 'ms-toolsai.tensorboard' CANNOT use API proposal: portsAttributes. Its package.json#enabledApiProposals-property declares: but NOT portsAttributes. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.tensorboard
when trying launching tensorboard.
There is no problem running a tensorboard server via CLI, in that environment (default-dl):
tensorboard serve
and VS Code automatically forwarded port 6006.
Is it an error comparing the versions?
downgrading python extension fixed it for me
downgrading python extension fixed it for me
@karthiknadig @luabud /cc
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
It is a critical issue, and the needed info (log) had been provided.
Extension 'ms-toolsai.tensorboard' CANNOT use API proposal: portsAttributes. Its package.json#enabledApiProposals-property declares: but NOT portsAttributes. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.tensorboard
Extension 'ms-toolsai.tensorboard' CANNOT use API proposal: portsAttributes. Its package.json#enabledApiProposals-property declares: but NOT portsAttributes. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.tensorboard
Same problem. Maybe try to restart the VSCode, which works for me.