I was getting the following error when importing the ctypes package:
I don’t know how these libraries work, can someone give me a hint? Is it the case that ctypes must search for libffi.so.7 as well?
Error:>>> import ctypes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: libffi.so.6: cannot open shared object file: No such file or directory
I’m running ArchLinux and I discovered that about a week ago the libffi got upgraded to version 3.3 and the shared library is now called libffi.so.7. I installed the package libffi6 from AUR and solved my problem.I don’t know how these libraries work, can someone give me a hint? Is it the case that ctypes must search for libffi.so.7 as well?