When using docker-compose, exec format error is returned
Opened this issue · 1 comments
huub66 commented
When using the docker-compose functionality, following error occurs;
Starting hewalex2mqtt_hewalex2mqtt_1 ... done
Attaching to hewalex2mqtt_hewalex2mqtt_1
hewalex2mqtt_1 | exec /usr/local/bin/python3: exec format error
hewalex2mqtt_hewalex2mqtt_1 exited with code 1
Any advice on how to solve this one?
gbs commented
Hi @huub66,
What I did to make it work, building the container locally instead of using the image.
Just replace
image: chibald/hewalex2mqtt:latest
with
build:
context: .
dockerfile: dockerfile
Result on my end:
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,027 :: __main__ :: INFO :: Mqtt: Connected to broker.
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,430 :: __main__ :: INFO :: Hewalex-1/date 2022-11-13
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,430 :: __main__ :: INFO :: Hewalex-1/time 10:44:42
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,431 :: __main__ :: INFO :: Hewalex-1/T1 17.8
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,432 :: __main__ :: INFO :: Hewalex-1/T2 36.2
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,432 :: __main__ :: INFO :: Hewalex-1/T3 37.2
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,432 :: __main__ :: INFO :: Hewalex-1/T6 34.3
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,433 :: __main__ :: INFO :: Hewalex-1/T7 38.0
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,433 :: __main__ :: INFO :: Hewalex-1/T8 -3.4
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,433 :: __main__ :: INFO :: Hewalex-1/T9 -11.8
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,434 :: __main__ :: INFO :: Hewalex-1/T10 52.1
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,434 :: __main__ :: INFO :: Hewalex-1/IsManual True
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,435 :: __main__ :: INFO :: Hewalex-1/FanON True
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,435 :: __main__ :: INFO :: Hewalex-1/CirculationPumpON True
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,436 :: __main__ :: INFO :: Hewalex-1/HeatPumpON False
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,436 :: __main__ :: INFO :: Hewalex-1/CompressorON True
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,436 :: __main__ :: INFO :: Hewalex-1/HeaterEON False
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,437 :: __main__ :: INFO :: Hewalex-1/EV1 120
hewalex2mqtt-1_1 | 2023-11-13 08:38:23,437 :: __main__ :: INFO :: Hewalex-1/WaitingStatus 0