question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

python OpenGL issue.

See original GitHub issue

I followed README to install the packages but got the following error:

'glCreateTextures' is not defined.

@MartinSmeyer Do you have any ideas?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wangg12commented, Aug 15, 2019

@sinnis1991 It did work for me on several machines with different environments. For example,

In [1]: import OpenGL
In [2]: OpenGL
Out[1]: <module 'OpenGL' from '/data/software/pyopengl/OpenGL/__init__.py'>
In [3]: from OpenGL.GL import *
In [4]: glCreateTextures
Out[2]: <OpenGL.platform.baseplatform.glCreateTextures at 0x7f94b7aab1f8>
In [5]: tex_type=GL_TEXTURE_2D
In [6]: import numpy as np
In [7]: __id = np.empty(1, dtype=np.uint32)
In [8]: glCreateTextures(tex_type, len(__id), __id)
In [9]:
1reaction
wangg12commented, Nov 22, 2018

I managed to use these functions by installing PyOpenGL from https://github.com/mcfletch/PyOpenGL.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python: module OpenGL.error - PyOpenGL
class NoContext(Error) ; Raised to indicate that there is no currently active context. Technically almost *any* OpenGL call can segfault if there is...
Read more >
Issues · mcfletch/pyopengl - GitHub
Issues list ; Regression to access to glInitFramebufferObjectARB in v3.1.6. #88 opened yesterday · vallsv ; Update accelerate generate C with Cython v3....
Read more >
How to Fix Error: No Module Named 'OpenGL' - Finxter
Quick Fix: Python raises the ImportError: No module named 'opengl' when it cannot find the library opengl . The most frequent source of...
Read more >
python 3.x - Failing to get any PyOpenGL functions working ...
My 1st time trying to use PyOpenGL within PyCharm IDE... or Python cmd line. Windows 10 OS; no GPU, just Intel UHD 64-bit...
Read more >
Python VTK Windows OpenGL error - Support
I am trying to use vtk 9.0.1 from python 3.8.1 on a Windows 10 machine with Intel Graphics UHD 620. Unfortunately, when I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found