Closed GoogleCodeExporter closed 9 years ago
Fixed in 2638:ca17f2a533b7
Original comment by Adam.JT...@gmail.com
on 25 Apr 2012 at 9:06
This does not seem right. The framework uses
pyglet.lib.load_library(framework="xxx") in many places; for me on OS X, this
change breaks `import pyglet.gl`:
>>> import pyglet.gl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyglet/gl/__init__.py", line 97, in <module>
from pyglet.gl.lib import GLException
File "pyglet/gl/lib.py", line 141, in <module>
from pyglet.gl.lib_agl import link_GL, link_GLU, link_AGL
File "pyglet/gl/lib_agl.py", line 49, in <module>
framework='/System/Library/Frameworks/OpenGL.framework')
File "pyglet/lib.py", line 90, in load_library
raise ImportError("No library name specified")
ImportError: No library name specified
The "if not names" check should be after the "if framework in kwargs" check
(diff attached).
Thanks,
Ben
Original comment by wikipedia.earwig@gmail.com
on 27 Apr 2012 at 4:57
Attachments:
Sorry, never mind this; someone already reported it as issue #572
Original comment by wikipedia.earwig@gmail.com
on 27 Apr 2012 at 5:03
Ah sorry Darwiners I'll commit the 572 patch later today.
Original comment by Adam.JT...@gmail.com
on 27 Apr 2012 at 8:55
Original issue reported on code.google.com by
ccanepacc@gmail.com
on 23 Mar 2012 at 3:54