[Python-modules-team] Bug#555834: python-opengl: cannot import most submodules
Tanguy Ortolo
tanguy+debian at ortolo.eu
Wed Nov 11 23:04:13 UTC 2009
Package: python-opengl
Version: 3.0.0~c1-1
Severity: grave
Justification: renders package unusable
I found this problem trying to use impressive, that tries to import OpenGL.GL. It is the same for most submodules of OpenGL, such as GL, GLU, GLE, platform:
>>> import OpenGL.GLU
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.5/OpenGL/GLU/__init__.py", line 2, in <module>
from OpenGL import platform
File "/usr/lib/pymodules/python2.5/OpenGL/platform/__init__.py", line 36, in <module>
_load()
File "/usr/lib/pymodules/python2.5/OpenGL/platform/__init__.py", line 27, in _load
plugin_class = plugin.load()
File "/usr/lib/pymodules/python2.5/OpenGL/plugins.py", line 14, in load
return importByName( self.import_path )
File "/usr/lib/pymodules/python2.5/OpenGL/plugins.py", line 28, in importByName
module = __import__( ".".join(moduleName), {}, {}, moduleName)
File "/usr/lib/pymodules/python2.5/OpenGL/platform/glx.py", line 8, in <module>
class GLXPlatform( baseplatform.BasePlatform ):
File "/usr/lib/pymodules/python2.5/OpenGL/platform/glx.py", line 16, in GLXPlatform
mode=ctypes.RTLD_GLOBAL
File "/usr/lib/pymodules/python2.5/OpenGL/platform/ctypesloader.py", line 48, in loadLibrary
return dllType( name, mode )
File "/usr/lib/python2.5/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: ('GL: cannot open shared object file: No such file or directory', 'GL', None)
The file that it tries to load as a dynamic library is “GL”. Not “libGL.so”, but “GL”!
I do not know what is missing on the code, but as it is, it will always fail.
Good luck. :-)
Regards,
--
Tanguy Ortolo
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-opengl depends on:
ii freeglut3 2.4.0-8 OpenGL Utility Toolkit
ii libgl1-mesa-glx [libgl1] 7.6-1 A free implementation of the OpenG
ii libglu1-mesa [libglu1] 7.6-1 The OpenGL utility library (GLU)
ii python [python-ctypes] 2.5.4-2 An interactive high-level object-o
ii python-support 1.0.4 automated rebuilding support for P
python-opengl recommends no packages.
Versions of packages python-opengl suggests:
ii libgle3 3.1.0-7 OpenGL tubing and extrusion librar
ii python-numpy 1:1.3.0-3 Numerical Python adds a fast array
ii python-tk 2.5.2-1.1 Tkinter - Writing Tk applications
-- no debconf information
More information about the Python-modules-team
mailing list