home-assistant-libs / pytradfri

IKEA Trådfri/Tradfri API. Control and observe your lights from Python. Examples available. On pypi. Sans-io.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dev_docker approach is not working

SpeedyR10 opened this issue · comments

Hi,
I'm using windows 10 and I'm trying to use the dev_docker approach since I couldn't also use the standalone one.

1st STAND-ALONE (CLI) Local python version 3.11.1
tradfri

2nd DEV_DOCKER APPROACH
image

I'm not an expert on docker but this image is not in any registry i believe, hence the error.

I tried it with another like 3.11.1 and did get further:
image

But still got an error of a missing file: "/usr/src/app/script/install-coap-client.sh: not found"

Any help?

Nor Windows or Python 3.11 are supported unfortunately.

Seems like stretch is no longer supported by the Python docker repo. Try replacing 3.10-stretch with 3.10-bullseye and see if that works.

Thank you for the fast answer. It doesn't work also, no. Are you still able to run it without errors? If so what would be the best environment or way?

Personally, I'm running this in VS code using a containerized dev environment. If you enable that extension in VS Code and open this repo, you will be prompted to the library in a containerized environment.

Hi again!

Tried it and i think the error of missing file persists even when using the containerized dev environment of vscode. Below is the log:

image

Let me know if there's something i'm missing.

Hi again!

Tried it and i think the error of missing file persists even when using the containerized dev environment of vscode. Below is the log:

image

Let me know if there's something i'm missing.

I just tried it myself on my Mac and it started as expected. Are you running VS Code on Windows or in WSL2?

On Windows 10

You might have to install WSL2 or run VS Code on Linux in a VM like VirtualBox.

I will close this issue now as the error is unrelated to this library.