moroen / IKEA-Tradfri-plugin

A Python plugin for Domoticz to controll IKEA Gateway
68 stars 23 forks source link

Not an issue but a question #143

Open redfirebrooks opened 1 year ago

redfirebrooks commented 1 year ago

Hello, I am trying to run domoticz as a docker container. What should I do to signal the IEAK plug in ? Should I follow the install process inside the container (shell) or on the host system (which is already running domictz and the IEKA plugin) ? I tried to install from the container but I have error installing Tradfricoap

root@ed1b3c90927a:/opt/domoticz/userdata/plugins# pip3 install -U tradfricoap
Collecting tradfricoap
  Using cached tradfricoap-0.1.0-py3-none-any.whl
Collecting py3coap (from tradfricoap)
  Using cached py3coap-0.9.4.tar.gz (5.6 kB)
  Preparing metadata (setup.py) ... done
Collecting appdirs (from tradfricoap)
  Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Building wheels for collected packages: py3coap
  Building wheel for py3coap (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      /usr/local/lib/python3.9/dist-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!

              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************

      !!
        dist.fetch_build_eggs(dist.setup_requires)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-cpython-39
      creating build/lib.linux-armv7l-cpython-39/py3coap
      copying py3coap/errors.py -> build/lib.linux-armv7l-cpython-39/py3coap
      copying py3coap/__init__.py -> build/lib.linux-armv7l-cpython-39/py3coap
      copying py3coap/py3coap.py -> build/lib.linux-armv7l-cpython-39/py3coap
      running build_ext
      $ GOPATH=/tmp/tmp9uyc50qi go get -d
      error: [Errno 2] No such file or directory: 'go'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for py3coap
  Running setup.py clean for py3coap
Failed to build py3coap
ERROR: Could not build wheels for py3coap, which is required to install pyproject.toml-based projects
root@ed1b3c90927a:/opt/domoticz/userdata/plugins# 
redfirebrooks commented 1 year ago

Replying to myself but maybe it could be usefull for someonelse.

The domoticz docker image does not come with golang pre installed. The answer to my issue was in front of my eyes. A simple apt update and apt install golang did the trick.