They are different: cacraft-MOBL disper # grep ^__version__ /usr/lib64/python2.5/ctypes/__init__.py __version__ = "1.0.3" cacraft-MOBL disper # strings /usr/lib64/python2.5/site-packages/_ctypes.so | grep 1\.\0\. 1.0.2 cacraft-MOBL disper # python -v -c 'import ctypes' # installing zipimport hook import zipimport # builtin # installed zipimport hook # /usr/lib64/python2.5/site.pyc matches /usr/lib64/python2.5/site.py import site # precompiled from /usr/lib64/python2.5/site.pyc # /usr/lib64/python2.5/os.pyc matches /usr/lib64/python2.5/os.py import os # precompiled from /usr/lib64/python2.5/os.pyc import errno # builtin import posix # builtin # /usr/lib64/python2.5/posixpath.pyc matches /usr/lib64/python2.5/posixpath.py import posixpath # precompiled from /usr/lib64/python2.5/posixpath.pyc # /usr/lib64/python2.5/stat.pyc matches /usr/lib64/python2.5/stat.py import stat # precompiled from /usr/lib64/python2.5/stat.pyc # /usr/lib64/python2.5/UserDict.pyc matches /usr/lib64/python2.5/UserDict.py import UserDict # precompiled from /usr/lib64/python2.5/UserDict.pyc # /usr/lib64/python2.5/copy_reg.pyc matches /usr/lib64/python2.5/copy_reg.py import copy_reg # precompiled from /usr/lib64/python2.5/copy_reg.pyc # /usr/lib64/python2.5/types.pyc matches /usr/lib64/python2.5/types.py import types # precompiled from /usr/lib64/python2.5/types.pyc import _types # builtin # /usr/lib64/python2.5/warnings.pyc matches /usr/lib64/python2.5/warnings.py import warnings # precompiled from /usr/lib64/python2.5/warnings.pyc # /usr/lib64/python2.5/linecache.pyc matches /usr/lib64/python2.5/linecache.py import linecache # precompiled from /usr/lib64/python2.5/linecache.pyc import encodings # directory /usr/lib64/python2.5/encodings # /usr/lib64/python2.5/encodings/__init__.pyc matches /usr/lib64/python2.5/encodings/__init__.py import encodings # precompiled from /usr/lib64/python2.5/encodings/__init__.pyc # /usr/lib64/python2.5/codecs.pyc matches /usr/lib64/python2.5/codecs.py import codecs # precompiled from /usr/lib64/python2.5/codecs.pyc import _codecs # builtin # /usr/lib64/python2.5/encodings/aliases.pyc matches /usr/lib64/python2.5/encodings/aliases.py import encodings.aliases # precompiled from /usr/lib64/python2.5/encodings/aliases.pyc # /usr/lib64/python2.5/encodings/utf_8.pyc matches /usr/lib64/python2.5/encodings/utf_8.py import encodings.utf_8 # precompiled from /usr/lib64/python2.5/encodings/utf_8.pyc Python 2.5.2 (r252:60911, Nov 25 2008, 10:20:37) [GCC Intel(R) C++ gcc 4.1 mode] on linux2 Type "help", "copyright", "credits" or "license" for more information. import ctypes # directory /usr/lib64/python2.5/ctypes # /usr/lib64/python2.5/ctypes/__init__.pyc matches /usr/lib64/python2.5/ctypes/__init__.py import ctypes # precompiled from /usr/lib64/python2.5/ctypes/__init__.pyc dlopen("/usr/lib64/python2.5/site-packages/_ctypes.so", 2); import _ctypes # dynamically loaded from /usr/lib64/python2.5/site-packages/_ctypes.so # /usr/lib64/python2.5/struct.pyc matches /usr/lib64/python2.5/struct.py import struct # precompiled from /usr/lib64/python2.5/struct.pyc dlopen("/usr/lib64/python2.5/lib-dynload/_struct.so", 2); import _struct # dynamically loaded from /usr/lib64/python2.5/lib-dynload/_struct.so Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.5/ctypes/__init__.py", line 20, in raise Exception, ("Version number mismatch", __version__, _ctypes_version) Exception: ('Version number mismatch', '1.0.3', '1.0.2') # clear __builtin__._ # clear sys.path # clear sys.argv # clear sys.ps1 # clear sys.ps2 # clear sys.exitfunc # clear sys.exc_type # clear sys.exc_value # clear sys.exc_traceback # clear sys.last_type # clear sys.last_value # clear sys.last_traceback # clear sys.path_hooks # clear sys.path_importer_cache # clear sys.meta_path # restore sys.stdin # restore sys.stdout # restore sys.stderr # cleanup __main__ # cleanup[1] site # cleanup[1] encodings # cleanup[1] _codecs # cleanup[1] _struct # cleanup[1] zipimport # cleanup[1] warnings # cleanup[1] encodings.utf_8 # cleanup[1] _ctypes # cleanup[1] codecs # cleanup[1] types # cleanup[1] struct # cleanup[1] _types # cleanup[1] signal # cleanup[1] linecache # cleanup[1] posix # cleanup[1] encodings.aliases # cleanup[1] exceptions # cleanup[2] copy_reg # cleanup[2] posixpath # cleanup[2] errno # cleanup[2] os.path # cleanup[2] stat # cleanup[2] UserDict # cleanup[2] os # cleanup sys # cleanup __builtin__ # cleanup ints: 7 unfreed ints in 1 out of 8 blocks # cleanup floats