Installation Issue for Visual Studio Code Extension for Torizon

Hi there,

i followed the instructions from this article:

When installing the extension from the marketplace i get the following output on the vs code terminal.

Traceback (most recent call last):
File “api.py”, line 131, in version_docker_get
File “docker\client.py”, line 96, in from_env
File “docker\client.py”, line 45, in init
File “docker\api\client.py”, line 197, in init
File “docker\api\client.py”, line 221, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: (2, ‘CreateFile’, ‘Das System kann die angegebene Datei nicht finden.’)
ERROR:root:Error: 530 Local docker exception. Docker exception: Error while fetching server API version: (2, ‘CreateFile’, ‘Das System kann die angegebene Datei nicht finden.’)
ERROR:root:Exception: Docker exception: Error while fetching server API version: (2, ‘CreateFile’, ‘Das System kann die angegebene Datei nicht finden.’)
ERROR:root:Error while fetching server API version: (2, ‘CreateFile’, ‘Das System kann die angegebene Datei nicht finden.’)
INFO:root:REST ← /api/version/docker - 530
INFO:root:REST → /api/version/docker
ERROR:root:docker version
Traceback (most recent call last):
File “docker\api\client.py”, line 214, in _retrieve_server_version
File “docker\api\daemon.py”, line 181, in version
File “docker\utils\decorators.py”, line 46, in inner
File “docker\api\client.py”, line 237, in _get
File “requests\sessions.py”, line 555, in get
File “requests\sessions.py”, line 542, in request
File “requests\sessions.py”, line 655, in send
File “requests\adapters.py”, line 439, in send
File “urllib3\connectionpool.py”, line 699, in urlopen
File “urllib3\connectionpool.py”, line 394, in _make_request
File “http\client.py”, line 1257, in request
File “http\client.py”, line 1303, in _send_request
File “http\client.py”, line 1252, in endheaders
File “http\client.py”, line 1012, in _send_output
File “http\client.py”, line 952, in send
File “docker\transport\npipeconn.py”, line 32, in connect
File “docker\transport\npipesocket.py”, line 23, in wrapped
File “docker\transport\npipesocket.py”, line 72, in connect
File “docker\transport\npipesocket.py”, line 52, in connect

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “api.py”, line 131, in version_docker_get
File “docker\client.py”, line 96, in from_env
File “docker\client.py”, line 45, in init
File “docker\api\client.py”, line 197, in init
File “docker\api\client.py”, line 221, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: (2, ‘CreateFile’, ‘Das System kann die angegebene Datei nicht finden.’)
ERROR:root:Error: 530 Local docker exception. Docker exception: Error while fetching server API version: (2, ‘CreateFile’, ‘Das System kann die angegebene Datei nicht finden.’)
ERROR:root:Exception: Docker exception: Error while fetching server API version: (2, ‘CreateFile’, ‘Das System kann die angegebene Datei nicht finden.’)
ERROR:root:Error while fetching server API version: (2, ‘CreateFile’, ‘Das System kann die angegebene Datei nicht finden.’)
INFO:root:REST ← /api/version/docker - 530

Are there any prerequisites i am missing? Is there a docker runtime i need to have installed locally on my system?

Greetings @Norman,

Yes you need to install the Docker engine on your development machine. Judging by your error messages this seems to be the main issue.

Please notice on the VSCode Extension page you’re referencing the prerequisites state that you need to set up everything in this article: Configure Build Environment for Torizon Containers | Toradex Developer Center

Depending on whether you’re development machine is Windows or Linux.

Best Regards,
Jeremias

hi there,
just to let you know that there is a similar issue with Ubuntu 22.04 as well, this time caused by openssl library. the newest version of Ubuntu has switched to opnssl v3.0, while the exstension needs v1.1.

$ ./moses 
Traceback (most recent call last):
  File "moses.py", line 15, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
  File "api.py", line 5, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
  File "docker/__init__.py", line 2, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
  File "docker/api/__init__.py", line 2, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
  File "docker/api/client.py", line 10, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
  File "docker/auth.py", line 9, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
  File "docker/utils/__init__.py", line 3, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
  File "docker/utils/decorators.py", line 4, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
  File "docker/utils/utils.py", line 13, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
  File "docker/tls.py", line 2, in <module>
  File "PyInstaller/loader/pyimod03_importers.py", line 531, in exec_module
  File "ssl.py", line 99, in <module>
ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory
[38114] Failed to execute script moses

the fix is reported here: python - libssl.so.1.1: cannot open shared object file: No such file or directory - Stack Overflow

Hello @RoccoBr ,
Thanks for the update :slight_smile:

Best regards,
Josep

@RoccoBr We actually have this limitation for the V1 extensions documented here: Visual Studio Code Extension for Torizon | Toradex Developer Center

Best Regards,
Jeremias

1 Like