Hello,
I am on LE nightly LibreELEC-RPi4.arm-11.0-nightly-20220424-d546803 and would like to use the python-cec module for some advanced CEC programming. Since there is no pip on LE, I thought it would be possible to compile it myself on another RPi4 with Rasperry Pi OS (64-bit). Using it on LE gives me this error:
Python
Traceback (most recent call last):
File "/storage/scripts/cec/test.py", line 6, in <module>
from cec import cec
File "/storage/lib/cec/cec.py", line 9, in <module>
__bootstrap__()
File "/storage/lib/cec/cec.py", line 7, in __bootstrap__
mod = importlib.util.module_from_spec(spec)
ImportError: /storage/lib/cec/cec.cpython-39-aarch64-linux-gnu.so: wrong ELF class: ELFCLASS64
What am I missing? Both OSes are aarch64, right?
UPDATE:
I solved the problem. Had to compile it on the 32bit version of Raspberry Pi OS. In addition to that, it was necessary to compile with libcec version 4 (most current is 6).