Advertisement

Python + OpenGL = problems.

Started by June 23, 2005 12:55 PM
9 comments, last by Brian Leair 19 years, 1 month ago
Ive been able to use openGL in C/C++ but when trying to use it in Python im having nothing but troubles. Ive downloaded PyOpenGL and as many related modules as I can find but they all require opengl.gl which I dont seem to have. So does anyone know what im missing or can give me any help/suggest? TIA
C_C(Enter witty/insightful/profound remark here...)
Anyone?
C_C(Enter witty/insightful/profound remark here...)
Advertisement
I havent had any problems in the one project I'v used GL and python, so I cant give much advice. You can have a look at the source for my program here:
http://dan.siroccostation.com/blog/pdbview/

The module used is actually called "Opengl.GL", but I guess you just got lazy with the cases?
Well Opengl.GL seems to be what im missing. any clues on where I can get it?
C_C(Enter witty/insightful/profound remark here...)
here: http://pyopengl.sourceforge.net
Ive got pyopengl. Ive downloaded all the modules it says it requires. What im missing is OpenGL.gl. Atleast thats what it says im missing when I try to run a prog calling for it.
C_C(Enter witty/insightful/profound remark here...)
Advertisement
hmmm. I'm not sure what the problem could be. pyopengl is supposed to provide that module. Are you sure you followed the instructions here:
http://pyopengl.sourceforge.net/documentation/installation.html

What are you running it on? windows/linux/mac?
Windows. ive gone through all that but im not aggainst doing it again. Guess we'll see.
C_C(Enter witty/insightful/profound remark here...)
Are you using the normal python distribution or the activestate one (http://www.activestate.com/Products/ActivePython)? Maybe PyOpenGL assumes the normal one and they handle libraries differently... I have no idea at all.

EDIT: you can make sure OpenGL.GL is in your python path by starting the python interpreter and printing "sys.path" (you need to import sys first). Then figure out where PyOPenGL is installed in windows (search for "texture_cube_map.py" for example. Its part of the library.) Then make sure wherever OpenGL is is part of your python path. You can just do sys.path.append("path to OpenGL") to test it.

[Edited by - rollo on June 30, 2005 3:36:19 AM]
I dont even have openGL.gl on my HD. Did a search for it an got nothing...the big bupkis. Thats my problem Im guessing.
C_C(Enter witty/insightful/profound remark here...)

This topic is closed to new replies.

Advertisement