fmartinou / tydom2mqtt

Deltadore Tydom to MQTT Bridge
https://fmartinou.github.io/tydom2mqtt/
MIT License
90 stars 53 forks source link

startup crash #95

Open dbar333 opened 1 year ago

dbar333 commented 1 year ago

Hello,

Je tente de déployer tydomEmqq sur un Rapsbian PI3 avec Docker, et j'ai au démarrage quelques problèmes. Surement une erreur de ma part, mais je ne trouve pas laquelle. Pouvez vous m'aider ?

I try to deploy tydomEmqq on a Rapsbian PI3 with Docker, and I have some problems at startup. Probably a mistake on my part, but I can't find which one. Can you help me ?

root@raspi:/opt/tydom2mqtt # docker compose up [+] Running 1/1 ✔ Container tydom2mqtt Recreated 0.2s Attaching to tydom2mqtt tydom2mqtt | Traceback (most recent call last): tydom2mqtt | File "/app/main.py", line 2, in tydom2mqtt | import asyncio tydom2mqtt | File "/usr/local/lib/python3.11/asyncio/init.py", line 8, in tydom2mqtt | from .base_events import * tydom2mqtt | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 18, in tydom2mqtt | import concurrent.futures tydom2mqtt | File "/usr/local/lib/python3.11/concurrent/futures/init.py", line 8, in tydom2mqtt | from concurrent.futures._base import (FIRST_COMPLETED, tydom2mqtt | File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 7, in tydom2mqtt | import logging tydom2mqtt | File "/usr/local/lib/python3.11/logging/init.py", line 58, in tydom2mqtt | _startTime = time.time() tydom2mqtt | ^^^^^^^^^^^ tydom2mqtt | PermissionError: [Errno 1] Operation not permitted tydom2mqtt exited with code 1 root@raspi:/opt/tydom2mqtt #

docker-compose.yml

version: '3'

services: tydom2mqtt: image: fmartinou/tydom2mqtt container_name: tydom2mqtt environment:

i use Docker version 24.0.0-beta.2, build 67c4570 and Raspbian GNU/Linux 10 (buster)

Merci pour votre assistante / Thank you for your assistant

frnicolas commented 8 months ago

As-tu bien python3 d’installer? Et les modules nécessaires ? Essaye de faire un docker exec -it tydom2mqtt /bin/sh puis une fois dans ton container lancer la commande pip list. tu devrais avoir la même liste que dans le fichier /app/requirements.txt

j’ai la même configuration que toi mais avec docker version 24.0.7 et ça marche.