libGL error: MESA-LOADER: failed to open crocus

1,202 views
Skip to first unread message

Michel Keyaerts

unread,
Oct 29, 2022, 8:56:30 AM10/29/22
to Kivy users support
Hello,
I am new to kivy. I am testing example codes. When I launch the app, nothing happens and  I get the following errors:

libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_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: crocus
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: 149 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 80
Current serial number in output stream: 81

Here is the initial code:

import kivy
kivy.require('2.0.0'
from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):
       def build(self):
            return Label(text='Hello world')

if __name__ == '__main__':
       MyApp().run()

WHat could I do?
 I have
/usr/lib/dri/crocus_dri.so
and
/usr/lib/dri/swrast_dri.so
on my computer
Many thanks,    Michel

Elliot Garbus

unread,
Oct 29, 2022, 10:50:16 AM10/29/22
to kivy-...@googlegroups.com

I suspect and installation error.  I have not done an install on Linux. 

Make sure you follow the directions here: https://kivy.org/doc/stable/gettingstarted/installation.html#install-pip

And ensure your graphics driver is up to date.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/329379d0-1833-4fd4-822d-46eb6ebac4ffn%40googlegroups.com.

 

Michel Keyaerts

unread,
Oct 29, 2022, 2:53:07 PM10/29/22
to Kivy users support
Thank you for your answer,
If I remember correctly I had installed kivy via anaconda: conda install kivy -c conda-forge
For the graphic drivers I'm not sure. I just upgraded all my system. The problem is still the same.
In fact, a few weeks ago, kivy was working fine; I think I had problems after installing kotlin and android studio but I'm not sure
Reply all
Reply to author
Forward
0 new messages