Docker -> customstart.sh -> install python requests -> i got lost
Posted: Friday 11 October 2024 14:11
I moved Domoticz to Docker.
Before i had everything running in " userland" and also now (after migration) all hardware works : deCONZ, P1, garbagedata, Tuya, Goodwe, RFXCOM, Milight)
Problem is the Domoticz-deCONZ plugin (by : Smanar) keeps asking for Python Requests package :
I tried everything in adding to customstart.sh in "/opt/domoticz/config : userland" :
(customstart.sh already existed)
I added to the existing script and used the base script and added (all !) :
Restart container with :
It seems requests is not installed in the docker container.
Could use some help in getting Python request into Docker...
(maybe in future releases op Domoticz Docker container incorporate already ?)
Thank you in advance !
Before i had everything running in " userland" and also now (after migration) all hardware works : deCONZ, P1, garbagedata, Tuya, Goodwe, RFXCOM, Milight)
Problem is the Domoticz-deCONZ plugin (by : Smanar) keeps asking for Python Requests package :
Code: Select all
2024-10-11 13:40:23.061 deCONZ: Acquiring GIL for 'onHeartbeatCallback'
2024-10-11 13:40:23.062 deCONZ: Calling message handler 'onHeartbeat' on 'module' type object.
2024-10-11 13:40:23.062 deCONZ: onHeartbeat called
2024-10-11 13:40:23.062 deCONZ: ### Initialisation > config
2024-10-11 13:40:23.062 deCONZ: ### Request config
2024-10-11 13:40:23.062 deCONZ: Send Command /api/8********B3/config/ with None (0 in buffer)
2024-10-11 13:40:23.062 deCONZ: Making Request: http://192.168.2.48:81/api/8**********B3/config/ with params None
2024-10-11 13:40:23.062 Error: deCONZ: Your python version is missing the requests library
2024-10-11 13:40:23.062 Error: deCONZ: To install it, type : sudo -H pip3 install requests | sudo -H pip install requests
2024-10-11 13:40:23.062 deCONZ: Acquiring GIL for 'onHeartbeatCallback'
(customstart.sh already existed)
I added to the existing script and used the base script and added (all !) :
Code: Select all
sudo apt install python3-requests
sudo apt-get -y install python3-requests
sudo -H pip3 install requests
sudo -H pip install requests
apt-get -y install python3-requests
pip3 install requests
pip install requests
Code: Select all
Rene@rasp5:/opt/domoticz $ sudo docker compose up -d
[+] Running 1/1
✔ Container domoticz Started
Could use some help in getting Python request into Docker...
(maybe in future releases op Domoticz Docker container incorporate already ?)
Thank you in advance !