After creating a fresh/vanilla Torizon project using the VSCode Torizon IDE Extension and selecting the Python template, the tasks run-torizon-binfmt
and run-share-wsl-ports
fail both because of this error: ModuleNotFoundError: No module named 'torizon_templates_utils'
. In more detail:
* Executing task: xonsh /home/hp/mwe/.conf/run-container-if-not-exists.xsh --container-runtime docker --run-arguments "--rm --privileged torizon/binfmt:latest" --container-name binfmt
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>
Traceback (most recent call last):
File "/home/hp/mwe/.conf/run-container-if-not-exists.xsh", line 24, in <module>
from torizon_templates_utils.errors import Error,Error_Out,last_return_code
ModuleNotFoundError: No module named 'torizon_templates_utils'
* The terminal process "xonsh '/home/hp/mwe/.conf/run-container-if-not-exists.xsh', '--container-runtime', 'docker', '--run-arguments', '"--rm --privileged torizon/binfmt:latest"', '--container-name', 'binfmt'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
* Executing task: xonsh /home/hp/mwe/.conf/share-wsl-ports.xsh /home/hp/mwe
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>
Traceback (most recent call last):
File "/home/hp/mwe/.conf/share-wsl-ports.xsh", line 21, in <module>
from torizon_templates_utils.errors import Error,Error_Out,last_return_code
ModuleNotFoundError: No module named 'torizon_templates_utils'
* The terminal process "/usr/bin/zsh '-c', 'xonsh /home/hp/mwe/.conf/share-wsl-ports.xsh /home/hp/mwe'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Even the task check-deps
fails for the same reason:
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>
Traceback (most recent call last):
File "/home/hp/mwe/.conf/check-deps.xsh", line 24, in <module>
from torizon_templates_utils.errors import Error,Error_Out,last_return_code
ModuleNotFoundError: No module named 'torizon_templates_utils'
* The terminal process "xonsh '/home/hp/mwe/.conf/check-deps.xsh'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Adding the Pip package torizon-templates-utils
to all three files requirements-{debug, local, release}.txt
does not fix the problem. What to do?
Torizon IDE Extension version: 3.0.4
VSCode version: 1.99.3
OS: Ubuntu 24.04