Hi,
I followed link (https://wiki.radxa.com/Rockpi4/dev/libmraa) to install mraa library.
python2 is working fine.
We using python3 for our development that’s why we want to use python3 rockpi4 mraa library.
How can i install python3 rockpi4 mraa library ?
root@localhost:/boot# sudo apt-get install linux-4.4-latest
Reading package lists… Done
Building dependency tree
Reading state information… Done
linux-4.4-latest is already the newest version (4.4.154-99-rockchip).
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
linux-4.4-latest : Depends: linux-image-4.4.154-99-rockchip-g5b699a48544d but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
root@localhost:/boot# sudo apt-get install libmraa-rockpi4
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
libmraa-rockpi4 : Depends: python but it is not going to be installed
Depends: libpython2.7 but it is not going to be installed
linux-4.4-latest : Depends: linux-image-4.4.154-99-rockchip-g5b699a48544d but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
root@localhost:/boot#
Hi setq,
Thank you for your response.
Trying to generate binary using pyinstaller i am getting error (both python2,python3).
Traceback (most recent call last):
File "tset.py", line 2, in <module>
ModuleNotFoundError: No module named 'mraa'
[1555] Failed to execute script test
Other pip installed modules is contains our code that is working only libmraa we getting error if i execute manually python code working. I want to generate binary any other method is there without facing any issue with libmraa library ?
python3 libmraa working.
/boot/hw_intfc.conf is not present update kernel 4.4.154-99-rockchip (export DISTRO=bionic-testing).
No our python code used mraa library we want to generate python file to executable file.
When we generating executable using pyinstaller.
While execution of python code ./gpio_test i am getting error import mraa module not found.
Manually execute python gpio_test.py working fine.