We are trying to execute a python program from e2 instance . but we are getting the below error.
Attaching the error .
sh-4.2$ python3 Landing.py
Traceback (most recent call last):
File "Landing.py", line 2, in <module>
from PyQt5 import QtCore, QtGui, QtWidgets
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Can someone help on this issue?
CodePudding user response:
On Amazon Linux 2, you need to install libglvnd-glx
in order to get the libGL.so.1
library.
yum update
yum install libglvnd-glx
# and now libGL.so.1 exists
bash-5.1# ls -l /lib64/libGL.*
lrwxrwxrwx. 1 root root 14 Oct 22 2021 /lib64/libGL.so.1 -> libGL.so.1.7.0
-rwxr-xr-x. 1 root root 1000048 Oct 22 2021 /lib64/libGL.so.1.7.0