https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205472

            Bug ID: 205472
           Summary: [PATCH] graphics/py-opengl: update to 3.1.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: pyt...@freebsd.org
          Reporter: matt...@reztek.cz
          Keywords: patch
             Flags: maintainer-feedback?(pyt...@freebsd.org)
          Assignee: pyt...@freebsd.org

Created attachment 164437
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=164437&action=edit
update py-opengl and py-opengl-accelerate to 3.1.0

The version of PyOpenGL currently in ports (3.0.1) seems broken, it blows up
when something merely tries to import it.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/xpra/client/gl/gl_check.py",
line 528, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/xpra/client/gl/gl_check.py",
line 509, in main
    props = check_support(True, verbose)
  File "/usr/local/lib/python2.7/site-packages/xpra/client/gl/gl_check.py",
line 468, in check_support
    gl_props = check_GL_support(glarea, force_enable)
  File "/usr/local/lib/python2.7/site-packages/xpra/client/gl/gl_check.py",
line 163, in check_GL_support
    return do_check_GL_support(force_enable)
  File "/usr/local/lib/python2.7/site-packages/xpra/client/gl/gl_check.py",
line 185, in do_check_GL_support
    from OpenGL.GL import GL_VERSION, GL_EXTENSIONS
  File "/usr/local/lib/python2.7/site-packages/OpenGL/GL/__init__.py", line 17,
in <module>
    from OpenGL.GL.VERSION.GL_3_0 import *
  File "/usr/local/lib/python2.7/site-packages/OpenGL/GL/VERSION/GL_3_0.py",
line 14, in <module>
    from OpenGL.raw.GL.VERSION.GL_3_0 import *
  File
"/usr/local/lib/python2.7/site-packages/OpenGL/raw/GL/VERSION/GL_3_0.py", line
690, in <module>
    deprecated=_DEPRECATED,
  File
"/usr/local/lib/python2.7/site-packages/OpenGL/platform/baseplatform.py", line
188, in createBaseFunction
    extension = extension,
  File
"/usr/local/lib/python2.7/site-packages/OpenGL/platform/baseplatform.py", line
126, in constructFunction
    *argTypes
  File "/usr/local/lib/python2.7/ctypes/__init__.py", line 104, in CFUNCTYPE
    class CFunctionType(_CFuncPtr):
TypeError: Error when calling the metaclass bases
    _restype_ must be a type, a callable, or None

Updating PyOpenGL to the current version (3.1.0) resolves the problem. The
attached port updated both py-opengl and py-opengl-accelerate to 3.1.0.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-python@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"

Reply via email to