Open Matebo opened 1 year ago
I have the same issue when running the example code
user@odroid:~/tools/blink-python$ cat app.py
import Odroid.GPIO as GPIO
# You can also use 'import RPi.GPIO as GPIO'.
import time
'''
GPIO.BCM == GPIO.SOC
GPIO.BOARD
GPIO.WIRINGPI
'''
GPIO.setmode(GPIO.BOARD)
GPIO.setup(13, GPIO.OUT)
while True:
GPIO.output(13, GPIO.HIGH)
time.sleep(1)
GPIO.output(13, GPIO.LOW)
time.sleep(1)
ebo@odroid:~/tools/blink-python$ python3 app.py
Traceback (most recent call last):
File "app.py", line 1, in <module>
import Odroid.GPIO as GPIO
File "/usr/local/lib/python3.8/dist-packages/Odroid/GPIO/__init__.py", line 29, in <module>
from Odroid._GPIO import *
ImportError: libwiringPi.so.3: cannot open shared object file: No such file or directory
user@odroid:~/tools/blink-python$
We made a symbolic link from libwiringPi.so.3 to libwiringPi.so.2 in /usr/lib/aarch64-linux-gnu with
ln -s libwiringPi.so.2 libwiringPi.so.3
I think it still needs a permanent fix
I have a new Odroid C4 and some python code that was originally written for Raspberry Pi. I changed
import RPi.GPIO
toimport Odroid.GPIO
and followed the installation requirements from the readme. I get stuck on on ImportError: libwiringPi.so.3: cannot open shared object file: No such file or directory. Any suggestions?From installation to ImportError