diyhue / hassio-addon

33 stars 11 forks source link

Error when try to reinstall hassio-diyhue #27

Closed isaaccs closed 4 months ago

isaaccs commented 5 months ago

Hi, Recently I changed my Zigbee key and I therefore had to redo my Zigbee2Mqtt config. Since that day, DIYhue was broken, so I decided to uninstall the add-on and delete the DIYhue folder in HA then reinstall the add-on but I got the following error

The command '/bin/bash -o pipefail -c curl -J -L -o $diyhue.tar.gz "https://github.com/diyhue/diyHue/archive/refs/heads/master.tar.gz" && tar xzvf $diyhue.tar.gz --strip-components=1 -C diyhue && rm -rf $diyhue.tar.gz && pip3 install -r /diyhue/requirements.txt --no-cache-dir' returned a non-zero code: 1

Do you have an idea to fix it ?

Swigart1 commented 5 months ago

I tried to install it today and get the same message.

Kommkat commented 5 months ago

Confirming, install is majorly borked and non functional.

pmkruyen commented 4 months ago

👋 i have a similar issue. A few days ago I installed the addon, all worked. Next, I uninstalled the addon because I wanted to check something (stupid ;( ) When I wanted to reinstall the addon, I get an error.

I deleted the hidden diyhue folder with all the settings too.

I run the latest HA version.

Building wheel for rgbxy (setup.py): started

  Building wheel for rgbxy (setup.py): finished with status 'done'

  Created wheel for rgbxy: filename=rgbxy-0.5-py3-none-any.whl size=4199 sha256=ebace6021315dde36d721bc57fd58efaf0ae704cf9f8c02c6fc1994a07449831

  Stored in directory: /tmp/pip-ephem-wheel-cache-zmk00nxt/wheels/46/36/6d/5102da0dac48e388219346713d9cc086b03cf6b43815dd773f

  Building wheel for netifaces (setup.py): started

  Building wheel for netifaces (setup.py): finished with status 'error'

  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-td7a90q9/netifaces/setup.py'"'"'; __file__='"'"'/tmp/pip-install-td7a90q9/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-t1dlrsbg
       cwd: /tmp/pip-install-td7a90q9/netifaces/
  Complete output (19 lines):
  running bdist_wheel
  running build
  running build_ext
  checking for getifaddrs...found.
  checking for getnameinfo...found.
  checking for IPv6 socket IOCTLs...not found.
  checking for optional header files...netpacket/packet.h.
  checking whether struct sockaddr has a length field...no.
  checking which sockaddr_xxx structs are defined...in in6 un ll.
  checking for routing socket support...no.
  checking for sysctl(CTL_NET...) support...no.
  checking for netlink support...no.
  building 'netifaces' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNETIFACES_VERSION=0.11.0 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_LL=1 -I/usr/local/include/python3.8 -c netifaces.c -o build/temp.linux-aarch64-3.8/netifaces.o
  netifaces.c:131:14: fatal error: linux/tipc.h: No such file or directory
    131 | #    include <linux/tipc.h>
        |              ^~~~~~~~~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------

  ERROR: Failed building wheel for netifaces

  Running setup.py clean for netifaces

  Building wheel for MarkupSafe (setup.py): started

  Building wheel for MarkupSafe (setup.py): finished with status 'done'

  Created wheel for MarkupSafe: filename=MarkupSafe-2.1.5-cp38-cp38-linux_aarch64.whl size=33187 sha256=e1e7a1c06a3a5f96e376e5dc5b4907e4573d872fe7c1e1741f9690a5a26028fa

  Stored in directory: /tmp/pip-ephem-wheel-cache-zmk00nxt/wheels/9d/2c/74/0adc98f027eb48b9287fad76c7fd1287dadaa77ff9cd16ad26

  Building wheel for future (setup.py): started

  Building wheel for future (setup.py): finished with status 'done'

  Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492026 sha256=2eddc955773c13fec5e36e95ffe7b1b520268add7f5e66b244c7192c51594941

  Stored in directory: /tmp/pip-ephem-wheel-cache-zmk00nxt/wheels/a0/0b/ee/e6994fadb42c1354dcccb139b0bf2795271bddfe6253ccdf11

Successfully built ws4py paho-mqtt jsonify pyyaml rgbxy MarkupSafe future

Failed to build netifaces

Installing collected packages: pytz, astral, ws4py, certifi, chardet, idna, urllib3, requests, paho-mqtt, dnspython, email-validator, click, Werkzeug, MarkupSafe, Jinja2, itsdangerous, flask, flask-login, six, aniso8601, flask-restful, WTForms, flask-wtf, jsonify, pyyaml, ifaddr, zeroconf, flask-cors, future, async-timeout, yeelight, sniffio, typing-extensions, exceptiongroup, anyio, asyncclick, zipp, importlib-metadata, python-kasa, dbus-next, bleak, rgbxy, netifaces

    Running setup.py install for netifaces: started

    Running setup.py install for netifaces: finished with status 'error'

    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-td7a90q9/netifaces/setup.py'"'"'; __file__='"'"'/tmp/pip-install-td7a90q9/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-iytv2bl4/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/netifaces
         cwd: /tmp/pip-install-td7a90q9/netifaces/
    Complete output (19 lines):
    running install
    running build
    running build_ext
    checking for getifaddrs...found.
    checking for getnameinfo...found.
    checking for IPv6 socket IOCTLs...not found.
    checking for optional header files...netpacket/packet.h.
    checking whether struct sockaddr has a length field...no.
    checking which sockaddr_xxx structs are defined...in in6 un ll.
    checking for routing socket support...no.
    checking for sysctl(CTL_NET...) support...no.
    checking for netlink support...no.
    building 'netifaces' extension
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DNETIFACES_VERSION=0.11.0 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_LL=1 -I/usr/local/include/python3.8 -c netifaces.c -o build/temp.linux-aarch64-3.8/netifaces.o
    netifaces.c:131:14: fatal error: linux/tipc.h: No such file or directory
      131 | #    include <linux/tipc.h>
          |              ^~~~~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------

ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-td7a90q9/netifaces/setup.py'"'"'; __file__='"'"'/tmp/pip-install-td7a90q9/netifaces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-iytv2bl4/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/netifaces Check the logs for full command output.

WARNING: You are using pip version 20.2.4; however, version 24.0 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

Removing intermediate container 0f3b3e5e9bdb
hendriksen-mark commented 4 months ago

this is fixed now

pmkruyen commented 4 months ago

Yes thank you!