[Python-modules-team] Bug#509125: more information

Yaroslav Halchenko debian at onerussian.com
Thu Oct 7 16:13:05 UTC 2010


Below please find extracts from our communications with the originator
of 599275 report:  as you can see -- find_util does not find .so.1 if
.so is not present... btw actually util seems not to be used (at least
directly) in python-opengl

$> grep util /usr/lib/pymodules/python2.6/OpenGL/platform/glx.py                      
import ctypes, ctypes.util

----- Forwarded message from Alexandre Delanoë <alexandre.delanoe at telecom-paristech.fr> -----
Date: Thu, 7 Oct 2010 18:00:34 +0200
From: Alexandre Delanoë <neonoe123321 at gmail.com>
To: Yaroslav Halchenko <yoh at dartmouth.edu>

# /sbin/ldconfig -p | grep 'libGL\.'
        libGL.so.1 (libc6, Système d'exploitation ABI : Linux 2.4.20) => /usr/lib/libGL.so.1


# python -c 'from ctypes import util; print util.find_library("GL")'
None

# python -c 'from OpenGL.GL import *'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/OpenGL/GL/__init__.py", line 2, in
<module>
    from OpenGL.raw.GL import *
  File "/usr/lib/pymodules/python2.6/OpenGL/raw/GL/__init__.py", line 6,
in <module>
    from OpenGL.raw.GL.constants import *
  File "/usr/lib/pymodules/python2.6/OpenGL/raw/GL/constants.py", line
7, in <module>
    from OpenGL import platform, arrays
  File "/usr/lib/pymodules/python2.6/OpenGL/platform/__init__.py", line
36, in <module>
    _load()
  File "/usr/lib/pymodules/python2.6/OpenGL/platform/__init__.py", line
27, in _load
    plugin_class = plugin.load()
  File "/usr/lib/pymodules/python2.6/OpenGL/plugins.py", line 14, in
load
    return importByName( self.import_path )
  File "/usr/lib/pymodules/python2.6/OpenGL/plugins.py", line 28, in
importByName
    module = __import__( ".".join(moduleName), {}, {}, moduleName)
  File "/usr/lib/pymodules/python2.6/OpenGL/platform/glx.py", line 8, in
<module>
    class GLXPlatform( baseplatform.BasePlatform ):
  File "/usr/lib/pymodules/python2.6/OpenGL/platform/glx.py", line 20,
in GLXPlatform
    raise ImportError("Unable to load OpenGL library", *err.args)
ImportError: ('Unable to load OpenGL library', 'GL: cannot open shared
object file: No such file or direc
tory', 'GL', None)
zsh: exit 1     python -c 'from OpenGL.GL import *'


-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]







More information about the Python-modules-team mailing list