non credo sia quello il problema, viene da OpenGL.platform.glx:

"""GLX (x-windows)-specific platform features"""
import ctypes, ctypes.util
from OpenGL.platform import baseplatform, ctypesloader

assert hasattr( ctypes, 'RTLD_GLOBAL' ), """Old ctypes without ability to load .so for global resolution: Get ctypes CVS branch_1_0, not CVS H>



Ecco il risultato dei comandi sopra:


In [1]: import ctypes
In [2]: ctypes.__version__
Out[2]: '1.1.0'




In [8]: from OpenGL.platform import baseplatform, ctypesloader
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

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

/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


P.S: sullo stesso pc (dell xps intel i7) anche su un altra installazione di ubuntu "pulita" mi da lo stesso errore. Può essere il fatto che ci sono 2 schede video (una integrata nel processore e una nvidia)???
L'accelerazione graafica del sistema funziona ma forse python ha problemi?
Ciao
Matteo
_______________________________________________
Python mailing list
[email protected]
http://lists.python.it/mailman/listinfo/python

Rispondere a