Can you pastebin the debug output you see on your console?
I am also interested if anyone ever got event detection (interrupts) to work and if so what modificaitons were made to the dts to enable this?
Hi all,
i've the following error when I try to install RPi.GPIO-PineA64 via command sudo python3 setup.py install:
source/py_gpio.c: In function ‘py_setup_channel’:
/usr/include/python3.9/object.h:633:41: error: expected ‘(’ before ‘PyType_HasFeature’
633 | #define PyType_FastSubclass(type, flag) PyType_HasFeature(type, flag)
| ^~~~~~~~~~~~~~~~~
/usr/include/python3.9/listobject.h:25:5: note: in expansion of macro ‘PyType_FastSubclass’
25 | PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LIST_SUBCLASS)
| ^~~~~~~~~~~~~~~~~~~
source/py_gpio.c:247:14: note: in expansion of macro ‘PyList_Check’
247 | } else if PyList_Check(chanlist) {
| ^~~~~~~~~~~~
source/py_gpio.c:247:37: error: expected ‘;’ before ‘{’ token
247 | } else if PyList_Check(chanlist) {
| ^
source/py_gpio.c: In function ‘chan_from_gpio’:
source/py_gpio.c:580:39: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
580 | if (*(pinToGpioPineA64+chan) == gpio)
| ^~
source/py_gpio.c:592:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
592 | if (*(*pin_to_gpio+chan) == gpio)
| ^~
source/py_gpio.c: In function ‘PyInit__GPIO’:
source/py_gpio.c:1065:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated [-Wdeprecated-declarations]
1065 | 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:1066:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
1066 | 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);
| ^~~~~~~~~~~~~~~~~~
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
--
Can anyone helps me to find out the solution?
MT