-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IT8951 module fails to build on Bookworm (arm64) as part of the install #152
Comments
This is corrected in my latest PR commit. I tested it successfully on my local PI running a fresh install of Bookworm. |
Hi, I'm still running into this error. Very unfamiliar territory for me here, so pardon any missed knowledge. What do I do to fix this? All help is appreciated. Please see below for error code: ` % Total % Received % Xferd Average Speed Time Time Time Current Running setup.py install for IT8951 did not run successfully. [54 lines of output] note: This error originates from a subprocess, and is likely not a problem with pip. Encountered error while trying to install package. IT8951 note: This is an issue with the package mentioned above, not pip. |
I corrected this in my fork of the project, it will compile the IT8951 module correctly on Bookworm. Unfortunately, the waveshare_epd doesn't currently work due the deprecation of the sysfs interface that package is using. More detail on that is explained here. For now your best bet is to revert back to Bullseye as it still has support for the sysfs the waveshare_epd package is looking for. |
Working on getting Bookworm up and running to test everything and iron out the waveshare issues. Don't want to mess with my "live" system so pulling out spare parts for a test environment. |
Cool. I've got a few extra pi's kicking around so happy to help test if you need it. |
going to close this since issues around the IT8951 hardware have been resolved in the upstream repo. |
On the Bookworm arm64 OS the IT8951 package fails to build and the install of SlowMovie will fail. This is a regression from Bullseye as the same code installs correctly as expected.
Steps to Reproduce
Install a fresh copy of Bookworm. Run the SlowMovie installer and it will fail while compiling the IT8951 module.
` Running setup.py install for RPi.GPIO ... done
DEPRECATION: IT8951 is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
Running setup.py install for IT8951 ... error
error: subprocess-exited-with-error
× Running setup.py install for IT8951 did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
running install
/home/pi/SlowMovie/.venv/lib/python3.11/site-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-aarch64-cpython-311
creating build/lib.linux-aarch64-cpython-311/IT8951
copying IT8951/interface.py -> build/lib.linux-aarch64-cpython-311/IT8951
copying IT8951/constants.py -> build/lib.linux-aarch64-cpython-311/IT8951
copying IT8951/display.py -> build/lib.linux-aarch64-cpython-311/IT8951
copying IT8951/init.py -> build/lib.linux-aarch64-cpython-311/IT8951
running build_ext
building 'IT8951.spi' extension
creating build/temp.linux-aarch64-cpython-311
creating build/temp.linux-aarch64-cpython-311/IT8951
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/pi/SlowMovie/.venv/include -I/usr/include/python3.11 -c IT8951/spi.c -o build/temp.linux-aarch64-cpython-311/IT8951/spi.o
IT8951/spi.c: In function ‘__Pyx_TraceSetupAndCall’:
IT8951/spi.c:22082:37: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
22082 | if (CYTHON_TRACE && (*frame)->f_trace == NULL) {
| ^~
IT8951/spi.c:22084:21: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
22084 | (frame)->f_trace = Py_None;
| ^~
IT8951/spi.c:438:62: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
438 | #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
| ^~
IT8951/spi.c:22091:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
22091 | __Pyx_PyFrame_SetLineNumber(frame, firstlineno);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
IT8951/spi.c: In function ‘__Pyx_PyBytes_Equals’:
IT8951/spi.c:23312:13: warning: ‘ob_shash’ is deprecated [-Wdeprecated-declarations]
23312 | hash1 = ((PyBytesObject)s1)->ob_shash;
| ^~~~~
In file included from /usr/include/python3.11/bytesobject.h:62,
from /usr/include/python3.11/Python.h:50,
from IT8951/spi.c:6:
/usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash;
| ^~~~~~~~
IT8951/spi.c:23313:13: warning: ‘ob_shash’ is deprecated [-Wdeprecated-declarations]
23313 | hash2 = ((PyBytesObject)s2)->ob_shash;
| ^~~~~
/usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash;
| ^~~~~~~~
IT8951/spi.c: In function ‘__Pyx_AddTraceback’:
IT8951/spi.c:438:62: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
438 | #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
| ^~
IT8951/spi.c:24384:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
24384 | __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/aarch64-linux-gnu-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.
╰─> IT8951
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.`
Platform Information
Raspberry Pi 3A, Debian GNU/Linux 12 (bookworm), 6.1.0-rpi4-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05) aarch64 GNU/Linux, Python 3.11.2
The text was updated successfully, but these errors were encountered: