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