Giter Site home page Giter Site logo

fprint's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fprint's Issues

fatal error: gio/gio.h: No such file or directory

This is the complete error message when trying to install.
I am using:
python 3.8.2
archlinux
Cython version 0.29.16
libfprint 1.90.1-1
glibc 2.31-2

ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ghrfg9uk/fprintw/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ghrfg9uk/fprintw/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 /tmp/pip-wheel-bdczz12_                                                                                                    
       cwd: /tmp/pip-install-ghrfg9uk/fprintw/                                                                                                                        
  Complete output (24 lines):                                                                                                                                         
  running bdist_wheel                                                                                                                                                 
  running build                                                                                                                                                       
  running build_py                                                                                                                                                    
  package init file 'lib/__init__.py' not found (or not a regular file)                                                                                               
  creating build                                                                                                                                                      
  creating build/lib.linux-x86_64-3.8                                                                                                                                 
  creating build/lib.linux-x86_64-3.8/fprint                                                                                                                          
  copying lib/fprint.pyx -> build/lib.linux-x86_64-3.8/fprint                                                                                                         
  copying lib/fprint.pxd -> build/lib.linux-x86_64-3.8/fprint                                                                                                         
  copying lib/fprint.c -> build/lib.linux-x86_64-3.8/fprint                                                                                                           
  running build_ext                                                                                                                                                   
  building 'fprint' extension                                                                                                                                         
  creating build/temp.linux-x86_64-3.8                                                                                                                                
  creating build/temp.linux-x86_64-3.8/lib                                                                                                                            
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/include/python3.8 -c lib/fprint.c -o build/temp.linux-x86_64-3.8/lib/fprint.o                                                                                                                                                             
  In file included from /usr/include/libfprint/fp-device.h:23,                                                                                                        
                   from /usr/include/libfprint/fp-context.h:22,                                                                                                       
                   from /usr/include/libfprint/fprint.h:22,                                                                                                           
                   from lib/fprint.c:618:                                                                                                                             
  /usr/include/libfprint/fp-image.h:23:10: fatal error: gio/gio.h: No such file or directory                                                                          
     23 | #include <gio/gio.h>                                                                                                                                        
        |          ^~~~~~~~~~~                                                                                                                                        
  compilation terminated.                                                                                                                                             
  error: command 'gcc' failed with exit status 1                                                                                                                      
  ----------------------------------------                                                                                                                            
  ERROR: Failed building wheel for fprintw
  Running setup.py clean for fprintw
Failed to build fprintw
Installing collected packages: fprintw
    Running setup.py install for fprintw ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ghrfg9uk/fprintw/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ghrfg9uk/fprintw/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-5m4eexm6/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/denis/.local/include/python3.8/fprintw
         cwd: /tmp/pip-install-ghrfg9uk/fprintw/
    Complete output (24 lines):
    running install
    running build
    running build_py
    package init file 'lib/__init__.py' not found (or not a regular file)
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/fprint
    copying lib/fprint.pyx -> build/lib.linux-x86_64-3.8/fprint
    copying lib/fprint.pxd -> build/lib.linux-x86_64-3.8/fprint
    copying lib/fprint.c -> build/lib.linux-x86_64-3.8/fprint
    running build_ext
    building 'fprint' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/lib
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/usr/include/python3.8 -c lib/fprint.c -o build/temp.linux-x86_64-3.8/lib/fprint.o
    In file included from /usr/include/libfprint/fp-device.h:23,
                     from /usr/include/libfprint/fp-context.h:22,
                     from /usr/include/libfprint/fprint.h:22,
                     from lib/fprint.c:618:
    /usr/include/libfprint/fp-image.h:23:10: fatal error: gio/gio.h: No such file or directory
       23 | #include <gio/gio.h>
          |          ^~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ghrfg9uk/fprintw/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ghrfg9uk/fprintw/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-5m4eexm6/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/denis/.local/include/python3.8/fprintw Check the logs for full command output.

Error during installation

When I try and install this on my Raspberry Pi 3, using the command:

pip install git+https://github.com/gtors/fprint#egg=fprint-0.1

I get this error:

Downloading/unpacking fprint-0.1 from git+https://github.com/gtors/fprint
  Cloning https://github.com/gtors/fprint to /tmp/pip-build-noT6Z4/fprint-0.1
  Running setup.py (path:/tmp/pip-build-noT6Z4/fprint-0.1/setup.py) egg_info for package fprint-0.1
    Compiling fprint.pyx because it changed.
    [1/1] Cythonizing fprint.pyx
    
Installing collected packages: fprint-0.1
  Running setup.py install for fprint-0.1
    building 'fprint' extension
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c fprint.c -o build/temp.linux-armv7l-2.7/fprint.o
    fprint.c:1491:78: warning: 'enum fp_capture_result' declared inside parameter list
     static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__fp_capture_result(enum fp_capture_result value);
                                                                                  ^
    fprint.c:1491:78: warning: its scope is only this definition or declaration, which is probably not what you want
    fprint.c: In function 'initfprint':
    fprint.c:16311:58: error: 'FP_CAPTURE_COMPLETE' undeclared (first use in this function)
         __pyx_t_4 = __Pyx_PyInt_From_enum__fp_capture_result(FP_CAPTURE_COMPLETE); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 54, __pyx_L1_error)
                                                              ^
    fprint.c:16311:58: note: each undeclared identifier is reported only once for each function it appears in
    fprint.c:16311:58: error: type of formal parameter 1 is incomplete
    fprint.c:16329:58: error: 'FP_CAPTURE_FAIL' undeclared (first use in this function)
         __pyx_t_4 = __Pyx_PyInt_From_enum__fp_capture_result(FP_CAPTURE_FAIL); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 55, __pyx_L1_error)
                                                              ^
    fprint.c:16329:58: error: type of formal parameter 1 is incomplete
    fprint.c:16535:58: error: type of formal parameter 1 is incomplete
         __pyx_t_4 = __Pyx_PyInt_From_enum__fp_capture_result(FP_CAPTURE_COMPLETE); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 62, __pyx_L1_error)
                                                              ^
    fprint.c:16599:58: error: type of formal parameter 1 is incomplete
         __pyx_t_7 = __Pyx_PyInt_From_enum__fp_capture_result(FP_CAPTURE_FAIL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 63, __pyx_L1_error)
                                                              ^
    fprint.c: At top level:
    fprint.c:23085:88: warning: 'enum fp_capture_result' declared inside parameter list
               static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__fp_capture_result(enum fp_capture_result value) {
                                                                                            ^
    fprint.c:23085:106: error: parameter 1 ('value') has incomplete type
               static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__fp_capture_result(enum fp_capture_result value) {
                                                                                                              ^
    fprint.c: In function '__Pyx_PyInt_From_enum__fp_capture_result':
    fprint.c:23086:16: error: variable 'neg_one' has initializer but incomplete type
         const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;
                    ^
    fprint.c:23086:50: error: conversion to incomplete type
         const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;
                                                      ^
    fprint.c:23086:34: error: storage size of 'neg_one' isn't known
         const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;
                                      ^
    fprint.c:23086:50: error: variable 'const_zero' has initializer but incomplete type
         const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;
                                                      ^
    fprint.c:23086:92: error: conversion to incomplete type
         const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;
                                                                                                ^
    fprint.c:23086:73: error: storage size of 'const_zero' isn't known
         const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;
                                                                             ^
    fprint.c:23089:20: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'
             if (sizeof(enum fp_capture_result) < sizeof(long)) {
                        ^
    fprint.c:23091:27: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'
             } else if (sizeof(enum fp_capture_result) <= sizeof(unsigned long)) {
                               ^
    fprint.c:23094:27: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'
             } else if (sizeof(enum fp_capture_result) <= sizeof(unsigned PY_LONG_LONG)) {
                               ^
    fprint.c:23099:20: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'
             if (sizeof(enum fp_capture_result) <= sizeof(long)) {
                        ^
    fprint.c:23102:27: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'
             } else if (sizeof(enum fp_capture_result) <= sizeof(PY_LONG_LONG)) {
                               ^
    fprint.c:23110:52: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'
             return _PyLong_FromByteArray(bytes, sizeof(enum fp_capture_result),
                                                        ^
    fprint.c:23086:73: warning: unused variable 'const_zero' [-Wunused-variable]
         const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;
                                                                             ^
    fprint.c:23086:34: warning: unused variable 'neg_one' [-Wunused-variable]
         const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;
                                      ^
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
    Complete output from command /home/pi/fp/venv/bin/python2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-noT6Z4/fprint-0.1/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-kaAL12-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/fp/venv/include/site/python2.7:
    running install

running build

running build_ext

building 'fprint' extension

creating build

creating build/temp.linux-armv7l-2.7

arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c fprint.c -o build/temp.linux-armv7l-2.7/fprint.o

fprint.c:1491:78: warning: 'enum fp_capture_result' declared inside parameter list

 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__fp_capture_result(enum fp_capture_result value);

                                                                              ^

fprint.c:1491:78: warning: its scope is only this definition or declaration, which is probably not what you want

fprint.c: In function 'initfprint':

fprint.c:16311:58: error: 'FP_CAPTURE_COMPLETE' undeclared (first use in this function)

     __pyx_t_4 = __Pyx_PyInt_From_enum__fp_capture_result(FP_CAPTURE_COMPLETE); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 54, __pyx_L1_error)

                                                          ^

fprint.c:16311:58: note: each undeclared identifier is reported only once for each function it appears in

fprint.c:16311:58: error: type of formal parameter 1 is incomplete

fprint.c:16329:58: error: 'FP_CAPTURE_FAIL' undeclared (first use in this function)

     __pyx_t_4 = __Pyx_PyInt_From_enum__fp_capture_result(FP_CAPTURE_FAIL); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 55, __pyx_L1_error)

                                                          ^

fprint.c:16329:58: error: type of formal parameter 1 is incomplete

fprint.c:16535:58: error: type of formal parameter 1 is incomplete

     __pyx_t_4 = __Pyx_PyInt_From_enum__fp_capture_result(FP_CAPTURE_COMPLETE); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 62, __pyx_L1_error)

                                                          ^

fprint.c:16599:58: error: type of formal parameter 1 is incomplete

     __pyx_t_7 = __Pyx_PyInt_From_enum__fp_capture_result(FP_CAPTURE_FAIL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 63, __pyx_L1_error)

                                                          ^

fprint.c: At top level:

fprint.c:23085:88: warning: 'enum fp_capture_result' declared inside parameter list

           static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__fp_capture_result(enum fp_capture_result value) {

                                                                                        ^

fprint.c:23085:106: error: parameter 1 ('value') has incomplete type

           static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__fp_capture_result(enum fp_capture_result value) {

                                                                                                          ^

fprint.c: In function '__Pyx_PyInt_From_enum__fp_capture_result':

fprint.c:23086:16: error: variable 'neg_one' has initializer but incomplete type

     const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;

                ^

fprint.c:23086:50: error: conversion to incomplete type

     const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;

                                                  ^

fprint.c:23086:34: error: storage size of 'neg_one' isn't known

     const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;

                                  ^

fprint.c:23086:50: error: variable 'const_zero' has initializer but incomplete type

     const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;

                                                  ^

fprint.c:23086:92: error: conversion to incomplete type

     const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;

                                                                                            ^

fprint.c:23086:73: error: storage size of 'const_zero' isn't known

     const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;

                                                                         ^

fprint.c:23089:20: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'

         if (sizeof(enum fp_capture_result) < sizeof(long)) {

                    ^

fprint.c:23091:27: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'

         } else if (sizeof(enum fp_capture_result) <= sizeof(unsigned long)) {

                           ^

fprint.c:23094:27: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'

         } else if (sizeof(enum fp_capture_result) <= sizeof(unsigned PY_LONG_LONG)) {

                           ^

fprint.c:23099:20: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'

         if (sizeof(enum fp_capture_result) <= sizeof(long)) {

                    ^

fprint.c:23102:27: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'

         } else if (sizeof(enum fp_capture_result) <= sizeof(PY_LONG_LONG)) {

                           ^

fprint.c:23110:52: error: invalid application of 'sizeof' to incomplete type 'enum fp_capture_result'

         return _PyLong_FromByteArray(bytes, sizeof(enum fp_capture_result),

                                                    ^

fprint.c:23086:73: warning: unused variable 'const_zero' [-Wunused-variable]

     const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;

                                                                         ^

fprint.c:23086:34: warning: unused variable 'neg_one' [-Wunused-variable]

     const enum fp_capture_result neg_one = (enum fp_capture_result) -1, const_zero = (enum fp_capture_result) 0;

                                  ^

error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

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.