Ciao lista,
come da oggetto sto cercando di installare le librerie opengl su ubuntu 11.10. Penso di aver installato tutto correttamente ma quando vado ad importare i moduli ottengo un errore.

Se scrivo:
from OpenGL.GL import *
Ottengo:
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/matteo/<ipython console> in <module>()

/usr/lib/pymodules/python2.7/OpenGL/GL/__init__.py in <module>()
----> 2 from OpenGL.raw.GL import *
      3 from OpenGL.raw.GL.annotations import *
      4
      5 from OpenGL.GL.pointers import *
      6 from OpenGL.GL.glget import *

/usr/lib/pymodules/python2.7/OpenGL/raw/GL/__init__.py in <module>()
      4 Automatically generated by the generateraw script, do not edit!
      5 """
----> 6 from OpenGL.raw.GL.constants import *
      7
      8 from ctypes import *

/usr/lib/pymodules/python2.7/OpenGL/raw/GL/constants.py in <module>()
      5
      6 from ctypes import *
----> 7 from OpenGL import platform, arrays
      8 from OpenGL.constant import Constant
      9 from OpenGL import constants as GLconstants

/usr/lib/pymodules/python2.7/OpenGL/platform/__init__.py in <module>()
     32     # install into the platform module's namespace now

     33     plugin.install(globals())
     34     return plugin
     35
---> 36 _load()

/usr/lib/pymodules/python2.7/OpenGL/platform/__init__.py in _load()
     25     key = (sys.platform,os.name)
     26     plugin  = PlatformPlugin.match( key )
---> 27     plugin_class = plugin.load()
     28     plugin.loaded = True
     29     # create instance of this platform implementation


/usr/lib/pymodules/python2.7/OpenGL/plugins.pyc in load(self)
     12     def load( self ):
     13         """Attempt to load and return our entry point"""
---> 14         return importByName( self.import_path )
     15     @classmethod
     16     def match( cls, *args ):

/usr/lib/pymodules/python2.7/OpenGL/plugins.pyc in importByName(fullName)
     26     moduleName = name[:-1]
     27     className = name[-1]
---> 28     module = __import__( ".".join(moduleName), {}, {}, moduleName)
     29     return getattr( module, className )
     30

/usr/lib/pymodules/python2.7/OpenGL/platform/glx.py in <module>()
      2 import ctypes, ctypes.util
----> 3 from OpenGL.platform import baseplatform, ctypesloader
      4
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!"""
      6

ImportError: cannot import name baseplatform


Ho provato a controllare se nel percorso ci fossero i file e sembra tutto a posto. Ho anche provato a reinstallare tutto e a cercare una soluzione su google ma non ho risolto...
Grazie
Matteo
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a