Problem with Home Assistant after upgrading to Bulls Eye Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
keithellis
Posts: 57
Joined: Mon May 23, 2016 2:55 pm

Problem with Home Assistant after upgrading to Bulls Eye

Post by keithellis »

Hi all,
I've got a bit of a problem with Home Assistant after upgrading to Bulls Eye.
I was running Home Assistant 2021.9.0 on DietPi Buster, v7.6. I could not upgrade Home Assistant to 2021.10 or above due to a requirement for Python 3.9.

So I decided to upgrade my DietPi to Bulls Eye, I duplicated my SD card onto a spare SD card, checked it was all working, which it was. I then followed the instructions to upgrade to Bulls Eye here https://dietpi.com/blog/?p=811

Home Assistant was not working so I ran dietpi-software reinstall 157 to reinstall Home Assistant.

This all seemed to work and home assistant was now working on version 2021.11.1. with the exception of my Zigbee integration. The ZHA official Zigbee integration was not loading.

The log file showed this:

Code: Select all

homeassistant@DietPi:/mnt/dietpi_userdata/homeassistant$ cat home-assistant.log | grep zig
2021-11-07 20:59:27 INFO (SyncWorker_1) [homeassistant.util.package] Attempting install of zigpy-zigate==0.7.3
2021-11-07 21:00:00 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package zigpy-zigate==0.7.3: ERROR: Command errored out with exit status 1:
2021-11-07 21:00:00 INFO (SyncWorker_5) [homeassistant.util.package] Attempting install of zigpy-zigate==0.7.3
2021-11-07 21:00:18 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package zigpy-zigate==0.7.3: ERROR: Command errored out with exit status 1:
2021-11-07 21:00:18 INFO (SyncWorker_0) [homeassistant.util.package] Attempting install of zigpy-zigate==0.7.3
2021-11-07 21:00:38 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package zigpy-zigate==0.7.3: ERROR: Command errored out with exit status 1:
2021-11-07 21:00:38 ERROR (MainThread) [homeassistant.setup] Setup failed for zha: Requirements for zha not found: ['zigpy-zigate==0.7.3'].
It looks like a python library zigpy-zigate can not be loaded.

I activated the Home Assistant virtual environment and tried to install zigpy-zigate

Code: Select all

homeassistant@DietPi:/mnt/dietpi_userdata/homeassistant$ pip3 install zigpy-zigate
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Collecting zigpy-zigate
  Using cached https://www.piwheels.org/simple/zigpy-zigate/zigpy_zigate-0.7.4-py3-none-any.whl (27 kB)
Collecting RPi.GPIO
  Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)
  Preparing metadata (setup.py) ... done
Collecting pyusb
  Downloading https://www.piwheels.org/simple/pyusb/pyusb-1.2.1-py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 1.2 MB/s            
Collecting pyserial-asyncio
  Downloading https://www.piwheels.org/simple/pyserial-asyncio/pyserial_asyncio-0.6-py3-none-any.whl (7.5 kB)
Collecting zigpy>=0.22.2
  Downloading https://www.piwheels.org/simple/zigpy/zigpy-0.40.0-py3-none-any.whl (118 kB)
     |████████████████████████████████| 118 kB 2.8 MB/s            
Collecting voluptuous
  Using cached https://www.piwheels.org/simple/voluptuous/voluptuous-0.12.2-py3-none-any.whl (35 kB)
Collecting aiohttp
  Downloading https://www.piwheels.org/simple/aiohttp/aiohttp-3.8.0-cp39-cp39-linux_armv7l.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 2.0 MB/s            
Collecting aiosqlite>=0.16.0
  Downloading https://www.piwheels.org/simple/aiosqlite/aiosqlite-0.17.0-py3-none-any.whl (15 kB)
Collecting pycryptodome
  Using cached https://www.piwheels.org/simple/pycryptodome/pycryptodome-3.11.0-cp35-abi3-linux_armv7l.whl (1.8 MB)
Collecting crccheck
  Downloading https://www.piwheels.org/simple/crccheck/crccheck-1.0-py3-none-any.whl (28 kB)
Collecting pyserial
  Downloading https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
     |████████████████████████████████| 90 kB 764 kB/s            
Collecting typing_extensions>=3.7.2
  Using cached https://www.piwheels.org/simple/typing-extensions/typing_extensions-3.10.0.2-py3-none-any.whl (27 kB)
Collecting attrs>=17.3.0
  Using cached https://www.piwheels.org/simple/attrs/attrs-21.2.0-py2.py3-none-any.whl (53 kB)
Collecting multidict<7.0,>=4.5
  Using cached https://www.piwheels.org/simple/multidict/multidict-5.2.0-cp39-cp39-linux_armv7l.whl (123 kB)
Collecting charset-normalizer<3.0,>=2.0
  Using cached https://www.piwheels.org/simple/charset-normalizer/charset_normalizer-2.0.7-py3-none-any.whl (42 kB)
Collecting yarl<2.0,>=1.0
  Downloading https://www.piwheels.org/simple/yarl/yarl-1.7.2-cp39-cp39-linux_armv7l.whl (264 kB)
     |████████████████████████████████| 264 kB 2.2 MB/s            
Collecting aiosignal>=1.1.2
  Downloading https://www.piwheels.org/simple/aiosignal/aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting frozenlist>=1.1.1
  Downloading https://www.piwheels.org/simple/frozenlist/frozenlist-1.2.0-cp39-cp39-linux_armv7l.whl (178 kB)
     |████████████████████████████████| 178 kB 1.5 MB/s            
Collecting async-timeout<5.0,>=4.0.0a3
  Downloading https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.0-py3-none-any.whl (6.1 kB)
Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0,>=1.0->aiohttp->zigpy>=0.22.2->zigpy-zigate) (2.10)
Building wheels for collected packages: RPi.GPIO
  Building wheel for RPi.GPIO (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-w8lxh6de
       cwd: /tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/
  Complete output (87 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.9
  creating build/lib.linux-armv7l-3.9/RPi
  copying RPi/__init__.py -> build/lib.linux-armv7l-3.9/RPi
  creating build/lib.linux-armv7l-3.9/RPi/GPIO
  copying RPi/GPIO/__init__.py -> build/lib.linux-armv7l-3.9/RPi/GPIO
  running build_ext
  building 'RPi._GPIO' extension
  creating build/temp.linux-armv7l-3.9
  creating build/temp.linux-armv7l-3.9/source
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/c_gpio.c -o build/temp.linux-armv7l-3.9/source/c_gpio.o
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/common.c -o build/temp.linux-armv7l-3.9/source/common.o
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/constants.c -o build/temp.linux-armv7l-3.9/source/constants.o
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/cpuinfo.c -o build/temp.linux-armv7l-3.9/source/cpuinfo.o
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/event_gpio.c -o build/temp.linux-armv7l-3.9/source/event_gpio.o
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/py_gpio.c -o build/temp.linux-armv7l-3.9/source/py_gpio.o
  source/py_gpio.c: In function ‘PyInit__GPIO’:
  source/py_gpio.c:1046:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated [-Wdeprecated-declarations]
   1046 |    if (!PyEval_ThreadsInitialized())
        |    ^~
  In file included from /usr/include/python3.9/Python.h:145,
                   from source/py_gpio.c:23:
  /usr/include/python3.9/ceval.h:129:36: note: declared here
    129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
        |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
  source/py_gpio.c:1047:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
   1047 |       PyEval_InitThreads();
        |       ^~~~~~~~~~~~~~~~~~
  In file included from /usr/include/python3.9/Python.h:145,
                   from source/py_gpio.c:23:
  /usr/include/python3.9/ceval.h:130:37: note: declared here
    130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
        |                                     ^~~~~~~~~~~~~~~~~~
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/py_pwm.c -o build/temp.linux-armv7l-3.9/source/py_pwm.o
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/soft_pwm.c -o build/temp.linux-armv7l-3.9/source/soft_pwm.o
  arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.9/source/c_gpio.o build/temp.linux-armv7l-3.9/source/common.o build/temp.linux-armv7l-3.9/source/constants.o build/temp.linux-armv7l-3.9/source/cpuinfo.o build/temp.linux-armv7l-3.9/source/event_gpio.o build/temp.linux-armv7l-3.9/source/py_gpio.o build/temp.linux-armv7l-3.9/source/py_pwm.o build/temp.linux-armv7l-3.9/source/soft_pwm.o -o build/lib.linux-armv7l-3.9/RPi/_GPIO.cpython-39-arm-linux-gnueabihf.so
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:42: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:35: multiple definition of `board'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:33: multiple definition of `spi'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:32: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:31: multiple definition of `serial'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:31: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:30: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:29: multiple definition of `output'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:29: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:28: multiple definition of `input'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:28: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:27: multiple definition of `low'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:27: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:26: multiple definition of `high'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:26: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/py_pwm.h:23: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/soft_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-armv7l-3.9/source/event_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/event_gpio.c:60: first defined here
  collect2: error: ld returned 1 exit status
  error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for RPi.GPIO
  Running setup.py clean for RPi.GPIO
Failed to build RPi.GPIO
Installing collected packages: typing-extensions, multidict, frozenlist, yarl, charset-normalizer, attrs, async-timeout, aiosignal, voluptuous, pyserial, pycryptodome, crccheck, aiosqlite, aiohttp, zigpy, RPi.GPIO, pyusb, pyserial-asyncio, zigpy-zigate
  WARNING: The script normalizer is installed in '/home/homeassistant/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts pyserial-miniterm and pyserial-ports are installed in '/home/homeassistant/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Running setup.py install for RPi.GPIO ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-t7me090t/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/homeassistant/.local/include/python3.9/RPi.GPIO
         cwd: /tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/
    Complete output (89 lines):
    running install
    /usr/local/lib/python3.9/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.9
    creating build/lib.linux-armv7l-3.9/RPi
    copying RPi/__init__.py -> build/lib.linux-armv7l-3.9/RPi
    creating build/lib.linux-armv7l-3.9/RPi/GPIO
    copying RPi/GPIO/__init__.py -> build/lib.linux-armv7l-3.9/RPi/GPIO
    running build_ext
    building 'RPi._GPIO' extension
    creating build/temp.linux-armv7l-3.9
    creating build/temp.linux-armv7l-3.9/source
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/c_gpio.c -o build/temp.linux-armv7l-3.9/source/c_gpio.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/common.c -o build/temp.linux-armv7l-3.9/source/common.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/constants.c -o build/temp.linux-armv7l-3.9/source/constants.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/cpuinfo.c -o build/temp.linux-armv7l-3.9/source/cpuinfo.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/event_gpio.c -o build/temp.linux-armv7l-3.9/source/event_gpio.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/py_gpio.c -o build/temp.linux-armv7l-3.9/source/py_gpio.o
    source/py_gpio.c: In function ‘PyInit__GPIO’:
    source/py_gpio.c:1046:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated [-Wdeprecated-declarations]
     1046 |    if (!PyEval_ThreadsInitialized())
          |    ^~
    In file included from /usr/include/python3.9/Python.h:145,
                     from source/py_gpio.c:23:
    /usr/include/python3.9/ceval.h:129:36: note: declared here
      129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
          |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
    source/py_gpio.c:1047:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
     1047 |       PyEval_InitThreads();
          |       ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/python3.9/Python.h:145,
                     from source/py_gpio.c:23:
    /usr/include/python3.9/ceval.h:130:37: note: declared here
      130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
          |                                     ^~~~~~~~~~~~~~~~~~
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/py_pwm.c -o build/temp.linux-armv7l-3.9/source/py_pwm.o
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c source/soft_pwm.c -o build/temp.linux-armv7l-3.9/source/soft_pwm.o
    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.9/source/c_gpio.o build/temp.linux-armv7l-3.9/source/common.o build/temp.linux-armv7l-3.9/source/constants.o build/temp.linux-armv7l-3.9/source/cpuinfo.o build/temp.linux-armv7l-3.9/source/event_gpio.o build/temp.linux-armv7l-3.9/source/py_gpio.o build/temp.linux-armv7l-3.9/source/py_pwm.o build/temp.linux-armv7l-3.9/source/soft_pwm.o -o build/lib.linux-armv7l-3.9/RPi/_GPIO.cpython-39-arm-linux-gnueabihf.so
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:42: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:35: multiple definition of `board'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:33: multiple definition of `spi'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:32: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:31: multiple definition of `serial'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:31: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:30: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:29: multiple definition of `output'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:29: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:28: multiple definition of `input'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:28: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:27: multiple definition of `low'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:27: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:26: multiple definition of `high'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/constants.h:26: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/py_pwm.h:23: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/soft_pwm.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-armv7l-3.9/source/event_gpio.o:/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/source/event_gpio.c:60: first defined here
    collect2: error: ld returned 1 exit status
    error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ee9k5q6i/rpi-gpio_bcd0eba198a74c87b6fa7fdf0cdebfc3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-t7me090t/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/homeassistant/.local/include/python3.9/RPi.GPIO Check the logs for full command output.
This seems to indicate the package Rpi.GPIO cannot be installed but this is already installed and working. In fact I use wirngPi for some RF switches and they are working fine as shown here

Code: Select all

homeassistant@DietPi:~$ gpio -v
gpio version: 2.60
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Pi 4B, Revision: 02, Memory: 2048MB, Maker: Sony 
  * Device tree is enabled.
  *--> Raspberry Pi 4 Model B Rev 1.2
  * This Raspberry Pi supports user-level GPIO access.
Can anyone help me diagnose this please.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Problem with Home Assistant after upgrading to Bulls Eye

Post by Joulinar »

Rpi.GPIO is not yet working on Bullseye / Python 3.9. https://www.piwheels.org/project/rpi-gpio/

You would need to install a beta version

Code: Select all

sudo pip3 install RPi.GPIO==0.7.1a4
To install zigpy-zigate

Code: Select all

sudo pip3 install zigpy-zigate==0.7.3
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
keithellis
Posts: 57
Joined: Mon May 23, 2016 2:55 pm

Re: Problem with Home Assistant after upgrading to Bulls Eye

Post by keithellis »

Perfect, that's working. thank you very much.
Post Reply