Error Loading pygame program

How do I fix this error?

Screenshots, links, or other helpful context: This is my own chess game I am making and one day the error happened by itself

pygame 2.5.2 (SDL 2.28.2, Python 3.10.11)
Hello from the pygame community.
libGL error: MESA-LOADER: failed to open swrast: /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/ version `GLIBC_2.38' not found (required by /nix/store/0lfnrz6nq5myv787cih78knzaqy9z9fc-mesa-23.1.9-drivers/lib/dri/ (search paths /nix/store/0lfnrz6nq5myv787cih78knzaqy9z9fc-mesa-23.1.9-drivers/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:  151 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  155
  Current serial number in output stream:  156

Try the solution in this topic:


Hello, if the previous post solved your problem, please mark it as solution.
Otherwise, you can give more info.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.