Torizon IDE initial setup can't complete if you have spaces in your password

The logs show this:

[05-05 14:48:14.824] Warning: unable to verify /usr/bin/xonsh link

[05-05 14:48:14.824] It seems that xonsh was not installed, sudo will be required for the setup

[05-05 14:49:04.442] Error: administrative password is required to setup the extension

[05-05 14:49:04.443] ERROR :: Xonsh is not installed, Xonsh is required.

Then on the vscode top bar, it asks for admin privs probably to install xonsh. However, you can’t enter a password here that has spaces in it. I have to escape out to get anything done.

Hi, I’m the Toradex AI Assistant.

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


I can see you’re experiencing an issue with the Torizon IDE Extension setup where passwords containing spaces cannot be entered during the initial configuration. This is a known limitation during the dependency installation process.

Understanding the Setup Process

During the first activation of the Torizon IDE Extension, the extension automatically checks for necessary dependencies and attempts to install them if they’re missing(1). The extension will prompt you to enter your sudo user password when installing dependencies(1).

Workaround Solutions

Since the VS Code password prompt doesn’t handle spaces properly, here are some approaches to resolve this:

Option 1: Manual Dependency Installation

You can pre-install the required dependencies manually before activating the extension:

  1. Open a terminal in your Linux environment
  2. Install the missing dependencies (like xonsh) manually using your system’s package manager
  3. Then activate the Torizon IDE Extension in VS Code

Option 2: Temporary Password Change

Consider temporarily changing your user password to one without spaces:

  1. Change your password to one without spaces
  2. Complete the Torizon IDE Extension setup
  3. Change your password back to your preferred one

Option 3: Use Installation Wizard (Windows)

If you’re on Windows, the Torizon IDE Installation Wizard automatically installs and configures the Torizon IDE Extension(1). This might bypass the password input issue you’re experiencing.

Important Setup Notes

Pay attention during the activation process, as other extensions can sometimes move focus away from the TERMINAL tab where installation requests appear(1). Make sure to click on the TERMINAL tab to ensure there are no pending installation requests(1).

The extension requires proper dependency installation to function correctly, so resolving this password input issue is essential for proper setup.

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.

Greetings @TxSpace,

It could be the extension is trimming white-space from the start and end of the password string.

Just to confirm, does your password have the space at the start/end or is it somewhere in the middle of the password string?

Best Regards,
Jeremias

It’s the VScode input box saying entry can’t have any spaces. It’s not even trying to submit what I type in.

I changed to a password without spaces to test, and it still seems to not work. Now I get this error:

The terminal process “/bin/bash ‘–norc’, ‘–noprofile’” terminated with exit code: 1.

[05-05 17:11:47.812] Activating Torizon IDE …

[05-05 17:11:47.812] Torizon IDE version :: 3.4.2

[05-05 17:11:48.199] Latest Torizon IDE published :: 3.4.102

[05-05 17:11:48.199] Telemetry is enabled

[05-05 17:11:48.199] 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: Settings - Data Collection | Toradex Developer Center

[05-05 17:11:48.199] 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.

[05-05 17:11:48.199] User defined host IP address found

[05-05 17:11:48.199] Host IP address OK

[05-05 17:11:48.199] Bash as default shell OK

[05-05 17:11:48.213] Docker installed OK

[05-05 17:11:48.242] Docker running OK

[05-05 17:11:48.287] Docker compose OK

[05-05 17:11:48.299] PowerShell OK

[05-05 17:11:48.311] git OK

[05-05 17:11:48.323] dig OK

[05-05 17:11:48.359] avahi-resolve OK

[05-05 17:11:48.371] nmap OK

[05-05 17:11:48.387] iputils-ping OK

[05-05 17:11:48.400] file OK

[05-05 17:11:48.411] sshpass OK

[05-05 17:11:48.425] iproute2 OK

[05-05 17:11:48.438] rsync OK

[05-05 17:11:48.452] python3 OK

[05-05 17:11:48.462] pipx OK

[05-05 17:11:48.463] Cloning project templates

[05-05 17:11:48.463] Templates repo: GitHub - torizon/vscode-torizon-templates: VS Code Torizon Integrated Development Environment Templates · GitHub

[05-05 17:11:48.463] Templates tag/hash: v3.4.2

[05-05 17:11:48.463] Templates properties has been changed, cleaning up .apollox

[05-05 17:11:51.573] Project templates clone of branch OK

[05-05 17:11:51.641] Checkout templates repo to tag v3.4.2 OK

[05-05 17:11:51.642] Warning: unable to verify /usr/bin/xonsh link

[05-05 17:11:51.642] It seems that xonsh was not installed, sudo will be required for the setup

[05-05 17:12:08.646] Error trying to setup xonsh

[05-05 17:12:08.647] ERROR :: Xonsh is not installed, Xonsh is required.

[05-05 17:12:08.647] WARNING :: Project name not found in workspace metadata for single container workspace, or it matches the workspace name.

[05-05 17:12:08.649] Checking connected devices …

[05-05 17:12:08.650] Scanning Torizon devices …

[05-05 17:12:08.662] Debian bookworm packages list load OK

[05-05 17:12:08.662] Debug id_rsa OK

[05-05 17:12:08.662] ERROR :: Errors during the initialization of Torizon IDE Extension.

[05-05 17:12:08.662] HOUSTON WE HAVE A PROBLEM!

[05-05 17:12:08.662] PLEASE READ THE LOGS!

[05-05 17:12:08.662] ERROR :: Please share this log on https://community.toradex.com

[05-05 17:12:09.801] WARNING :: Device not reached! Please check if the device is turned on and connected to the network.

[05-05 17:12:09.801] ERROR :: {{redacted}} not reached

It seems to yell at me to PLEASE READ THE LOGS! but then doesn’t tell me where in the vscode labyrinth the logs actually are…

Hey @TxSpace ,

Sorry to hear that you are facing issues. Could you please report back which Linux distro you are using?

Also, could you please run the following commands and report the output please?

readlink -f ~/.local/bin/xonsh
readlink -f /usr/bin/xonsh

BR,

I had removed the .local/bin symlink to see if I could get the sudo password doing anything. It did not re-create this. So what I’ve done just now is recreate that link as it was previously, which points to /home/{user}/.local/share/pipx/venvs/xonsh/bin/xonsh

Now when I start the extension, I get no more xonsh warnings (well, first time after I did this it was a warning, second extension restart it has no warning for this).

I still get some connection warnings, but this is likely due to some firewall issues I’m otherwise working through. A list of ports required to be open for this connection would be great.

Hey @TxSpace

These should be enough Troubleshooting | Toradex Developer Center

The scan devices do not work in some environments, in the case is better to connect manually by inputting the IP address and credentials: https://developer.toradex.com/torizon/application-development/ide-extension/connect-a-torizoncore-target-device#manually-add-devices

Let me know if I can help in something else.

Hi @TxSpace ,

Just checking in if you are all set here.

Best,

Looks good. In addition to the list on the troubleshooting guide, PING also need to be allowed. Turned out that was what was going on in my case.

Thanks for reporting back. Glad to hear your issue has been resolved.

Best Regards,
Jeremias