Coder Social home page Coder Social logo

pyfprint's People

Contributors

luksan avatar xantares avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pyfprint's Issues

Memory leak when trying to enroll finger

Here is the code and output
import pyfprint
x = pyfprint.discover_devices()[0]
y=x.enroll_finger()

Output: swig/python detected a memory leak of type 'struct fp_print_data *', no destructor found.

how to read a saved img ?

I'm using pyfprint these days but I don't kown how to use the 'save_to_disk' method in pyfprint. I've already used 'save_to_file' method that saved an image. But I couldn't read the saved images, how could I get there ? Any help ?

pip install .

Building wheels for collected packages: pyfprint
Building wheel for pyfprint (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/anaconda3/envs/finger/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/setup.py'"'"'; file='"'"'/private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-wheel-83vd4420
cwd: /private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/
Complete output (39 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/pyfprint
copying pyfprint/pyfprint.py -> build/lib.macosx-10.9-x86_64-3.8/pyfprint
copying pyfprint/init.py -> build/lib.macosx-10.9-x86_64-3.8/pyfprint
running build_ext
building 'pyfprint._pyfprint_swig' extension
swigging pyfprint/pyfprint_swig.i to pyfprint/pyfprint_swig_wrap.c
swig -python -modern -o pyfprint/pyfprint_swig_wrap.c pyfprint/pyfprint_swig.i
Deprecated command line option: -modern. This option is now always on.
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/pyfprint
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/anaconda3/envs/finger/include -arch x86_64 -I/usr/local/anaconda3/envs/finger/include -arch x86_64 -I/usr/local/anaconda3/envs/finger/include/python3.8 -c pyfprint/pyfprint_swig_wrap.c -o build/temp.macosx-10.9-x86_64-3.8/pyfprint/pyfprint_swig_wrap.o
pyfprint/pyfprint_swig_wrap.c:1756:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
0, /* tp_print */
^
/usr/local/anaconda3/envs/finger/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE , int);
^
/usr/local/anaconda3/envs/finger/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
pyfprint/pyfprint_swig_wrap.c:1923:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
0, /
tp_print */
^
/usr/local/anaconda3/envs/finger/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/usr/local/anaconda3/envs/finger/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
pyfprint/pyfprint_swig_wrap.c:2720:10: fatal error: 'libfprint/fprint.h' file not found
#include <libfprint/fprint.h>
^~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for pyfprint
Running setup.py clean for pyfprint
Failed to build pyfprint
Installing collected packages: pyfprint
Running setup.py install for pyfprint ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/anaconda3/envs/finger/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/setup.py'"'"'; file='"'"'/private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-record-7mmgmige/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/anaconda3/envs/finger/include/python3.8/pyfprint
cwd: /private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/
Complete output (40 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/pyfprint
copying pyfprint/pyfprint_swig.py -> build/lib.macosx-10.9-x86_64-3.8/pyfprint
copying pyfprint/pyfprint.py -> build/lib.macosx-10.9-x86_64-3.8/pyfprint
copying pyfprint/init.py -> build/lib.macosx-10.9-x86_64-3.8/pyfprint
running build_ext
building 'pyfprint._pyfprint_swig' extension
swigging pyfprint/pyfprint_swig.i to pyfprint/pyfprint_swig_wrap.c
swig -python -modern -o pyfprint/pyfprint_swig_wrap.c pyfprint/pyfprint_swig.i
Deprecated command line option: -modern. This option is now always on.
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/pyfprint
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/anaconda3/envs/finger/include -arch x86_64 -I/usr/local/anaconda3/envs/finger/include -arch x86_64 -I/usr/local/anaconda3/envs/finger/include/python3.8 -c pyfprint/pyfprint_swig_wrap.c -o build/temp.macosx-10.9-x86_64-3.8/pyfprint/pyfprint_swig_wrap.o
pyfprint/pyfprint_swig_wrap.c:1756:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
0, /* tp_print */
^
/usr/local/anaconda3/envs/finger/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE , int);
^
/usr/local/anaconda3/envs/finger/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
pyfprint/pyfprint_swig_wrap.c:1923:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
0, /
tp_print */
^
/usr/local/anaconda3/envs/finger/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/usr/local/anaconda3/envs/finger/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
pyfprint/pyfprint_swig_wrap.c:2720:10: fatal error: 'libfprint/fprint.h' file not found
#include <libfprint/fprint.h>
^~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/anaconda3/envs/finger/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/setup.py'"'"'; file='"'"'/private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-record-7mmgmige/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/anaconda3/envs/finger/include/python3.8/pyfprint Check the logs for full command output.

OS: macOS Catalina
Python: 3.8

How to use the lib as a standalone?

Hi there, I would like to incorporate your code into a project. For ease of deployment and portability, would it be possible to simply put the project into a folder and import it from there? I am familiar with Python, but I've never worked with Cython so I don't know where to start with this. I noticed there was an AUR package but unfortunately it is broken.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.