pythontraceback

it seems that the version of the libffi library seen at runtime is different from the 'ffi.h' file seen at compile-time


This traceback mess up all my program and I still cant fix it I have tried all methods and it didn't help!

Here's the problem:

ffi_prep_closure(): bad user_data (it seems that the version of the libffi library seen at runtime is different from the 'ffi.h' file seen at compile-time)


Solution

  • It is cffi python package issue. Try to download the source package tar.gz from https://pypi.org/project/cffi/#files and install it manually using:

    python setup.py install