deiger / AirCon

Scripts for controlling Air Conditioners, e.g. with HiSense modules.
GNU General Public License v3.0
212 stars 59 forks source link

Docker compose not completing #223

Open tdigu opened 1 year ago

tdigu commented 1 year ago

I get the following error trying to set up a docker compose container: This is when running the command docker-compose up -d in the same directory as options.json and docker-compose.yaml Traceback (most recent call last): File "setup.py", line 1, in import aircon ModuleNotFoundError: No module named 'aircon' ERROR: Service 'copy_config' failed to build: The command '/bin/sh -c python setup.py install' returned a non-zero code: 1

soydeleon commented 1 year ago

I have the same problem

docker-compose up -d

Building copy_config [+] Building 0.1s (2/2) FINISHED => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2B 0.0s ERROR: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1628610394/Dockerfile: no such file or directory ERROR: Service 'copy_config' failed to build : Build failed


I workaround this with a new docker compose file: version: '3' services: hisense_ac: image: deiger/aircon:0.3.14 container_name: hisense_ac healthcheck: disable: true environment:

and then, copy the options.json to the /opt/hisense directory

bigdogevan commented 5 months ago

I just got this installed last night, had the same errors but overcame them. I found the instructions very vague. I used /opt/hisense for the install and my docker compose is located at /opt. All the required files are listed here (https://github.com/deiger/AirCon). The instructions say that you only need the docker compose and options file, but you need more. I had to copy the Dockerfile, README.md, run.sh, setup.py files and the folder "aircon" to my /opt directory. my options.json is in /opt/hisense