Bug 2220441 - F39FailsToInstall: python3-pyopengl, python3-pyopengl-tk
Summary: F39FailsToInstall: python3-pyopengl, python3-pyopengl-tk
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pyopengl
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Scott Talbert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.12 F39FailsToInstall 2219981 2220005 2220006 2220007 2220008 2220009 2220010 2220209 2220241 2220444 2220472 2220557 2220592 2220617 2222644
TreeView+ depends on / blocked
 
Reported: 2023-07-05 19:18 UTC by Fedora Fails To Install
Modified: 2023-07-18 15:03 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-07-18 14:54:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fedora Fails To Install 2023-07-05 19:18:58 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

Your package (python-pyopengl) Fails To Install in Fedora 39:

can't install python3-pyopengl:
  - nothing provides python(abi) = 3.11 needed by python3-pyopengl-3.1.6-1.fc38.x86_64
  
can't install python3-pyopengl-tk:
  - nothing provides python(abi) = 3.11 needed by python3-pyopengl-tk-3.1.6-1.fc38.noarch
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.


P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-39-x86_64 --config-opts mirrored=False install python3-pyopengl python3-pyopengl-tk


P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Scott Talbert 2023-07-07 16:47:54 UTC
Under investigation, although I'm not entirely sure this is an issue in pyopengl.  Might possibly be in numpy or cython.

Comment 2 Ben Beasley 2023-07-11 22:53:15 UTC
$ fedpkg mockbuild --enablerepo=local

============================= test session starts ==============================
platform linux -- Python 3.12.0b3, pytest-7.3.2, pluggy-1.0.0
rootdir: /builddir/build/BUILD/PyOpenGL-3.1.6/PyOpenGL-3.1.6
collected 66 items / 1 skipped

PyOpenGL-3.1.6/tests/test_arraydatatype.py ................              [ 24%]
PyOpenGL-3.1.6/tests/test_core.py ..............FFF.F...F..F             [ 63%]
PyOpenGL-3.1.6/tests/test_evaluators.py ....F..                          [ 74%]
PyOpenGL-3.1.6/tests/test_tess.py ...                                    [ 78%]
PyOpenGL-3.1.6/tests/test_textures.py .............                      [ 98%]
PyOpenGL-3.1.6/tests/test_vbo_memusage.py s                              [100%]

=================================== FAILURES ===================================
____________________ TestCore.test_glbufferparameter_create ____________________

self = <test_core.TestCore testMethod=test_glbufferparameter_create>

    def test_glbufferparameter_create(self):
        if not glGenBuffers or not glGenVertexArrays:
            return None
        for create in [True,False]:
            buffer = glGenBuffers(1)
            vertex_array = glGenVertexArrays(1,buffer)
            glBindBuffer(GL_ARRAY_BUFFER, buffer)
            try:
                for param, expected in [
                    (GL_BUFFER_SIZE,0),
                    (GL_BUFFER_MAPPED,GL_FALSE),
                    (GL_BUFFER_STORAGE_FLAGS,0),
                    (GL_BUFFER_USAGE,GL_STATIC_DRAW),
                ]:
                    if create:
                        mapped = GLint(-1)
>                       glGetBufferParameteriv(GL_ARRAY_BUFFER, param, mapped)

PyOpenGL-3.1.6/tests/test_core.py:241:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???

src/latebind.pyx:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???

src/wrapper.pyx:314:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???

src/wrapper.pyx:311:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <OpenGL.platform.baseplatform.glGetBufferParameteriv object at 0x7fb2de60f1a0>
args = (GL_ARRAY_BUFFER, GL_BUFFER_SIZE, <cparam 'P' (0x7fb2de07a6a0)>)
named = {}

    def __call__( self, *args, **named ):
        if self.load():
>           return self( *args, **named )

../../BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py:415:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <CFunctionType object at 0x7fb2de088110>
args = (GL_ARRAY_BUFFER, GL_BUFFER_SIZE, <cparam 'P' (0x7fb2de07a6a0)>)
named = {}

    def __call__( self, *args, **named ):
        if not self.ccisvalid():
            from OpenGL import error
            raise error.NoContext( self.func.__name__, args, named )
>       return self.func( *args, **named )
E       ctypes.ArgumentError: ("argument 3: TypeError: No array-type handler for type <class '_ctypes.CArgObject'> (value: <cparam 'P' (0x7fb2de07a6a0)>) registered", (GL_ARRAY_BUFFER, GL_BUFFER_SIZE, <cparam 'P' (0x7fb2de07a6a0)>))

../../BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py:41: ArgumentError

During handling of the above exception, another exception occurred:

self = <test_core.TestCore testMethod=test_glbufferparameter_create>

    def test_glbufferparameter_create(self):
        if not glGenBuffers or not glGenVertexArrays:
            return None
        for create in [True,False]:
            buffer = glGenBuffers(1)
            vertex_array = glGenVertexArrays(1,buffer)
            glBindBuffer(GL_ARRAY_BUFFER, buffer)
            try:
                for param, expected in [
                    (GL_BUFFER_SIZE,0),
                    (GL_BUFFER_MAPPED,GL_FALSE),
                    (GL_BUFFER_STORAGE_FLAGS,0),
                    (GL_BUFFER_USAGE,GL_STATIC_DRAW),
                ]:
                    if create:
                        mapped = GLint(-1)
                        glGetBufferParameteriv(GL_ARRAY_BUFFER, param, mapped)
                        assert mapped.value == expected, (param, mapped, expected)
                    else:
                        mapped = glGetBufferParameteriv(GL_ARRAY_BUFFER, param)
                        if param == GL_BUFFER_USAGE:
                            assert mapped[0] == expected, (param, mapped, expected)
                        else:
                            if OpenGL.SIZE_1_ARRAY_UNPACK:
                                assert mapped == expected, (param, mapped, expected)
                            else:
                                assert mapped[0] == expected, (param, mapped[0], expected)
            finally:
                glBindBuffer(GL_ARRAY_BUFFER, 0)
>               glDeleteVertexArrays(1,vertex_array)

PyOpenGL-3.1.6/tests/test_core.py:254:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/latebind.pyx:39: in OpenGL_accelerate.latebind.LateBind.__call__
    ???
src/wrapper.pyx:314: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
src/wrapper.pyx:311: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
../../BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py:415: in __call__
    return self( *args, **named )
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <CFunctionType object at 0x7fb2de0881d0>
args = (1, <cparam 'P' (0x7fb2de07a620)>), named = {}

    def __call__( self, *args, **named ):
        if not self.ccisvalid():
            from OpenGL import error
            raise error.NoContext( self.func.__name__, args, named )
>       return self.func( *args, **named )
E       ctypes.ArgumentError: ("argument 2: TypeError: No array-type handler for type <class '_ctypes.CArgObject'> (value: <cparam 'P' (0x7fb2de07a620)>) registered", (1, <cparam 'P' (0x7fb2de07a620)>))

../../BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py:41: ArgumentError
_____________________________ TestCore.test_glget ______________________________

self = <test_core.TestCore testMethod=test_glget>

    def test_glget( self ):
        """Test that we can run glGet... on registered constants without crashing..."""
        from OpenGL.raw.GL import _glgets
        get_items = sorted(_glgets._glget_size_mapping.items())
        for key,value in get_items:
            # There are glGet values that will cause a crash during cleanup
            # GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92c1 crashes/segfaults
            if key >= 0x8df9 and key <= 0x8e23:
                continue
            if key >= 0x92be and key <= 0x92c9:
                continue
            # print( 'Trying glGetFloatv( 0x%x )'%(key,))
            try:
>               result = glGetFloatv( key )

PyOpenGL-3.1.6/tests/test_core.py:459:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/latebind.pyx:39: in OpenGL_accelerate.latebind.LateBind.__call__
    ???
src/wrapper.pyx:303: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
src/wrapper.pyx:88: in OpenGL_accelerate.wrapper.CArgCalculator.c_call
    ???
src/wrapper.pyx:69: in OpenGL_accelerate.wrapper.CArgCalculatorElement.c_call
    ???
src/wrapper.pyx:64: in OpenGL_accelerate.wrapper.CArgCalculatorElement.c_call
    ???
src/arraydatatype.pyx:355: in OpenGL_accelerate.arraydatatype.SizedOutputOrInput.c_call
    ???
src/arraydatatype.pyx:229: in OpenGL_accelerate.arraydatatype.ArrayDatatype.c_zeros
    ???
../../BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/arrays/ctypesarrays.py:33: in zeros
    type *= int(dim)
../../BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/raw/GL/_lookupint.py:17: in __int__
    _get( self.lookup, output )
src/latebind.pyx:39: in OpenGL_accelerate.latebind.LateBind.__call__
    ???
src/wrapper.pyx:314: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   ctypes.ArgumentError: ("argument 2: TypeError: No array-type handler for type <class '_ctypes.CArgObject'> (value: <cparam 'P' (0x7fb2ddff1720)>) registered", (3248, <cparam 'P' (0x7fb2ddff1720)>), 1, <OpenGL.platform.baseplatform.glGetFloatv object at 0x7fb2de7c8dd0>)

src/wrapper.pyx:311: ArgumentError
______________________ TestCore.test_glgetbufferparameter ______________________

self = <test_core.TestCore testMethod=test_glgetbufferparameter>

    def test_glgetbufferparameter(self):
        if not glGenBuffers or not glGenVertexArrays:
            return None
        buffer = glGenBuffers(1)
        vertex_array = glGenVertexArrays(1,buffer)
        glBindBuffer(GL_ARRAY_BUFFER, buffer)
        try:
            mapped = glGetBufferParameteriv(GL_ARRAY_BUFFER, GL_BUFFER_MAPPED)
            assert mapped == (GL_FALSE if OpenGL.SIZE_1_ARRAY_UNPACK else [GL_FALSE]), mapped
        finally:
            glBindBuffer(GL_ARRAY_BUFFER, 0)
>           glDeleteVertexArrays(1,vertex_array)

PyOpenGL-3.1.6/tests/test_core.py:223:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/latebind.pyx:39: in OpenGL_accelerate.latebind.LateBind.__call__
    ???
src/wrapper.pyx:314: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
src/wrapper.pyx:311: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <CFunctionType object at 0x7fb2de0881d0>
args = (1, <cparam 'P' (0x7fb2de2400a0)>), named = {}

    def __call__( self, *args, **named ):
        if not self.ccisvalid():
            from OpenGL import error
            raise error.NoContext( self.func.__name__, args, named )
>       return self.func( *args, **named )
E       ctypes.ArgumentError: ("argument 2: TypeError: No array-type handler for type <class '_ctypes.CArgObject'> (value: <cparam 'P' (0x7fb2de2400a0)>) registered", (1, <cparam 'P' (0x7fb2de2400a0)>))

../../BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py:41: ArgumentError
___________________________ TestCore.test_lookupint ____________________________

self = <test_core.TestCore testMethod=test_lookupint>

    def test_lookupint( self ):
        from OpenGL.raw.GL import _lookupint
        if GLQuerier.pullVersion() < [2]:
            return
        l = _lookupint.LookupInt( GL_NUM_COMPRESSED_TEXTURE_FORMATS, GLint )
>       result = int(l)

PyOpenGL-3.1.6/tests/test_core.py:440:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/raw/GL/_lookupint.py:17: in __int__
    _get( self.lookup, output )
src/latebind.pyx:39: in OpenGL_accelerate.latebind.LateBind.__call__
    ???
src/wrapper.pyx:314: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   ctypes.ArgumentError: ("argument 2: TypeError: No array-type handler for type <class '_ctypes.CArgObject'> (value: <cparam 'P' (0x7fb2d01beda0)>) registered", (GL_NUM_COMPRESSED_TEXTURE_FORMATS, <cparam 'P' (0x7fb2d01beda0)>))

src/wrapper.pyx:311: ArgumentError
________________________ TestCore.test_orinput_handling ________________________

self = <test_core.TestCore testMethod=test_orinput_handling>

    def test_orinput_handling( self ):
        if not glGenVertexArrays:
            return None
        x = glGenVertexArrays(1)
        x = int(x) # check that we got x as an integer-compatible value
        x2 = GLuint()
>       r_value = glGenVertexArrays( 1, x2 )

PyOpenGL-3.1.6/tests/test_core.py:534:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/latebind.pyx:39: in OpenGL_accelerate.latebind.LateBind.__call__
    ???
src/wrapper.pyx:314: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
src/wrapper.pyx:311: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <CFunctionType object at 0x7fb2ddffb4d0>
args = (1, <cparam 'P' (0x7fb2de097ba0)>), named = {}

    def __call__( self, *args, **named ):
        if not self.ccisvalid():
            from OpenGL import error
            raise error.NoContext( self.func.__name__, args, named )
>       return self.func( *args, **named )
E       ctypes.ArgumentError: ("argument 2: TypeError: No array-type handler for type <class '_ctypes.CArgObject'> (value: <cparam 'P' (0x7fb2de097ba0)>) registered", (1, <cparam 'P' (0x7fb2de097ba0)>))

../../BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py:41: ArgumentError
______________________________ TestCore.test_vbo _______________________________

self = <test_core.TestCore testMethod=test_vbo>

    def test_vbo( self ):
        """Test utility vbo wrapper"""
        from OpenGL.arrays import vbo
        if not vbo.get_implementation():
            return
        if not glVertexPointerd or not glDrawElements:
            return
        points = array( [
            [0,0,0],
            [0,1,0],
            [1,.5,0],
            [1,0,0],
            [1.5,.5,0],
            [1.5,0,0],
        ], dtype='d')
        indices = array(
            range(len(points)),
            ['i','I'][bool(OpenGL.ERROR_ON_COPY)], # test coercion if we can
        )
        d = vbo.VBO(points)
        glDisable( GL_CULL_FACE )
        glNormal3f( 0,0,1 )
        glColor3f( 1,1,1 )
        glEnableClientState(GL_VERTEX_ARRAY)
        try:
            for x in range( 1, 255, 10 ):
                d.bind()
                try:
                    glVertexPointerd( d )
                    glDrawElements( GL_LINE_LOOP, len(indices), GL_UNSIGNED_INT, indices )
                finally:
                    d.unbind()
                lastPoint = array( [[1.5,(1/255.) * float(x),0]] )
                d[-2:-1] = lastPoint
                glFlush()
                pygame.display.flip()
                glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT )
                time.sleep( 0.001 )
        finally:
            glDisableClientState( GL_VERTEX_ARRAY )
        # bug report from Dan Helfman, delete shouldn't cause
        # errors if called explicitly
>       d.delete()

PyOpenGL-3.1.6/tests/test_core.py:211:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/vbo.pyx:224: in OpenGL_accelerate.vbo.VBO.delete
    ???
src/latebind.pyx:39: in OpenGL_accelerate.latebind.LateBind.__call__
    ???
src/wrapper.pyx:314: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
src/wrapper.pyx:311: in OpenGL_accelerate.wrapper.Wrapper.__call__
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <CFunctionType object at 0x7fb2ddff8dd0>
args = (1, <cparam 'P' (0x7fb2de0d1220)>), named = {}

    def __call__( self, *args, **named ):
        if not self.ccisvalid():
            from OpenGL import error
            raise error.NoContext( self.func.__name__, args, named )
>       return self.func( *args, **named )
E       ctypes.ArgumentError: ("argument 2: TypeError: No array-type handler for type <class '_ctypes.CArgObject'> (value: <cparam 'P' (0x7fb2de0d1220)>) registered", (1, <cparam 'P' (0x7fb2de0d1220)>))

../../BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py:41: ArgumentError
________________________ TestEvaluators.test_nurbs_raw _________________________

self = <test_evaluators.TestEvaluators testMethod=test_nurbs_raw>

    def test_nurbs_raw( self ):
        """Test nurbs rendering using raw API calls"""
        from OpenGL.raw import GLU as GLU_raw
        knots = (GLfloat* 8) ( 0,0,0,0,1,1,1,1 )
        ctlpoints = (GLfloat*(3*4*4))( -3., -3., -3.,
            -3., -1., -3.,
            -3.,  1., -3.,
            -3.,  3., -3.,

        -1., -3., -3.,
            -1., -1.,  3.,
            -1.,  1.,  3.,
            -1.,  3., -3.,

        1., -3., -3.,
             1., -1.,  3.,
             1.,  1.,  3.,
             1.,  3., -3.,

        3., -3., -3.,
            3., -1., -3.,
             3.,  1., -3.,
             3.,  3., -3. )
        theNurb = GLU_raw.gluNewNurbsRenderer()
        GLU_raw.gluBeginSurface(theNurb)
>       GLU_raw.gluNurbsSurface(
            theNurb,
            8, ctypes.byref(knots), 8, ctypes.byref(knots),
            4 * 3, 3, ctypes.byref( ctlpoints ),
            4, 4, GL_MAP2_VERTEX_3
        )
E       ctypes.ArgumentError: argument 3: TypeError: No array-type handler for type <class '_ctypes.CArgObject'> (value: <cparam 'P' (0x7fb2d00597d0)>) registered

PyOpenGL-3.1.6/tests/test_evaluators.py:61: ArgumentError
=============================== warnings summary ===============================
<frozen importlib._bootstrap>:400
  <frozen importlib._bootstrap>:400: RuntimeWarning: Your system is avx2 capable but pygame was not built with support for it. The performance of some of your blits could be adversely affected. Consider enabling compile time detection with environment variables like PYGAME_DETECT_AVX2=1 if you are compiling without cross compilation.

../../../../usr/lib/python3.12/site-packages/pkg_resources/__init__.py:121
  /usr/lib/python3.12/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
    warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)

tests/test_arraydatatype.py::TestCoreDatatype::test_glbuffersubdata_numeric
  /usr/lib/python3.12/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: <function Implementation.deleter.<locals>.doBufferDeletion at 0x7fb2de136de0>

  Traceback (most recent call last):
    File "/builddir/build/BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/arrays/vbo.py", line 118, in doBufferDeletion
      self.glDeleteBuffers(1, buf)
    File "src/latebind.pyx", line 39, in OpenGL_accelerate.latebind.LateBind.__call__
    File "src/wrapper.pyx", line 314, in OpenGL_accelerate.wrapper.Wrapper.__call__
    File "src/wrapper.pyx", line 311, in OpenGL_accelerate.wrapper.Wrapper.__call__
    File "/builddir/build/BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py", line 415, in __call__
      return self( *args, **named )
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/builddir/build/BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py", line 41, in __call__
      return self.func( *args, **named )
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ctypes.ArgumentError: ("argument 2: TypeError: No array-type handler for type <class '_ctypes.CArgObject'> (value: <cparam 'P' (0x7fb2ddff1f20)>) registered", (1, <cparam 'P' (0x7fb2ddff1f20)>))

    warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

tests/test_textures.py::TestTextures::test_draw_bitmap_pixels
  /usr/lib64/python3.12/unittest/case.py:690: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method TestTextures.test_draw_bitmap_pixels of <test_textures.TestTextures testMethod=test_draw_bitmap_pixels>>)
    return self.run(*args, **kwds)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED PyOpenGL-3.1.6/tests/test_core.py::TestCore::test_glbufferparameter_create
FAILED PyOpenGL-3.1.6/tests/test_core.py::TestCore::test_glget - ctypes.Argum...
FAILED PyOpenGL-3.1.6/tests/test_core.py::TestCore::test_glgetbufferparameter
FAILED PyOpenGL-3.1.6/tests/test_core.py::TestCore::test_lookupint - ctypes.A...
FAILED PyOpenGL-3.1.6/tests/test_core.py::TestCore::test_orinput_handling - c...
FAILED PyOpenGL-3.1.6/tests/test_core.py::TestCore::test_vbo - ctypes.Argumen...
FAILED PyOpenGL-3.1.6/tests/test_evaluators.py::TestEvaluators::test_nurbs_raw
============= 7 failed, 58 passed, 2 skipped, 4 warnings in 4.60s ==============
Exception ignored in: <function Implementation.deleter.<locals>.doBufferDeletion at 0x7fb2de0a6980>
Traceback (most recent call last):
  File "/builddir/build/BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/arrays/vbo.py", line 118, in doBufferDeletion
    self.glDeleteBuffers(1, buf)
  File "src/latebind.pyx", line 39, in OpenGL_accelerate.latebind.LateBind.__call__
  File "src/wrapper.pyx", line 311, in OpenGL_accelerate.wrapper.Wrapper.__call__
  File "/builddir/build/BUILDROOT/python-pyopengl-3.1.6-2.fc39.x86_64/usr/lib/python3.12/site-packages/OpenGL/platform/baseplatform.py", line 40, in __call__
    raise error.NoContext( self.func.__name__, args, named )
OpenGL.error.NoContext: ('glDeleteBuffers', (1, <cparam 'P' (0x7fb3e46c6520)>), {})

Comment 3 Ben Beasley 2023-07-18 15:03:50 UTC
🎉


Note You need to log in before you can comment on or make changes to this bug.