"from OpenGL.GL import *" fails because a module isn't found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyopengl (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-opengl
I am using Ubuntu Release 9.10, with version 3.0.0-0ubuntu1 of python-opengl.
I discovered the bug while trying to use Impressive version 0.10.2.
You can reproduce the bug by executing "from OpenGL.GL import *" in a python interpreter (I was using python2.6).
Specifically, this is the output when executing this command:
File "/usr/share/
from OpenGL.
ImportError: No module named VERSION.GL_1_2
With a little investigation, I found that there is no "__init__.py" file in the /usr/share/
I solved the issue by creating an empty "__init__.py" file in this directory.
I checked the file list for both karmic and lucid (e.g. http://
Apologies in advance if this is a duplicate report and I just wasn't looking in the right spot.