python找不到GL

python找不到GL,python,opengl,Python,Opengl,尝试在amd64机器上使用FreeBSD下的python3.3使用pyglet1.2alpha1,我得到 $ python ~/.local/lib/python3.3/site-packages/pyglet/gl/gl_info.py Traceback (most recent call last): File "~/.local/lib/python3.3/site-packages/pyglet/lib.py", line 111, in load_library lib

尝试在amd64机器上使用FreeBSD下的
python3.3
使用
pyglet1.2alpha1
,我得到

$ python ~/.local/lib/python3.3/site-packages/pyglet/gl/gl_info.py

Traceback (most recent call last):
  File "~/.local/lib/python3.3/site-packages/pyglet/lib.py", line 111, in load_library
    lib = ctypes.cdll.LoadLibrary(name)
  File "/usr/local/lib/python3.3/ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "/usr/local/lib/python3.3/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: Shared object "GL" not found, required by "python"

During handling of the above exception, another exception occurred:
[…]
  File "~/.local/lib/python3.3/site-packages/pyglet/lib.py", line 118, in load_library
    if ((self.linux_not_found_error not in o.message) and
AttributeError: 'OSError' object has no attribute 'message'
我已经通过运行
glxgears
(works)测试了我的Mesa安装,我尝试安装
PyOpenGL
进行比较(这不起作用,因为它依赖于PIL,而PIL不适用于python3.3),为了确保在安装了
mesa演示版
freeglut
之后,我重新安装了
python3.3
,但仍然没有任何更改

python2.7
中,我得到了相同的错误

OSError: Shared object "GL" not found, required by "python2"
(在处理上述异常的过程中没有出现
问题,但在安装
PyOpenGL
(正常工作)之后,发生了另一个异常


这里有什么问题?如何让
pyglet
工作?

pyglet
附带的各种python文件,如果它们在linux上运行,则尝试显式加载外部资源测试。因此,它们在FreeBSD上的评估结果不正确。在下面列出的文件中,将
sys.platform.startswith('linux')
替换为
sys.platform.startswith('linux')或sys.platform.startswith('freebsd')
时,似乎可以正常工作

pyglet/lib.py
pyglet/app/base.py
pyglet/gl/__init__.py
pyglet/image/codecs/__init__.py
pyglet/input/__init__.py
pyglet/media/drivers/openal/__init__.py