openafis icon indicating copy to clipboard operation
openafis copied to clipboard

sgfplib.dll error

Open nico2701 opened this issue 3 years ago • 3 comments

Hello, when I try to run the extract.py file, this error happens:

File "extract.py", line 104, in lib = ffi.dlopen('sgfplib') File "C:\Users\A\anaconda3\lib\site-packages\cffi\api.py", line 150, in dlopen lib, function_cache = _make_ffi_library(self, name, flags) File "C:\Users\A\anaconda3\lib\site-packages\cffi\api.py", line 832, in _make_ffi_library backendlib = _load_backend_lib(backend, libname, flags) File "C:\Users\A\anaconda3\lib\site-packages\cffi\api.py", line 828, in _load_backend_lib return backend.load_library(path, flags) OSError: cannot load library '.\sgfplib.dll': error 0xc1

This is in Windows with sgfpamx, sgfplib & sgwsqlib dll's copied into the current directory. Any help is appreciated.

nico2701 avatar Jul 15 '21 04:07 nico2701

Hi, thanks for your interest in OpenAFIS. Apologies for the delay in getting back to you. There are x86 and x64 builds of the SecuGen SDK - you have to ensure that the dll's you use match the architecture of your python install. For example, if you have x84 python then you must use x86 dll's - irrespective of your machines arch.

neilharan avatar Aug 29 '21 21:08 neilharan

For info, sha256 of my x86 sgfplib.dll is d694d0ee94ee76e8292ce924f34be9ede1b9eaca0c4d23217ed0fceca0d25563. Version number is shown as 4.7.2.0.

neilharan avatar Aug 29 '21 21:08 neilharan

Hello I try to install the software in Debian Linux bookworm and everything works as expected but the extract.py file does not work The error that gives me is OSError: cannot load library 'libsgfplib.so': /usr/local/lib/libsgfplib.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE

Can you help me about this? Regards

itsoulos avatar Apr 08 '24 14:04 itsoulos