OpenVoiceOS / ovos-docker

Open Voice OS container images and docker-compose.yml files for x86_64 and aarch64 CPU architectures.
https://openvoiceos.github.io/ovos-docker/
Apache License 2.0
41 stars 13 forks source link

neon-phal-plugin-linear-led phal plugin fails to install #50

Closed j1nx closed 11 months ago

j1nx commented 11 months ago

For the mark2 kits out there, I added the neon-phal-plugin-linear-led to the phal.list however fails to install at launch of the container with;

Dec 17 13:05:51 OpenVoiceOS-418c85 ovos_phal[715]:   Building wheel for rpi-ws281x (setup.py): started
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:   Building wheel for rpi-ws281x (setup.py): finished with status 'error'
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:   error: subprocess-exited-with-error
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:   × python setup.py bdist_wheel did not run successfully.
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:   │ exit code: 1
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:   ╰─> [15 lines of output]
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       running bdist_wheel
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       running build
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       running build_py
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       Compiling ws281x library...
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       creating build
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/lib.linux-aarch64-cpython-311
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/lib.linux-aarch64-cpython-311/rpi_ws281x
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       copying rpi_ws281x/__init__.py -> build/lib.linux-aarch64-cpython-311/rpi_ws281x
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       copying rpi_ws281x/rpi_ws281x.py -> build/lib.linux-aarch64-cpython-311/rpi_ws281x
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       running build_ext
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       building '_rpi_ws281x' extension
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/temp.linux-aarch64-cpython-311
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/temp.linux-aarch64-cpython-311/lib
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I. -I/home/ovos/.venv/include>
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       running build_py
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       Compiling ws281x library...
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       creating build
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/lib.linux-aarch64-cpython-311
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/lib.linux-aarch64-cpython-311/rpi_ws281x
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       copying rpi_ws281x/__init__.py -> build/lib.linux-aarch64-cpython-311/rpi_ws281x
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       copying rpi_ws281x/rpi_ws281x.py -> build/lib.linux-aarch64-cpython-311/rpi_ws281x
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       running build_ext
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       building '_rpi_ws281x' extension
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/temp.linux-aarch64-cpython-311
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/temp.linux-aarch64-cpython-311/lib
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I. -I/home/ovos/.venv/include>
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       error: command 'aarch64-linux-gnu-gcc' failed: No such file or directory
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:       [end of output]
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:   note: This error originates from a subprocess, and is likely not a problem with pip.
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:   ERROR: Failed building wheel for rpi-ws281x
Dec 17 13:05:56 OpenVoiceOS-418c85 ovos_phal[715]:   Running setup.py clean for rpi-ws281x
Dec 17 13:06:00 OpenVoiceOS-418c85 ovos_phal[715]: Successfully built ovos-PHAL-plugin-mk1 neon-phal-plugin-linear-led
Dec 17 13:06:00 OpenVoiceOS-418c85 ovos_phal[715]: Failed to build rpi-ws281x
Dec 17 13:06:04 OpenVoiceOS-418c85 ovos_phal[715]: Installing collected packages: rpi-ws281x, pyserial, board, Adafruit-PlatformDetect, pyusb, click-default-group, Adafruit-PureIO, pyftdi, ovos-PHAL-plugin-mk1, adafruit-circuitpython-re>
Dec 17 13:06:04 OpenVoiceOS-418c85 ovos_phal[715]:   Running setup.py install for rpi-ws281x: started
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:   Running setup.py install for rpi-ws281x: finished with status 'error'
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:   error: subprocess-exited-with-error
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:   × Running setup.py install for rpi-ws281x did not run successfully.
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:   │ exit code: 1
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:   ╰─> [17 lines of output]
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       running install
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       /home/ovos/.venv/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards>
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:         warnings.warn(
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       running build
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       running build_py
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       Compiling ws281x library...
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       creating build
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/lib.linux-aarch64-cpython-311
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/lib.linux-aarch64-cpython-311/rpi_ws281x
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       copying rpi_ws281x/__init__.py -> build/lib.linux-aarch64-cpython-311/rpi_ws281x
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       copying rpi_ws281x/rpi_ws281x.py -> build/lib.linux-aarch64-cpython-311/rpi_ws281x
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       running build_ext
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       building '_rpi_ws281x' extension
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/temp.linux-aarch64-cpython-311
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       creating build/temp.linux-aarch64-cpython-311/lib
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I. -I/home/ovos/.venv/include>
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       error: command 'aarch64-linux-gnu-gcc' failed: No such file or directory
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:       [end of output]
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:   note: This error originates from a subprocess, and is likely not a problem with pip.
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]: error: legacy-install-failure
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]: × Encountered error while trying to install package.
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]: ╰─> rpi-ws281x
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]:
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]: note: This is an issue with the package mentioned above, not pip.
Dec 17 13:06:07 OpenVoiceOS-418c85 ovos_phal[715]: hint: See above for output from the failure.

It can't compile the rpi_ws281x module. Not sure if this belong here, or over at the neon phal plugin repo though.

goldyfruit commented 11 months ago

There is no gcc compiler into the containers but maybe its time to have one in ovos-core and ovos-phal-* images.