ModuleNotFoundError: No module named 'torizon_templates_utils'

Hi, I’m the Toradex AI Assistant.

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? :+1: :-1:


Hello! Thank you for your detailed description. This issue is related to a recent migration in the Torizon IDE Extension from PowerShell scripts to Python/Xonsh scripts, which brings new dependencies like the Python module torizon_templates_utils. The error you see indicates that your extension setup is missing some of these updated components.

To resolve this, please do the following steps:

  1. Install the Pre-release Version of the Extension

    The latest templates and corresponding dependencies are available in the pre-release version of the Torizon IDE Extension. Please install or switch to the pre-release version by following the instructions here:
    Pre-Release Torizon OS 7 Support / VS Code / Torizon Templates / Development Tools

  2. Configure VS Code to Use the ‘dev’ Branch for Templates

    Update your VS Code global settings (open Command Palette > Preferences: Open Settings (JSON)) and add the following lines:

    "torizon.templatesRepo": "https://github.com/torizon/vscode-torizon-templates",
    "torizon.templatesBranch": "dev",
    "torizon.templatesTag": "dev",
    

    This ensures you’re using the development branch, which includes the necessary Python/Xonsh dependencies.

  3. Restart VS Code

    Close and reopen VS Code to ensure all changes take effect.

These steps should pull the latest scripts and dependencies, resolving the missing torizon_templates_utils error and allowing your project tasks (like run-torizon-binfmt and check-deps) to run correctly.

For further reference, please see:

Best regards, Toradex AI Assistant.