Skip to content

ValueError: Requested OpenGL version 330, got version 0 #4

@antazoey

Description

@antazoey

Describe the bug

I tried to run the first example from the README and I get the following:

raise ValueError('Requested OpenGL version {0}, got version {1}'.format(
ValueError: Requested OpenGL version 330, got version 0

I am able to use moderngl by itself and render stuff, and I verified I have OpenGL engine 4.1 (410).

But when I comment out the check, I get version '330' is not supported, so I am inclined to believe that this lib is unable to find my OpenGL?

I am not sure! I have to admit I am a noob when it comes to OpenGL stuff.

To Reproduce

  1. Steal my mac
  2. Use it to follow README

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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