When vscode opens the tensorboard, an error is reported:We failed to start a TensorBoard session due to the following error: Command failed: conda activate python && echo ‘e8b39361-0157-4923-80e1-22d70d46dee6’ && python /home/zhangyulan/.vscode-server/extensions/ms-python.python-2022.14.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’.
The main reason for the above problems is the version update.
1. Make sure that in the .vscode-server/bin directory, delete the lock file xxxx-lock xxx, or not if it is not there. The file is shown in the following figure.
2. Return the python and balance extensions of vscode to 2022.14.0 and 2022.9.10, respectively, which are the versions one month ago. But I can’t go back to the version one month ago, just go back to the version one year ago
In the Mac environment, the terminal that comes with Vscode will show a sed prompt no matter what command it is.，There is no problem with using the built-in terminal
$ echo 'hi'
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ... ]
ProductName: Mac OS X
$ code -v
Refer to the issue for a good solution to this problem
The official website also said that this problem will be fixed in the next version
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh
Replace line 125
__vsc_current_command="$(builtin history 1 | sed -E 's/ *[0-9]+ +//')"
After a file is executed in the VsCode control panel, if a new f90 file is created (multiple programs share the same panel port), an error message as shown in the figure will often appear
The tasks.json file should add the presentation property `
"panel": "new", //Here shared means shared, after changing to new each process creates a new port
“Shared” indicates sharing. After changing to new, each process creates a new port.
At that time, my problem was that the URDF model could be built, but the check failed,
Finally, it is found that the path is wrong. Under the file you need to check, right-click the mouse and select open in the integrated terminal, as shown in the following figure
Check successfully under this path
Premise: node and typescript are installed
Error: execute TSC xxx.ts in vscode, an error will be reported.
Solution: the execution mechanism of vscode is limited. Just change the execution mechanism
Exit vscode and run as administrator.
execute get-ExecutionPolicy and return Restricted, which means it is restricted.
execute set-ExecutionPolicy RemoteSigned
execute get-ExecutionPolicy and return RemoteSigned
Perform the above steps and execute TSC xxx.ts again is OK
vpython : AttributeError: ‘box‘ object has no attribute ‘idx‘
1. Problem Description:
After importing the VPython library, the errors reported after using the sphere class or box class in the VPython library are as follows:
the main error statement is the underlined part:
attributeerror: 'box' object has no attribute 'IDX' (changing box to sphere is the same).
After debugging, it is found that the specific errors are as follows:
- Make sure vpython is installed
- Check the third-party libraries of the project environment for the packages autobahn and txaio, e.g. mine are autobahn version is 22.4.2, txaio version is 22.2.1.
- Lower the version of audobahn. If I lower the version to 22.3.2