Bug 130821 - graphics/py-opengl: py25-opengl-3.0.0.b8 / "No platform plugin registered for ('freebsd7', 'posix')"
Summary: graphics/py-opengl: py25-opengl-3.0.0.b8 / "No platform plugin registered for...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-21 14:10 UTC by Michael Krauss
Modified: 2009-05-07 00:00 UTC (History)
0 users

See Also:


Attachments
pyopengl.patch (576 bytes, patch)
2009-02-04 15:25 UTC, Michael Krauss
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Krauss 2009-01-21 14:10:01 UTC
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-01-21 18:42:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ahze

Over to maintainer.
Comment 2 Michael Krauss 2009-02-04 15:25:38 UTC
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
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2009-05-06 02:13:03 UTC
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
Comment 4 dfilter service freebsd_committer freebsd_triage 2009-05-06 23:59:58 UTC
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"
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2009-05-07 00:00:06 UTC
State Changed
From-To: open->closed

Committed. Thanks!