errors with last step of neopixel raspberry pi software inst

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
chromevendome
 
Posts: 3
Joined: Sun Nov 14, 2021 8:48 pm

errors with last step of neopixel raspberry pi software inst

Post by chromevendome »

Hi,
I'm using a Raspberry Pi 3 A+ with the latest Raspberry Pi OS and want to make sure the software is correctly installed so I've been trying to follow the instructions exactly here:
https://learn.adafruit.com/neopixels-on ... thon-usage

which in turn says to follow these instructions first:
https://learn.adafruit.com/circuitpytho ... rypi-linux

the very last step on the Python Usage page is to run
sudo python3 -m pip install --force-reinstall adafruit-blinka

This fails with various errors.

There's a note in the instructions about "If your default Python is version 3 you may need to run 'pip' instead. "
I assume this means:
sudo pip install --force reinstall adafruit-blinka

which fails as well.

Any help in getting it to complete successfully would be appreciated.

Here is what it outputs:

Code: Select all

pi@raspberrypi3A:~/Downloads $ sudo pip install --force-reinstall adafruit-blinka
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting adafruit-blinka
  Using cached https://www.piwheels.org/simple/adafruit-blinka/Adafruit_Blinka-6.15.0-py3-none-any.whl (187 kB)
Collecting Adafruit-PureIO>=1.1.7
  Using cached https://www.piwheels.org/simple/adafruit-pureio/Adafruit_PureIO-1.1.9-py3-none-any.whl (12 kB)
Collecting pyftdi>=0.40.0
  Using cached https://www.piwheels.org/simple/pyftdi/pyftdi-0.53.3-py3-none-any.whl (141 kB)
Collecting sysv-ipc>=1.1.0
  Using cached https://www.piwheels.org/simple/sysv-ipc/sysv_ipc-1.1.0-cp39-cp39-linux_armv7l.whl (63 kB)
Collecting Adafruit-PlatformDetect>=3.13.0
  Using cached https://www.piwheels.org/simple/adafruit-platformdetect/Adafruit_PlatformDetect-3.17.2-py3-none-any.whl (19 kB)
Collecting RPi.GPIO
  Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)
Collecting rpi-ws281x>=4.0.0
  Using cached https://www.piwheels.org/simple/rpi-ws281x/rpi_ws281x-4.3.1-cp39-cp39-linux_armv7l.whl (117 kB)
Collecting pyusb!=1.2.0,>=1.0.0
  Using cached https://www.piwheels.org/simple/pyusb/pyusb-1.2.1-py3-none-any.whl (58 kB)
Collecting pyserial>=3.0
  Using cached https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
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 sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/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-cnlqs2yi
       cwd: /tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/
  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-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:42: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:35: multiple definition of `board'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:33: multiple definition of `spi'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:32: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:31: multiple definition of `serial'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:31: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:30: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:29: multiple definition of `output'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:29: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:28: multiple definition of `input'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:28: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:27: multiple definition of `low'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:27: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:26: multiple definition of `high'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:26: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/py_pwm.h:23: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/soft_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-armv7l-3.9/source/event_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/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: pyusb, pyserial, sysv-ipc, rpi-ws281x, RPi.GPIO, pyftdi, Adafruit-PureIO, Adafruit-PlatformDetect, adafruit-blinka
  Attempting uninstall: pyusb
    Found existing installation: pyusb 1.2.1
    Uninstalling pyusb-1.2.1:
      Successfully uninstalled pyusb-1.2.1
  Attempting uninstall: pyserial
    Found existing installation: pyserial 3.5
    Uninstalling pyserial-3.5:
      Successfully uninstalled pyserial-3.5
  Attempting uninstall: sysv-ipc
    Found existing installation: sysv-ipc 1.1.0
    Uninstalling sysv-ipc-1.1.0:
      Successfully uninstalled sysv-ipc-1.1.0
  Attempting uninstall: rpi-ws281x
    Found existing installation: rpi-ws281x 4.3.1
    Uninstalling rpi-ws281x-4.3.1:
      Successfully uninstalled rpi-ws281x-4.3.1
  Attempting uninstall: RPi.GPIO
    Found existing installation: RPi.GPIO 0.7.0
    Not uninstalling rpi.gpio at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'RPi.GPIO'. No files were found to uninstall.
    Running setup.py install for RPi.GPIO ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/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-qt7sxjs7/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/RPi.GPIO
         cwd: /tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/
    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-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:42: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:35: multiple definition of `board'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:33: multiple definition of `spi'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:32: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:31: multiple definition of `serial'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:31: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:30: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:29: multiple definition of `output'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:29: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:28: multiple definition of `input'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:28: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:27: multiple definition of `low'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:27: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:26: multiple definition of `high'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/constants.h:26: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/py_pwm.h:23: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/soft_pwm.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-armv7l-3.9/source/event_gpio.o:/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/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: Can't roll back RPi.GPIO; was not uninstalled
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8sng21fv/rpi-gpio_d05d2ef0d9fd46089bb9337b0798ae6c/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-qt7sxjs7/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/RPi.GPIO Check the logs for full command output.
Last edited by adafruit_support_carter on Tue Nov 16, 2021 1:37 pm, edited 1 time in total.
Reason: added [code] tags

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: errors with last step of neopixel raspberry pi software

Post by adafruit_support_carter »

Can you also post the output you got when you ran:

Code: Select all

sudo python3 -m pip install --force-reinstall adafruit-blinka

chromevendome
 
Posts: 3
Joined: Sun Nov 14, 2021 8:48 pm

Re: errors with last step of neopixel raspberry pi software

Post by chromevendome »

Here's the output:

Code: Select all

pi@raspberrypi3A:~ $ sudo python3 -m pip install --force-reinstall adafruit-blinka
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting adafruit-blinka
  Using cached https://www.piwheels.org/simple/adafruit-blinka/Adafruit_Blinka-6.15.0-py3-none-any.whl (187 kB)
Collecting Adafruit-PlatformDetect>=3.13.0
  Using cached https://www.piwheels.org/simple/adafruit-platformdetect/Adafruit_PlatformDetect-3.17.2-py3-none-any.whl (19 kB)
Collecting pyftdi>=0.40.0
  Using cached https://www.piwheels.org/simple/pyftdi/pyftdi-0.53.3-py3-none-any.whl (141 kB)
Collecting RPi.GPIO
  Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)
Collecting Adafruit-PureIO>=1.1.7
  Using cached https://www.piwheels.org/simple/adafruit-pureio/Adafruit_PureIO-1.1.9-py3-none-any.whl (12 kB)
Collecting rpi-ws281x>=4.0.0
  Using cached https://www.piwheels.org/simple/rpi-ws281x/rpi_ws281x-4.3.1-cp39-cp39-linux_armv7l.whl (117 kB)
Collecting sysv-ipc>=1.1.0
  Using cached https://www.piwheels.org/simple/sysv-ipc/sysv_ipc-1.1.0-cp39-cp39-linux_armv7l.whl (63 kB)
Collecting pyserial>=3.0
  Using cached https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting pyusb!=1.2.0,>=1.0.0
  Using cached https://www.piwheels.org/simple/pyusb/pyusb-1.2.1-py3-none-any.whl (58 kB)
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 sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/setup.py'"'"'; __file__='"'"'/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/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-810_wlir
       cwd: /tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/
  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-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:42: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:35: multiple definition of `board'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:33: multiple definition of `spi'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:32: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:31: multiple definition of `serial'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:31: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:30: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:29: multiple definition of `output'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:29: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:28: multiple definition of `input'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:28: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:27: multiple definition of `low'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:27: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:26: multiple definition of `high'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:26: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/py_pwm.h:23: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: first defined here
  /usr/bin/ld: build/temp.linux-armv7l-3.9/source/soft_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-armv7l-3.9/source/event_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/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: pyusb, pyserial, sysv-ipc, rpi-ws281x, RPi.GPIO, pyftdi, Adafruit-PureIO, Adafruit-PlatformDetect, adafruit-blinka
  Attempting uninstall: pyusb
    Found existing installation: pyusb 1.2.1
    Uninstalling pyusb-1.2.1:
      Successfully uninstalled pyusb-1.2.1
  Attempting uninstall: pyserial
    Found existing installation: pyserial 3.5
    Uninstalling pyserial-3.5:
      Successfully uninstalled pyserial-3.5
  Attempting uninstall: sysv-ipc
    Found existing installation: sysv-ipc 1.1.0
    Uninstalling sysv-ipc-1.1.0:
      Successfully uninstalled sysv-ipc-1.1.0
  Attempting uninstall: rpi-ws281x
    Found existing installation: rpi-ws281x 4.3.1
    Uninstalling rpi-ws281x-4.3.1:
      Successfully uninstalled rpi-ws281x-4.3.1
  Attempting uninstall: RPi.GPIO
    Found existing installation: RPi.GPIO 0.7.0
    Not uninstalling rpi.gpio at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'RPi.GPIO'. No files were found to uninstall.
    Running setup.py install for RPi.GPIO ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/setup.py'"'"'; __file__='"'"'/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/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-72f8tfp0/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/RPi.GPIO
         cwd: /tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/
    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-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:42: multiple definition of `both_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:42: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:41: multiple definition of `falling_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:40: multiple definition of `rising_edge'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:39: multiple definition of `pud_down'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:38: multiple definition of `pud_up'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:37: multiple definition of `pud_off'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:36: multiple definition of `bcm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:35: multiple definition of `board'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:34: multiple definition of `unknown'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:33: multiple definition of `spi'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:32: multiple definition of `i2c'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:32: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:31: multiple definition of `serial'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:31: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:30: multiple definition of `pwm'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:30: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:29: multiple definition of `output'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:29: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:28: multiple definition of `input'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:28: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:27: multiple definition of `low'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:27: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:26: multiple definition of `high'; build/temp.linux-armv7l-3.9/source/constants.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/constants.h:26: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: multiple definition of `gpio_direction'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:38: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/py_pwm.h:23: multiple definition of `PWMType'; build/temp.linux-armv7l-3.9/source/py_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/py_pwm.h:23: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: multiple definition of `module_setup'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:41: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: multiple definition of `setup_error'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:40: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: multiple definition of `rpiinfo'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:39: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: multiple definition of `pin_to_gpio'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:37: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: multiple definition of `pin_to_gpio_rev3'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:36: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: multiple definition of `pin_to_gpio_rev2'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:35: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: multiple definition of `pin_to_gpio_rev1'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:34: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/py_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: multiple definition of `gpio_mode'; build/temp.linux-armv7l-3.9/source/common.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/common.h:33: first defined here
    /usr/bin/ld: build/temp.linux-armv7l-3.9/source/soft_pwm.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/source/soft_pwm.c:28: multiple definition of `threads'; build/temp.linux-armv7l-3.9/source/event_gpio.o:/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/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: Can't roll back RPi.GPIO; was not uninstalled
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/setup.py'"'"'; __file__='"'"'/tmp/pip-install-92w9dnt9/rpi-gpio_751c53781a054c88a797a8e17799e816/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-72f8tfp0/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/RPi.GPIO Check the logs for full command output.

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: errors with last step of neopixel raspberry pi software

Post by adafruit_support_carter »

Something just seems out of sorts with your current setup. Were you starting with a fresh copy of the latest Pi OS?

chromevendome
 
Posts: 3
Joined: Sun Nov 14, 2021 8:48 pm

Re: errors with last step of neopixel raspberry pi software

Post by chromevendome »

Yes, it's brand new Pi 3 A+ with a fresh Raspberry Pi OS install.

I tried it previously on a very old Pi 1 Model B Rev 2 with a fresh install of Raspberry Pi OS and had gotten the same results.

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: errors with last step of neopixel raspberry pi software

Post by adafruit_support_carter »

And you updated the system before running the script? Via these commands?

Code: Select all

sudo apt-get update
sudo apt-get upgrade
Not sure if this has something to do with the older model Pi's? But we can't recreate this here testing on Pi 4 and Pi Zero 2 W and starting with latest Raspberry Pi OS.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”