[fprint] Error fp_driver_supports_imaging

Benjamin Berg benjamin at sipsolutions.net
Thu Feb 4 18:21:33 UTC 2021


Hi,

adding the list back to CC, as I don't see a reason to exclude them.

On Thu, 2021-02-04 at 14:18 -0300, Anderson Marques wrote:
> Benjamin Berg, sorry to bother, compiled version 1.90.7, had
> libfprint-dev 1: 0.8.2-3 installed, now displays the following in
> python when import fprint displays the following error "ImportError:
> libfprint.so. 0: cannot open shared object file: No such file or
> directory ", what would be the next step? wouldn't you have a place
> to get this information?

I am guessing you are still using the old bindings. With the
introspection based bindings installed ("introspection" compile time
option which is enabled by default) and the python bindings for
GObject[1] you can then do:

import gi
gi.require_version('FPrint', '2.0')
from gi.repository import FPrint, GLib

There are some examples in the libfprint repository, as it is used to
run the test suite. e.g.

https://gitlab.freedesktop.org/libfprint/libfprint/-/blob/master/tests/capture.py

Hope this helps.

Benjamin

[1] Quite likely you already have them. See
https://pygobject.readthedocs.io/en/latest/ and check your distribution
for the correct packages to install. See also
https://pygobject.readthedocs.io/en/latest/getting_started.html

> Em qui., 4 de fev. de 2021 às 14:17, Anderson Marques <
> jackvalantine at gmail.com> escreveu:
> > Benjamin Berg, desculpa incomodar, fiz a compilação da versão
> > 1.90.7,  estava com essa instalada libfprint-dev 1:0.8.2-3, agora
> > apresenta o seguinte no python quando import fprint apresenta o
> > seguinte erro "ImportError: libfprint.so.0: cannot open shared
> > object file: No such file or directory", qual seria o proximo
> > passo? não teria um local para buscar essa informação?
> > Obrigado.
> > 
> > Em qui., 4 de fev. de 2021 às 11:25, Benjamin Berg <
> > benjamin at sipsolutions.net> escreveu:
> > > On Thu, 2021-02-04 at 08:46 -0300, Anderson Marques wrote:
> > > > Good morning, I am getting the following error
> > > > /home/pi/biometria/venv/lib/python3.7/site-
> > > packages/fprint.cpython-
> > > > 37m-arm-linux-gnueabihf.so: undefined symbol:
> > > > fp_driver_supports_imaging, I think it is the python version,
> > > i'm
> > > > using a digital persona 4500 on a raspberry pi.
> > > 
> > > You seem to be using a binding for an old version of libfprint.
> > > 
> > > Please switch to a recent 1.90.x release and use the included
> > > GObject
> > > Introspection based bindings (GIR) instead.
> > > 
> > > Benjamin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/fprint/attachments/20210204/8355779d/attachment.sig>


More information about the fprint mailing list