py-opengl doesn't work on FreeBSD 7.1. Tested with games/glchess from ports and a self written game. The error message is: [mickraus@gandalf ~]\$ glchess Traceback (most recent call last): File "/usr/local/bin/glchess", line 4, in <module> import glchess.main File "/usr/local/lib/python2.5/site-packages/glchess/main.py", line 20, in <module> import scene.opengl File "/usr/local/lib/python2.5/site-packages/glchess/scene/opengl/__init__.py", line 2, in <module> import OpenGL.GL File "/usr/local/lib/python2.5/site-packages/OpenGL/GL/__init__.py", line 2, in <module> from OpenGL.raw.GL import * File "/usr/local/lib/python2.5/site-packages/OpenGL/raw/GL/__init__.py", line 6, in <module> from OpenGL.raw.GL.constants import * File "/usr/local/lib/python2.5/site-packages/OpenGL/raw/GL/constants.py", line 7, in <module> from OpenGL import platform, arrays File "/usr/local/lib/python2.5/site-packages/OpenGL/platform/__init__.py", line 36, in <module> _load() File "/usr/local/lib/python2.5/site-packages/OpenGL/platform/__init__.py", line 26, in _load plugin = PlatformPlugin.match( key ) File "/usr/local/lib/python2.5/site-packages/OpenGL/plugins.py", line 44, in match raise KeyError( """No platform plugin registered for %s"""%(key,)) KeyError: "No platform plugin registered for ('freebsd7', 'posix')" How-To-Repeat: Install e.g. games/glchess and start it. Probably any other py-opengl program will do, too.
Responsible Changed From-To: freebsd-ports-bugs->ahze Over to maintainer.
I have found the bug. The name of the posix platform plugin was 'posix ' not 'posix' as it should be. So the 'posix ' in ('freebsd7', 'posix') test failed. The appended patch fixes the problem. Kind regards, Michael Krauss
Responsible Changed From-To: ahze->amdmi3 I'm taking it, it's 3 months timeout for 130831 and 2 weeks for 133638, and the bug definitely needs to be fixed
amdmi3 2009-05-06 22:59:45 UTC FreeBSD ports repository Modified files: graphics/py-opengl Makefile Added files: graphics/py-opengl/files patch-OpenGL-__init__.py Log: - The port was completely broken, all py-opengl apps failed to run with error "No platform plugin registered for ('freebsd7', 'posix')", fix this PR: 130821 [1], 133638 [2] Submitted by: Michael Krauss <hippodriver at gmx.net> [1], myself [2] Approved by: maintainer timeout (ahze, >3 months) Revision Changes Path 1.33 +1 -1 ports/graphics/py-opengl/Makefile 1.1 +11 -0 ports/graphics/py-opengl/files/patch-OpenGL-__init__.py (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!