Error: ImportError: libOpenGL.so.0: cannot open shared object file: No such file or directory
-
Hi guys,
I am learning Qt6-python following create-a-simple-application.
But I meet an error as below,Traceback (most recent call last):
File "***/hello_world.py", line 3, in <module>
from PySide6 import QtCore, QtWidgets, QtGui
ImportError: libOpenGL.so.0: cannot open shared object file: No such file or directorySo, how can I solve it?
Any answer or guide will be appreciated!
-
@Eric-Song
Hello and welcome.That library is used to support OpenGL. Not my area, but I would not have thought your app should be using that....
...Ah ha, indeed! Apparently a PySide6 bug to require it. See https://bugreports.qt.io/browse/PYSIDE-1461 for bug report and https://stackoverflow.com/questions/65751536/importerror-libopengl-so-0-cannot-open-shared-object-file-no-such-file-or-dir for solution.