Skip to content

with numpy 2.3.0, GL.glGetActiveUniform returns a numpy array #149

Open
@chrishavlin

Description

@chrishavlin

A bit out of my depth here, hoping someone might have some ideas of where to look.

With the most recent numpy version released this past week (np 2.3.0), I started getting a new failing test for a package I maintain. With Python >= 3.11 and np == 2.3.0, GL.glGetActiveUniform has started returning an integer array rather than the expected byte string. e.g., the following line of code:

name, size, gl_type = GL.glGetActiveUniform(self.program, 0)
print(type(name), name, size, gl_type)

with np < 2.3.0, the output is

<class 'bytes'> b'modelview' 1 35676

but with np==2.3.0 it is

<class 'numpy.ndarray'> [109 111 100 101 108 118 105 101 119   0   0   0   0   0   0] 1 35676

same version of pyOpenGL in both cases (3.1.9).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions