Ich habe folgendes probiert:
Code: Alles auswählen
from ctypes import *
libc = cdll.LoadLibrary("libc.so")
Code: Alles auswählen
>>> from ctypes import *
>>> libc = cdll.LoadLibrary("libc.so")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/ctypes/__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/libc.so: invalid ELF header
Mein System ist ein 64-bit Ubuntu 9.04
(2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux)
Hat jemand eine Ahnung wie ich diese Bibliothek laden kann?