Minecraft icon indicating copy to clipboard operation
Minecraft copied to clipboard

Library "GLU" not found

Open helxsz opened this issue 11 years ago • 8 comments

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 from pyglet.gl import * File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/init.py", line 99, in from pyglet.gl.lib import GLException File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/lib.py", line 143, in from pyglet.gl.lib_glx import link_GL, link_GLU, link_GLX File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/lib_glx.py", line 49, in glu_lib = pyglet.lib.load_library('GLU') File "/usr/local/lib/python2.7/dist-packages/pyglet/lib.py", line 122, in load_library raise ImportError('Library "%s" not found.' % names[0]) ImportError: Library "GLU" not found.

But I can't use pip to install the GLU library, where is the GLU library ?

helxsz avatar Nov 07 '13 10:11 helxsz

Try pip install pyopengl

jminardi avatar Nov 07 '13 17:11 jminardi

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

chaopeng avatar Dec 10 '13 10:12 chaopeng

any solution found ?

tejeshpapineni avatar Apr 04 '14 13:04 tejeshpapineni

Did you install all actual libraries? http://openbsd.7691.n7.nabble.com/Library-quot-GLU-quot-not-found-td107080.html

gentoomaniac avatar Apr 04 '14 14:04 gentoomaniac

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 avatar Oct 31 '17 17:10 Aareon

@Aareon After apt-cache search glut ,what to do next?

johnbhlm avatar Dec 10 '20 06:12 johnbhlm

@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.

Aareon avatar Feb 17 '21 05:02 Aareon

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

raufie avatar May 10 '21 07:05 raufie