Did you compile Python from the source, and if so, did it give you any errors during the configure/make/make install phase? Compiling Python from source code can be a real beast on older Red Hat systems, so if you installed this path, I suggest combing the configure and make results to make sure the modules have not been omitted.
To get pip install cffi to succeed without errors, I had to install gcc and libffi-devel from the EL5 repositories. From there, I was able to instantiate the FFI instance without any problems:
>>> from cffi import FFI >>> ffi = FFI() >>>
Here's the output of pip freeze , for reference:
[ root@machine ~]
If you have the same or better versions of the corresponding packages installed, I would try pip -vvv install --upgrade --force-reinstall cffi to see if there are any errors that the pip masked from there.
MPlanchard
source share