Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id B0989781779 for <~alpine/devel@lists.alpinelinux.org>; Sun, 17 Apr 2022 09:08:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 89918405DF for <~alpine/devel@lists.alpinelinux.org>; Sun, 17 Apr 2022 11:08:28 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M1oJHkKgHhCR for <~alpine/devel@lists.alpinelinux.org>; Sun, 17 Apr 2022 11:08:27 +0200 (CEST) Message-ID: <9c8b4536-7df4-7f9e-3a60-92c4371040ef@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1650186507; bh=VE9dIl3DRTVppbfNu3+vH+cBN7imAGMr/D/+kTPObbw=; h=Date:To:From:Subject; b=dmTvmCl2iVVvNFCjX9k3wOz5NkrY8UYEtVhp2u2wTzjTKWJKN0zo/2dtTEDU+643e 5tOkKQbPI8izsoJLZJvzIc75u3x5fGxd1JKHcgadlYv9wArnHOsVmSooTxjfDp/BGl 2pwrAbYy9En8KD6hj5RyAEv4+LBTmNN95F21Lool/eruxH26yBz1SlJqYdQ/DLKzuy J3SrVZI1WVgGOcrLcaUviVbDeoWi5DwWn0Ic8c2TbWJu48Uxso83098zbSZKCXqeT2 DFFoYZUhrHup9znYk1VaDxWGzs18rZJ4WXDc5LGY9t4G5mXeodoZEQs2H3lWP4uUoX dfWlA3ZQUO3uQ== Date: Sun, 17 Apr 2022 11:08:26 +0200 Mime-Version: 1.0 To: ~alpine/devel@lists.alpinelinux.org Content-Language: de-DE From: Thomas Schneider Subject: Installation Python Spidev fails Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello, I'm trying to install Python Spidev on a RPi 4 Alpine Linux Edge OS; my current Alpine Linux Release is VERSION_ID=3.16.0_alpha20220328. Using this command pip install spidev for Python Spidev installation fails with this error: Defaulting to user installation because normal site-packages is not writeable Collecting spidev        Using cached spidev-3.5.tar.gz (10 kB)   Preparing metadata (setup.py) ... done Building wheels for collected packages: spidev   Building wheel for spidev (setup.py) ... error   error: subprocess-exited-with-error                                                                                                                                                                                                               × python setup.py bdist_wheel did not run successfully.   │ exit code: 1                                                                                                                                                   ╰─> [14 lines of output]                                                             /usr/lib/python3.10/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions . Please use the underscore name 'description_file' instead         warnings.warn(                                                                 running bdist_wheel       running build       running build_ext                                                                                                                                                building 'spidev' extension       creating build       creating build/temp.linux-aarch64-3.10               gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -g -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python3.10 -c spidev_module .c -o build/temp.linux-aarch64-3.10/spidev_module.o       spidev_module.c:33:10: fatal error: linux/spi/spidev.h: No such file or directory          33 | #include             |          ^~~~~~~~~~~~~~~~~~~~       compilation terminated.       error: command '/usr/bin/gcc' failed with exit code 1       [end of output]       note: This error originates from a subprocess, and is likely not a problem with pip.   ERROR: Failed building wheel for spidev   Running setup.py clean for spidev Failed to build spidev Installing collected packages: spidev   Running setup.py install for spidev ... error   error: subprocess-exited-with-error       × Running setup.py install for spidev did not run successfully.   │ exit code: 1   ╰─> [16 lines of output]       /usr/lib/python3.10/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions . Please use the underscore name 'description_file' instead         warnings.warn(       running install       /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and ot her standards-based tools.         warnings.warn(       running build       running build_ext       building 'spidev' extension       creating build       creating build/temp.linux-aarch64-3.10       gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -g -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python3.10 -c spidev_module .c -o build/temp.linux-aarch64-3.10/spidev_module.o       spidev_module.c:33:10: fatal error: linux/spi/spidev.h: No such file or directory          33 | #include             |          ^~~~~~~~~~~~~~~~~~~~       compilation terminated.       error: command '/usr/bin/gcc' failed with exit code 1       [end of output]       note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> spidev note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. Can you please advise how to fix this issue? THX Thomas