Hello together,
I had the same problem by using this SCRIPT. But on my system the libmraa - Library is installed.
libmraa-rockpi4
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘libmraa’ instead of ‘libmraa-rockpi4’
libmraa is already the newest version (1.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
And I had the same problem, that the Service is not running:
● rockpi-poe.service - Rockpi PoE-FAN
Loaded: loaded (/lib/systemd/system/rockpi-poe.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Tue 2021-06-29 16:36:05 CEST; 18min ago
Process: 1661 ExecStart=/usr/bin/python3 /usr/bin/rockpi-poe.py start (code=exited, status=0/SUCCESS)
Process: 1804 ExecStop=/usr/bin/python3 /usr/bin/rockpi-poe.py stop (code=exited, status=0/SUCCESS)
Main PID: 1661 (code=exited, status=0/SUCCESS)
Jun 29 16:36:05 CompNode01 libmraa[1661]: pwm_init: pwm0. Failed to open export for writing: No such file or directory
Jun 29 16:36:05 CompNode01 python3[1661]: ‘NoneType’ object has no attribute ‘write’
Jun 29 16:36:05 CompNode01 python3[1661]: using python3 rockpi-poe.py start|stop|enable
Jun 29 16:36:05 CompNode01 libmraa[1804]: libmraa version v2.1.0-11-g06b2be2 initialised by user ‘root’ with EUID 0
Jun 29 16:36:05 CompNode01 libmraa[1804]: gpio: platform doesn’t support chardev, falling back to sysfs
Jun 29 16:36:05 CompNode01 libmraa[1804]: libmraa initialised for platform ‘ROCK Pi 4’ of type 20
Jun 29 16:36:05 CompNode01 libmraa[1804]: pwm_init: pwm0. Failed to open export for writing: No such file or directory
Jun 29 16:36:05 CompNode01 python3[1804]: ‘NoneType’ object has no attribute ‘write’
Jun 29 16:36:05 CompNode01 python3[1804]: using python3 rockpi-poe.py start|stop|enable
Jun 29 16:36:05 CompNode01 systemd[1]: rockpi-poe.service: Succeeded.
What kind of PYTHON - Version did you are using? On my Node is 3.7.3 - Version. What can I do?
Best regards
Matthias