Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency PyOpenGL to v3.1.9 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented May 21, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
PyOpenGL (source) ==3.1.5 -> ==3.1.9 age adoption passing confidence

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@Sectonid
Copy link

>=3.1.6 versions will give this error: OpenGL.error.Error: Attempt to retrieve context when no valid context
3.1.5 works fine. There should be changes in code if you'll want to make the recent versions work.

@Sectonid
Copy link

The debugger said the issue lies here:

gl.glVertexAttribPointer(0, 3, gl.GL_FLOAT, gl.GL_FALSE, 44, gl.GLvoidp(0))

Apparently the context equals to zero for some reason:
(From PyOpenGL source code)

def getContext( context = None ):
    """Get the context (if passed, just return)
    
    context -- the context ID, if None, the current context
    """
    if context is None:
        context = platform.GetCurrentContext()
        if context == 0:
            from OpenGL import error
            raise error.Error(
                """Attempt to retrieve context when no valid context"""
            )

@Sectonid
Copy link

It doesn't work on X11, however it works on Wayland. But if i try to click somewhere in the 3D Viewport, i'll get this:

Traceback (most recent call last):
  File "/home/borus/SOURCES/QtPyHammer---Fork-master/QtPyHammer/ui/workspace.py", line 49, in mousePressEvent
    self.select(ray_origin, ray_direction)
  File "/home/borus/SOURCES/QtPyHammer---Fork-master/QtPyHammer/ui/workspace.py", line 55, in select
    objects = self.map_file.get_objects()  # Access objects from VmfInterface
              ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'VmfInterface' object has no attribute 'get_objects'
Aborted (core dumped)

But that's probably a different issue now.

@renovate renovate bot force-pushed the renovate/pyopengl-3.x branch from 7f3cbd9 to ee4d413 Compare January 20, 2025 07:34
@renovate renovate bot changed the title Update dependency PyOpenGL to v3.1.7 Update dependency PyOpenGL to v3.1.9 Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant