[MacPorts] #39196: py33-opengl-accelerate import level >=0 for python 3.3.
#39196: py33-opengl-accelerate import level >=0 for python 3.3. ---------------------+------------------------------------ Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: py33-opengl-accelerate ---------------------+------------------------------------ There is an incompatibility between python 3.3 and PyOpenGL-accelerate that is fortunately easy to fix. Attached is a patch. Without it, you get errors of this sort: {{{ File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3 /site-packages/OpenGL/GL/__init__.py", line 3, in <module> from OpenGL.GL.VERSION.GL_1_1 import * File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3 /site-packages/OpenGL/GL/VERSION/GL_1_1.py", line 10, in <module> from OpenGL import platform, constants, constant, arrays File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3 /site-packages/OpenGL/arrays/__init__.py", line 19, in <module> from OpenGL.arrays.arraydatatype import * File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3 /site-packages/OpenGL/arrays/arraydatatype.py", line 14, in <module> from OpenGL_accelerate.arraydatatype import ArrayDatatype as ADT File "arraydatatype.pyx", line 1, in init OpenGL_accelerate.arraydatatype (src/arraydatatype.c:9315) File "wrapper.pyx", line 2, in init OpenGL_accelerate.wrapper (src/wrapper.c:10792) ValueError: level must be >= 0 }}} -- Ticket URL: <https://trac.macports.org/ticket/39196> MacPorts <http://www.macports.org/> Ports system for OS X
#39196: py33-opengl-accelerate import level >=0 for python 3.3. -------------------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-opengl-accelerate | -------------------------------------+------------------- Comment (by jmr@…): Is there an upstream report for this? -- Ticket URL: <https://trac.macports.org/ticket/39196#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39196: py33-opengl-accelerate import level >=0 for python 3.3. -------------------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-opengl-accelerate | -------------------------------------+------------------- Comment (by mmoll@…): Yes: https://svn.boost.org/trac/boost/ticket/4657. Not sure what the hold up is with incorporating this patch. -- Ticket URL: <https://trac.macports.org/ticket/39196#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39196: py33-opengl-accelerate import level >=0 for python 3.3. -------------------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-opengl-accelerate | -------------------------------------+------------------- Comment (by mmoll@…): Oops, that upstream report link is totally unrelated. I must have been working on two things at once. There is no bug tracker for PyOpenGL- accelerate, so there is no upstream report. -- Ticket URL: <https://trac.macports.org/ticket/39196#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39196: py33-opengl-accelerate import level >=0 for python 3.3. -------------------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-opengl-accelerate | -------------------------------------+------------------- Comment (by jmr@…): Replying to [comment:4 mmoll@…]:
There is no bug tracker for PyOpenGL-accelerate, so there is no upstream report. It's the same as for PyOpenGL: http://sourceforge.net/p/pyopengl/bugs/
-- Ticket URL: <https://trac.macports.org/ticket/39196#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#39196: py33-opengl-accelerate import level >=0 for python 3.3. -------------------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-opengl-accelerate | -------------------------------------+------------------- Comment (by mmoll@…): This is marked as "fixed" upstream: http://sourceforge.net/p/pyopengl/bugs/259/. This doesn't really seem like a fix until the next version of py-opengl-accelerate is released. Can we use the attached patch till then? Or can someone with better python skills regenerate the c files? -- Ticket URL: <https://trac.macports.org/ticket/39196#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#39196: py33-opengl-accelerate import level >=0 for python 3.3. -------------------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-opengl-accelerate | -------------------------------------+------------------- Comment (by sean@…): Replying to [comment:9 mmoll@…]:
This is marked as "fixed" upstream: http://sourceforge.net/p/pyopengl/bugs/259/. This doesn't really seem like a fix until the next version of py-opengl-accelerate is released. Can we use the attached patch till then? Or can someone with better python skills regenerate the c files?
I think the attached diff is fine until the next release is out. I had to do this previously for a port (can't remember which) that needed newly generated C files and the consensus was that it was better to have an ugly diff for a short time than to require cython for the fix. -- Ticket URL: <https://trac.macports.org/ticket/39196#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#39196: py33-opengl-accelerate import level >=0 for python 3.3. -------------------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py33-opengl-accelerate | -------------------------------------+------------------- Comment (by jmr@…): Go ahead and apply it. -- Ticket URL: <https://trac.macports.org/ticket/39196#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#39196: py33-opengl-accelerate import level >=0 for python 3.3. -------------------------------------+-------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: py33-opengl-accelerate | -------------------------------------+-------------------- Changes (by mmoll@…): * status: new => closed * resolution: => fixed Comment: Committed in r117985. -- Ticket URL: <https://trac.macports.org/ticket/39196#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts