TorizonIDE VSCode Extension Fails

EDIT:
I was able to fix the issue by installing pipx, one of the scripts required it.

I’m trying to get the torizonIDE extension for VSCode to work on my Linux host machine. I followed the guide on my windows machine and was able to get it working, but on Linux it just keeps giving me this error each time I try to load the extension:

[11-20 10:35:14.348] Activating Torizon IDE ...
[11-20 10:35:14.348] Torizon IDE version :: 3.2.0
[11-20 10:35:14.586] Latest Torizon IDE published :: 3.2.102
[11-20 10:35:14.586] Telemetry is enabled
[11-20 10:35:14.586] Extension collects completely anonymous telemetry data about templates usage. Participation in this anonymous program is optional, and you may opt-out if you'd not like to share any information. Check: https://developer.toradex.com/torizon/application-development/ide-extension/reference-documentation/data-collection/#how-to-opt-in-or-out
[11-20 10:35:14.586] Telemetry allows us to accurately gauge templates usage. This data will help us to focus better on the most used templates, adding new features and putting effort in the right place.
[11-20 10:35:14.586] Resolving host IP address ...
[11-20 10:35:14.591] Host IP address OK
[11-20 10:35:14.591] Bash as default shell OK
[11-20 10:35:14.595] Docker installed OK
[11-20 10:35:14.606] Docker running OK
[11-20 10:35:14.646] Docker compose OK
[11-20 10:35:14.649] WARNING :: PowerShell Core is not installed.
[11-20 10:35:14.651] git OK
[11-20 10:35:14.654] dig OK
[11-20 10:35:14.656] ERROR :: avahi-resolve is not installed.
[11-20 10:35:20.945] git iputils-ping nmap avahi-utils file sshpass iproute2 bind9-dnsutils python3 python3-pip pipx installation OK
[11-20 10:35:20.946] Cloning project templates
[11-20 10:35:20.946] Templates repo: https://github.com/torizon/vscode-torizon-templates.git
[11-20 10:35:20.946] Templates tag/hash: v3.2.0
[11-20 10:35:20.951] Project templates clone of branch  OK
[11-20 10:35:21.284] Project templates fetched OK
[11-20 10:35:21.289] Checkout templates repo to tag v3.2.0 OK
[11-20 10:35:21.641] Error trying to setup xonsh
[11-20 10:35:21.641] WARNING :: PowerShell is not installed, if you are using Torizon v6.x.x or templates from Torizon v6.x.x, PowerShell is required.
[11-20 10:35:21.642] ERROR :: Xonsh is not installed, Xonsh is required.
[11-20 10:35:21.643] Checking connected devices ...
[11-20 10:35:21.644] Scanning Torizon devices ...
[11-20 10:35:21.648] Debian bookworm packages list load OK
[11-20 10:35:21.648] ERROR :: Errors during the initialization of Torizon IDE Extension.
[11-20 10:35:21.648] HOUSTON WE HAVE A PROBLEM!
[11-20 10:35:21.648] PLEASE READ THE LOGS!
[11-20 10:35:21.648] ERROR :: Please share this log on https://community.toradex.com

I’m confused as to why its even mentioning PowerShell on linux. Does the extension think this is a windows machine?

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


Torizon IDE Extension Linux Setup Issue

The error you’re encountering is related to the Torizon IDE Extension’s transition from PowerShell to Python/Xonsh scripts (1). The extension is not mistaking your Linux system for Windows - it’s showing compatibility warnings for different template versions.

Understanding the Error Messages

The key errors in your log are:

  • WARNING :: PowerShell Core is not installed - This warning appears because some older Torizon v6.x.x templates still require PowerShell (1)
  • ERROR :: Xonsh is not installed, Xonsh is required - This is the actual blocker for Torizon OS 7 support

Solution: Install Xonsh

The extension is migrating from PowerShell template scripts to Python/Xonsh (1). To resolve this issue, you need to install Xonsh on your Linux system:

pip install xonsh

Or using your distribution’s package manager (if available):

# For Ubuntu/Debian
sudo apt install xonsh

# For Fedora
sudo dnf install python3-xonsh

Alternative: Use Pre-Release Version for Torizon OS 7

If you’re working with Torizon OS 7, you can try the pre-release version of the extension which has better support for the new Python/Xonsh-based templates (1):

  1. Install the pre-release version of the Torizon IDE Extension in VS Code
  2. Configure your global VS Code settings to use the development templates:
{
    "torizon.templatesRepo": "https://github.com/torizon/vscode-torizon-templates",
    "torizon.templatesBranch": "dev",
    "torizon.templatesTag": "dev"
}

Why PowerShell is Mentioned

The PowerShell warning appears because the extension maintains backward compatibility with Torizon v6.x.x templates, which were built using PowerShell scripts (1). The migration to Python/Xonsh represents a significant change from the original 2022 implementation (1).

After installing Xonsh, restart VS Code and try loading the extension again. The error should be resolved and you should be able to use the Torizon IDE Extension on your Linux host machine.

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

Hi Joseph,

Just curious here. Do you also have Toradex hardware or not? What is your target hardware device? Not your PC of course but the device you would eventually like to run Torizon OS on?

Best regards,

Michael Park
Toradex

Yes, there is PowerShell on Linux! Previous versions used even on Linux:

[11-20 10:35:21.641] WARNING :: PowerShell is not installed, if you are using Torizon v6.x.x or templates from Torizon v6.x.x, PowerShell is required.

So, if you are targeting Torizon 7.x.x PowerShell is not required anymore.

BR,

Yes, I’m using a Verdin IMX8MP on a Mallow carrier board. I’ve had no issue developing on my windows PC and deploying to my target.

Hey Joseph,

It looks like you may have some dependencies missing.

via :

[11-20 10:35:14.656] ERROR :: avahi-resolve is not installed.

There is a check deps tools in the task runner, or I believe you can just download this directly. via sudo apt install avahi-utils

Eric Singer
Toradex

Hey @JosephG,

Are you all set here?

-Eric

Hey @eric.tx

I’ve had to put this project away for a bit, I will send an update once I’m able to get back to it.

Thanks for following up!