<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ciao lista,<br>
come da oggetto sto cercando di installare le librerie opengl su
ubuntu 11.10.<br>
Penso di aver installato tutto correttamente ma quando vado ad
importare i moduli ottengo un errore.<br>
<br>
Se scrivo:<br>
from OpenGL.GL import *<br>
Ottengo:<br>
<font face="FreeMono">---------------------------------------------------------------------------<br>
ImportError Traceback (most recent
call last)<br>
<br>
/home/matteo/<ipython console> in <module>()<br>
<br>
/usr/lib/pymodules/python2.7/OpenGL/GL/__init__.py in
<module>()<br>
----> 2 from OpenGL.raw.GL import *<br>
3 from OpenGL.raw.GL.annotations import *<br>
4 <br>
5 from OpenGL.GL.pointers import *<br>
6 from OpenGL.GL.glget import *<br>
<br>
/usr/lib/pymodules/python2.7/OpenGL/raw/GL/__init__.py in
<module>()<br>
4 Automatically generated by the generateraw script, do not
edit!<br>
5 """<br>
----> 6 from OpenGL.raw.GL.constants import *<br>
7 <br>
8 from ctypes import *<br>
<br>
/usr/lib/pymodules/python2.7/OpenGL/raw/GL/constants.py in
<module>()<br>
5 <br>
6 from ctypes import *<br>
----> 7 from OpenGL import platform, arrays<br>
8 from OpenGL.constant import Constant<br>
9 from OpenGL import constants as GLconstants<br>
<br>
/usr/lib/pymodules/python2.7/OpenGL/platform/__init__.py in
<module>()<br>
32 # install into the platform module's namespace now<br>
<br>
33 plugin.install(globals())<br>
34 return plugin<br>
35 <br>
---> 36 _load()<br>
<br>
/usr/lib/pymodules/python2.7/OpenGL/platform/__init__.py in
_load()<br>
25 key = (sys.platform,os.name)<br>
26 plugin = PlatformPlugin.match( key )<br>
---> 27 plugin_class = plugin.load()<br>
28 plugin.loaded = True<br>
29 # create instance of this platform implementation<br>
<br>
<br>
/usr/lib/pymodules/python2.7/OpenGL/plugins.pyc in load(self)<br>
12 def load( self ):<br>
13 """Attempt to load and return our entry point"""<br>
---> 14 return importByName( self.import_path )<br>
15 @classmethod<br>
16 def match( cls, *args ):<br>
<br>
/usr/lib/pymodules/python2.7/OpenGL/plugins.pyc in
importByName(fullName)<br>
26 moduleName = name[:-1]<br>
27 className = name[-1]<br>
---> 28 module = __import__( ".".join(moduleName), {}, {},
moduleName)<br>
29 return getattr( module, className )<br>
30 <br>
<br>
/usr/lib/pymodules/python2.7/OpenGL/platform/glx.py in
<module>()<br>
2 import ctypes, ctypes.util<br>
----> 3 from OpenGL.platform import baseplatform, ctypesloader<br>
4 <br>
5 assert hasattr( ctypes, 'RTLD_GLOBAL' ), """Old ctypes
without ability to load .so for global resolution: Get ctypes CVS
branch_1_0, not CVS HEAD or released versions!"""<br>
6 <br>
<br>
ImportError: cannot import name baseplatform</font><br>
<br>
<br>
Ho provato a controllare se nel percorso ci fossero i file e sembra
tutto a posto.<br>
Ho anche provato a reinstallare tutto e a cercare una soluzione su
google ma non ho risolto...<br>
Grazie<br>
Matteo<br>
</body>
</html>