katrain icon indicating copy to clipboard operation
katrain copied to clipboard

libGL errors

Open cdhainaut opened this issue 2 years ago • 4 comments

Hi,

My machine runs on linux mint 21.2. I tried installing katrain on a fresh conda environment with python 3.11.4 running pip install katrain. After a successfull installation, this is what I get when trying to run katrain:

libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  122
  Current serial number in output stream:  123

Any idea ? Thanks

cdhainaut avatar Sep 09 '23 14:09 cdhainaut

I just searched on Internet, it may be caused by integrated gpu and discrete gpu run at the same time. To solve it:

$ nvidia-setting
PRIME Profiles
NVIDIA(Performance Mode)

if ur gpu comes from Nvidia.

HackYardo avatar Sep 14 '23 09:09 HackYardo

Hi,

My machine runs on linux mint 21.2. I tried installing katrain on a fresh conda environment with python 3.11.4 running pip install katrain. After a successfull installation, this is what I get when trying to run katrain:

libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  122
  Current serial number in output stream:  123

Any idea ? Thanks

Same issue here

siasio avatar Oct 03 '23 14:10 siasio

I think you're missing the libgl1-mesa-dri package. You can install it with sudo apt install -y libgl1-mesa-dri

nrobinaubertin avatar Mar 13 '24 17:03 nrobinaubertin