Date: Sun, 12 Apr 2009 08:00:22 +0400 (MSD) From: Dmitry Marakasov <amdmi3@amdmi3.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ahze@FreeBSD.org Subject: ports/133638: [PATCH] graphics/py25-opengl: doesn't work at all Message-ID: <20090412040022.A666310883E@hades.panopticon> Resent-Message-ID: <200904120410.n3C4A1Lm081301@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 133638 >Category: ports >Synopsis: [PATCH] graphics/py25-opengl: doesn't work at all >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 12 04:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 8.0-CURRENT i386 >Organization: >Environment: System: FreeBSD hades.panopticon 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Thu Apr 9 02:46:37 MSD >Description: py-opengl doesn't work at all. For example, backtrace from FretsOnFire: Traceback (most recent call last): File "/usr/local/bin/FretsOnFire", line 16, in <module> execfile(os.path.join(package_dir, "FretsOnFire.py")) File "/usr/local/lib/fretsonfire/FretsOnFire/FretsOnFire.py", line 36, in <module> from GameEngine import GameEngine File "/usr/local/lib/fretsonfire/FretsOnFire/GameEngine.py", line 23, in <module> from OpenGL.GL import * 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 47, in match raise KeyError( """No platform plugin registered for %s"""%(key,)) KeyError: "No platform plugin registered for ('freebsd8', 'posix')" The cause is typo in plugin name (see patch), so posix plugin is not used. This was fixed in pyopengl bzr (but the fix is not yet in 3.0.0). While here, also use SF macro. Added file(s): - files/patch-OpenGL-__init__.py Port maintainer (ahze@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- py25-opengl-3.0.0.b8_2.patch begins here --- Index: Makefile =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/graphics/py-opengl/Makefile,v retrieving revision 1.32 diff -u -u -r1.32 Makefile --- Makefile 23 Jan 2009 16:27:40 -0000 1.32 +++ Makefile 12 Apr 2009 03:53:20 -0000 @@ -7,10 +7,9 @@ PORTNAME= opengl PORTVERSION= 3.0.0.b8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics python -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= py${PORTNAME} +MASTER_SITES= SF/py${PORTNAME} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= PyOpenGL-${PORTVERSION:S/.b/b/} Index: files/patch-OpenGL-__init__.py =================================================================== RCS file: files/patch-OpenGL-__init__.py diff -N files/patch-OpenGL-__init__.py --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-OpenGL-__init__.py 12 Apr 2009 03:53:56 -0000 @@ -0,0 +1,11 @@ +--- OpenGL/__init__.py.orig 2008-12-07 06:58:16.000000000 +0300 ++++ OpenGL/__init__.py 2009-04-12 07:52:27.000000000 +0400 +@@ -102,7 +102,7 @@ + # Declarations of plugins provided by PyOpenGL itself + from OpenGL.plugins import PlatformPlugin, FormatHandler + PlatformPlugin( 'nt', 'OpenGL.platform.win32.Win32Platform' ) +-PlatformPlugin( 'posix ', 'OpenGL.platform.glx.GLXPlatform' ) ++PlatformPlugin( 'posix', 'OpenGL.platform.glx.GLXPlatform' ) + PlatformPlugin( 'linux2', 'OpenGL.platform.glx.GLXPlatform' ) + PlatformPlugin( 'darwin', 'OpenGL.platform.darwin.DarwinPlatform' ) + --- py25-opengl-3.0.0.b8_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090412040022.A666310883E>