Problem with OpenGL support under python: ctypes cannot find GL lib(?)

Martin Felder felder@in.tum.de
Wed Feb 7 15:08:00 GMT 2007


Hi,

I have a python specific question, but the problem only seems to occur 
under cygwin, so here I am.

In trying to get my python OpenGL application to run, I installed the 
PyOpenGL package, version 3.0.0a5 for python 2.4, and ctypes 1.0.1. Now 
whenever I try to run it, the following happens:

Traceback (most recent call last):
  File "GLvis.py", line 8, in ?
    from OpenGL.GL import *
  File 
"/usr/lib/python2.4/site-packages/PyOpenGL-3.0.0a5-py2.4.egg/OpenGL/GL/__init__.py", 
line 2, in ?
    from OpenGL.raw.GL import *
  File 
"/usr/lib/python2.4/site-packages/PyOpenGL-3.0.0a5-py2.4.egg/OpenGL/raw/GL/__init__.py", 
line 6, in ?
    from OpenGL.raw.GL.constants import *
  File 
"/usr/lib/python2.4/site-packages/PyOpenGL-3.0.0a5-py2.4.egg/OpenGL/raw/GL/constants.py", 
line 7, in ?
    from OpenGL import platform, arrays
  File 
"/usr/lib/python2.4/site-packages/PyOpenGL-3.0.0a5-py2.4.egg/OpenGL/platform/__init__.py", 
line 24, in ?
    from OpenGL.platform.glx import *
  File 
"/usr/lib/python2.4/site-packages/PyOpenGL-3.0.0a5-py2.4.egg/OpenGL/platform/glx.py", 
line 29, in ?
    mode=ctypes.RTLD_GLOBAL
  File 
"/usr/lib/python2.4/site-packages/PyOpenGL-3.0.0a5-py2.4.egg/OpenGL/platform/ctypesloader.py", 
line 37, in loadLibrary
    return dllType( name, mode )
  File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 312, 
in __init__
    self._handle = _dlopen(self._name, mode)
OSError: No such file or directory

When this happens, self._name is "GL" and mode is 4. It would seem as 
though somehow the GL library is not registered(?) with python? I'm at a 
loss here - can anybody give me a hint? Has there been any successful 
attempt at running PyOpenGL under cygwin?

Thanks,
Martin



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20070207/0b17003b/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list