eclipse / mraa

Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.
http://mraa.io
MIT License
1.38k stars 615 forks source link

"No Pins" | Rock 5b+ | Ubuntu #1134

Open divyansh-kumar opened 1 month ago

divyansh-kumar commented 1 month ago

Hello everyone, I am trying to install mraa on my rock5b+ which is running ubuntu 24.04, everything is working fine except the mraa. I have followed this guide https://docs.radxa.com/en/rock5/rock5b/app-development/mraa?board=ROCK+5B%2B
And have successfully compiled and installed mraa

With command mraa-gpio version it shows

Version v2.2.0 on Unknown platform

and mraa-gpio list shows No Pins

and because of that i cannot access it in my python code, which give me the error

rock5@rock5:~/Desktop$ sudo python3 blink.py Traceback (most recent call last): File "/home/rock5/Desktop/blink.py", line 5, in <module> gpio_1 = mraa.Gpio(23) ^^^^^^^^^ AttributeError: module 'mraa' has no attribute 'Gpio'

can someone help me solve this