konstantint / PassportEye

Extraction of machine-readable zone information from passports, visas and id-cards via OCR
MIT License
374 stars 109 forks source link

pip3 install fails with errors #47

Closed unbaiat closed 4 years ago

unbaiat commented 4 years ago
    imagecodecs/_tiff.c: In function ‘__pyx_pymod_exec__tiff’:
    imagecodecs/_tiff.c:29393:36: error: ‘COMPRESSION_ZSTD’ undeclared (first use in this function); did you mean ‘COMPRESSION_LZW’?
       __pyx_t_5 = __Pyx_PyInt_From_int(COMPRESSION_ZSTD); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 84, __pyx_L1_error)
                                        ^~~~~~~~~~~~~~~~
                                        COMPRESSION_LZW
    imagecodecs/_tiff.c:29393:36: note: each undeclared identifier is reported only once for each function it appears in
    imagecodecs/_tiff.c:29405:36: error: ‘COMPRESSION_WEBP’ undeclared (first use in this function); did you mean ‘COMPRESSION_NEXT’?
       __pyx_t_5 = __Pyx_PyInt_From_int(COMPRESSION_WEBP); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 85, __pyx_L1_error)
                                        ^~~~~~~~~~~~~~~~
                                        COMPRESSION_NEXT
    At top level:
    imagecodecs/_tiff.c:10261:47: warning: ‘__pyx_f_11imagecodecs_5_tiff_memtif_new’ defined but not used [-Wunused-function]
     static __pyx_t_11imagecodecs_5_tiff_memtif_t *__pyx_f_11imagecodecs_5_tiff_memtif_new(toff_t __pyx_v_size, toff_t __pyx_v_inc) {
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

libtiff5-dev is installed. Package 'libtiff4-dev' has no installation candidate

konstantint commented 4 years ago

Seems to be an instance of this issue. Try doing pip install -U pip.