Issues w/ VS Code/Torizon Plugin

I am using Ubuntu 22.04 and have the same setup on both a VM (Mac) and a dedicated laptop. On both machines, VS Code w/ the “Toradex Torizon Support” plugin (v. 1.5.1), I get the error:
“The terminal process “/home/mwilk/.vscode/extensions/toradex.torizon-1.5.1/moses-linux/moses ‘–port’, ‘5000’” terminated with exit code: 255.”

I tried running moses directly from the command line in its .vscode extensions folder:
./moses -port 5000
Traceback (most recent call last):
File “moses.py”, line 15, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “api.py”, line 5, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/init.py”, line 2, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/api/init.py”, line 2, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/api/client.py”, line 10, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/auth.py”, line 9, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/utils/init.py”, line 3, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/utils/decorators.py”, line 4, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/utils/utils.py”, line 13, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/tls.py”, line 2, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “ssl.py”, line 99, in
ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory
[6982] Failed to execute script moses

To me it looks like PyInstaller didn’t package a dependency (OpenSSL?). I can’t seem to find the right package to install. The point is, the plugin doesn’t work and doesn’t really help to resolve the problem. Is Ubuntu 22.04 not supported?

I am sure somebody will refer to this link:

I installed libssl from http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb

Still doesn’t work.

More info. Followed the link above. There’s an import error from the moses Python executable:
Traceback (most recent call last):
File “moses.py”, line 15, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “api.py”, line 5, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/init.py”, line 2, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/api/init.py”, line 2, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/api/client.py”, line 10, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/auth.py”, line 9, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/utils/init.py”, line 3, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/utils/decorators.py”, line 4, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/utils/utils.py”, line 13, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “docker/tls.py”, line 2, in
File “PyInstaller/loader/pyimod03_importers.py”, line 531, in exec_module
File “ssl.py”, line 99, in
ImportError: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1’ not found (required by /home/mwilk/.vscode/extensions/toradex.torizon-1.5.1/moses-linux/_ssl.cpython-39-x86_64-linux-gnu.so)
[4644] Failed to execute script moses

So it seems the SSL library is still not being properly referenced from the plugin.

Greetings @mswtech,

That is odd usually the libssl workaround is all that is needed to get the extension working on Ubuntu 22.04.

Looking at your first error message it seems like it couldn’t find “libssl.so.1.1”. On your second stack trace it looks like it’s referencing the “incorrect” libssl library version. Did the “fixed” version of libssl get installed to the expected location?

Best Regards,
Jeremias