ThomDietrich / miflora-mqtt-daemon

Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼πŸ₯€πŸ‘🌳
MIT License
606 stars 141 forks source link

Docker build fails #134

Open dbluxo opened 3 years ago

dbluxo commented 3 years ago

Hi, first of all thank you for your great project! πŸ’―

I would like to use your software on my Raspberry Pi in Docker, unfortunately the Docker build with the provided Dockerfile fails with:

Step 8/10 : RUN pip install --no-cache-dir -r requirements.txt
 ---> Running in 480c46ade8d7
Collecting bluepy==1.3.0
  Downloading bluepy-1.3.0.tar.gz (217 kB)
Collecting btlewrap==0.0.9
  Downloading btlewrap-0.0.9.tar.gz (12 kB)
Collecting colorama==0.3.9
  Downloading colorama-0.3.9-py2.py3-none-any.whl (20 kB)
Collecting miflora==0.6
  Downloading miflora-0.6.tar.gz (14 kB)
INFO: pip is looking at multiple versions of colorama to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of btlewrap to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of bluepy to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 2) and btlewrap==0.0.9 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested btlewrap==0.0.9
    miflora 0.6 depends on btlewrap==0.0.8

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
The command '/bin/sh -c pip install --no-cache-dir -r requirements.txt' returned a non-zero code: 1
dbluxo commented 3 years ago

Downgrading the btlewrap version from 0.0.9 to 0.0.8 in the requirements.txt resolved it.

cjoha commented 3 years ago

The latest release will not allow the version downgrade, you get the following error: ERROR: miflora 0.7.1 has requirement btlewrap==0.0.10, but you'll have btlewrap 0.0.8 which is incompatible.

ThomDietrich commented 3 years ago

Hello, With 0.0.10 in requirements.txt there shouldn't be any dependency issues?