Minecraft
Minecraft copied to clipboard
Library "GLU" not found
I have installed pyglet, when running the main.py, a error came up saying
Traceback (most recent call last):
File "main.py", line 7, in
But I can't use pip to install the GLU library, where is the GLU library ?
Try pip install pyopengl
i had tried pip install pyopengl
but get the same problem.
Traceback (most recent call last):
File "main.py", line 7, in <module>
from pyglet.gl import *
File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/__init__.py", line 510, in <module>
import pyglet.window
File "/usr/local/lib/python2.7/dist-packages/pyglet/window/__init__.py", line 1684, in <module>
gl._create_shadow_window()
File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/__init__.py", line 494, in _create_shadow_window
_shadow_window = Window(width=1, height=1, visible=False)
File "/usr/local/lib/python2.7/dist-packages/pyglet/window/xlib/__init__.py", line 474, in __init__
super(XlibWindow, self).__init__(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pyglet/window/__init__.py", line 636, in __init__
config = screen.get_best_config(template_config)
File "/usr/local/lib/python2.7/dist-packages/pyglet/window/__init__.py", line 288, in get_best_config
configs = self.get_matching_configs(template)
File "/usr/local/lib/python2.7/dist-packages/pyglet/window/xlib/__init__.py", line 238, in get_matching_configs
have_13 = self.display.info.have_version(1, 3)
File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/glx_info.py", line 81, in have_version
server_version = self.get_server_version().split()[0]
File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/glx_info.py", line 101, in get_server_version
raise GLXInfoException('Could not determine GLX server version')
pyglet.gl.glx_info.GLXInfoException: Could not determine GLX server version
any solution found ?
Did you install all actual libraries? http://openbsd.7691.n7.nabble.com/Library-quot-GLU-quot-not-found-td107080.html
First, try; sudo apt-get install freeglut3-dev
If that doesn’t work, try manually searching for the library; sudo apt-cache search glut
@Aareon After apt-cache search glut ,what to do next?
@johnbhlm Sorry for the very late reply, better late than never ig.
What was the output of apt-cache search glut
?
If anyone else is struggling with this issue, please try installing mesa
and/or mesa-utils
for whichever distribution of Linux you're using. It's a google search away. When I originally answered in this thread, I was referencing this StackOverflow answer.
sudo apt-get install freeglut3-dev
solves the problem in ubuntu 20.04 wsl2 win 10
I actually had the problem installing open AI gym, but found a solution here XD