RPi.GPIO python module for Pine A64/A64+
#98
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
  Reply


Messages In This Thread
RE: RPi.GPIO python module for Pine A64/A64+ - by ncs - 02-23-2022, 02:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  fm transmitter with gpio weasel18 2 4,831 09-10-2019, 04:28 AM
Last Post: desai_amogh
  How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)? dkebler 1 3,604 06-12-2019, 10:37 AM
Last Post: dkebler
Lightbulb Sample GPIO codes highlighting RPi.GPIO-PineA64 and the PI bus MarkHaysHarris777 6 11,142 06-07-2019, 12:37 AM
Last Post: tllim
Star GPIO, SPI and I2C C++ Lib databit 7 11,223 02-04-2019, 05:45 AM
Last Post: Jeff R
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 4 11,860 01-24-2019, 03:36 AM
Last Post: Fifth
  GPIO and SPI SamR1 20 31,630 03-15-2018, 10:32 AM
Last Post: jomoengineer
Question GPIO shockr 7 14,781 03-11-2018, 01:52 AM
Last Post: jomoengineer
  Read GPIO problem shworker 14 21,191 08-17-2017, 01:21 PM
Last Post: martinayotte
  Cross-wired Uart Ports between two Pine Boards via Cat5 Cable MarkHaysHarris777 10 16,026 11-20-2016, 04:17 AM
Last Post: pfeerick
  GPIO fiq capability joseph 3 6,102 11-10-2016, 06:07 PM
Last Post: joseph

Forum Jump:


Users browsing this thread: 1 Guest(s)