I am having to switch to a new pc which is W11. I have VSC installed as well as docker desktop. However, when I try to get my existing projects to work, after opening VSC in the folder, it says:
SETUP XONSH
‘xonsh’ already seems to be installed, Not modifying existing installation in ~/.local/share/pipx/venvs/xonsh’. Pass ‘–force’ to force installation.
~/.local/bin is already in PATH
I can see that if I run xonsh --version it is 0.14.4, whereas on my Win10 pc, it is 0.19.3.
I would put the --force in somewhere, if I just knew where.
I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.
Did you like my answer?
Hello! Thank you for reaching out with your issue regarding the xonsh setup on your new Windows 11 PC.
It looks like the Torizon IDE Extension is detecting an existing version of xonsh (0.14.4), which is older than what your project expects (0.19.3). The extension would normally ensure the correct version is installed, but if it finds xonsh already present, it avoids modifying that installation unless you explicitly force it.
How to Resolve
You can manually resolve this version mismatch by uninstalling the current xonsh installation in your WSL environment, so the Torizon IDE Extension will reinstall the correct version during activation. Here’s how:
1. Open your WSL Terminal
Open your WSL2 terminal (e.g., Ubuntu).
Type the following command to uninstall xonsh from your user package directory:
pipx uninstall xonsh
or, if installed via pip:
pip uninstall xonsh
2. Reopen VS Code & Reactivate the Extension
Close all VS Code windows that are connected to WSL.
Reopen VS Code and your project folder.
The Torizon IDE Extension should now prompt to set up xonsh again and install the appropriate version automatically.
Alternative: Use Torizon Installation Wizard
For a streamlined setup that handles all dependencies automatically, consider running the Torizon Installation Wizard.
Hi @eric.tx , I just ran the pipx uninstall xonsh and started VSC up again, and it was able to complete the install. I had tried pip uninstall xonsh before, but that didn’t work.
The only weird thing is after the install took place, my xonsh --version still returns 0.14.4, not 0.19.3 as in my Win10 machine. And of course, both machines are running ubuntu 24.04.
I have not been able to debug the program though on Win11/Ubuntu 24.04.