Code Monkey home page Code Monkey logo

Comments (12)

fdoumet avatar fdoumet commented on July 27, 2024 8

Using the packaged libheif libraries (through apt-get) didn't work for me. Had to rebuild LibHeif in the Dockerfile as so before installing pyheif:

RUN git clone https://github.com/strukturag/libheif.git libheif \
    && cd libheif \
    && ./autogen.sh \
    && ./configure \
    && make -j4 \
    && make install \
    && ldconfig

from pyheif.

 avatar commented on July 27, 2024

Have you got libheif/heif.h in /usr/local/include? If it's located somewhere different correct the path at the bottom of libheif_build.py

from pyheif.

embolon avatar embolon commented on July 27, 2024

Got almost exactly the same error on rapsberry pi running debian buster. I install libheif-dev through apt-get. Didn't try rebuild libheif as @fdoumet mentioned.

from pyheif.

 avatar commented on July 27, 2024

Please paste complete Dockerfile into the issue so I can reproduce.

from pyheif.

azin634 avatar azin634 commented on July 27, 2024

I ran into this issue too using this docker image circleci/python:3.6-node. These are the packages I installed: libheif-dev libde265-dev x265

from pyheif.

azin634 avatar azin634 commented on July 27, 2024

Also debian buster

from pyheif.

 avatar commented on July 27, 2024

I've expanded the list of dirs searched for headers and libs by setup.py
Please try installing again directly from GitHub, e.g. pip install git+https://github.com/david-poirier-csn/pyheif.git

from pyheif.

buddylindsey avatar buddylindsey commented on July 27, 2024

I just wanted to add to this. Using pyheif and trying to install dependencies on github actions. I tried doing just using the github repo still had issues. I ended up needing to do the install and build from scratch per above. That combined with the git repo it worked well.

from pyheif.

 avatar commented on July 27, 2024

Probably caused by an old version of libheif. Try updating or building from source if updates not available.

from pyheif.

rajeabc avatar rajeabc commented on July 27, 2024

Hi
I am getting error on Mac. Could you please help me. Thanks


LIbheif.pdf

from pyheif.

azin634 avatar azin634 commented on July 27, 2024

@david-poirier-csn something is still wrong on debian buster. Again it works if I manually build libheif-dev.

installing pyheif 0.5.1.
using this docker image circleci/python:3.6-node.
These are the packages I installed: libheif-dev libde265-dev x265 libffi-dev

I get this error:

  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include -I/usr/include -I/home/circleci/Cove/cove/venv/include -I/usr/local/include/python3.6m -c build/temp.linux-x86_64-3.6/_libheif_cffi.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_libheif_cffi.o
  build/temp.linux-x86_64-3.6/_libheif_cffi.c: In function ‘_cffi_const_heif_unknown_brand’:
  build/temp.linux-x86_64-3.6/_libheif_cffi.c:807:12: error: ‘heif_unknown_brand’ undeclared (first use in this function)
     int n = (heif_unknown_brand) <= 0;
              ^~~~~~~~~~~~~~~~~~
  build/temp.linux-x86_64-3.6/_libheif_cffi.c:807:12: note: each undeclared identifier is reported only once for each function it appears in
  build/temp.linux-x86_64-3.6/_libheif_cffi.c: In function ‘_cffi_const_heif_heic’:
  build/temp.linux-x86_64-3.6/_libheif_cffi.c:814:12: error: ‘heif_heic’ undeclared (first use in this function); did you mean ‘heif_writer’?
     int n = (heif_heic) <= 0;
              ^~~~~~~~~
              heif_writer
  build/temp.linux-x86_64-3.6/_libheif_cffi.c: In function ‘_cffi_const_heif_heix’:
  build/temp.linux-x86_64-3.6/_libheif_cffi.c:821:12: error: ‘heif_heix’ undeclared (first use in this function); did you mean ‘heif_writer’?
     int n = (heif_heix) <= 0;
              ^~~~~~~~~
              heif_writer
  build/temp.linux-x86_64-3.6/_libheif_cffi.c: In function ‘_cffi_const_heif_hevc’:
  build/temp.linux-x86_64-3.6/_libheif_cffi.c:828:12: error: ‘heif_hevc’ undeclared (first use in this function); did you mean ‘heif_chroma’?
     int n = (heif_hevc) <= 0;
              ^~~~~~~~~
              heif_chroma
  build/temp.linux-x86_64-3.6/_libheif_cffi.c: In function ‘_cffi_const_heif_hevx’:
  build/temp.linux-x86_64-3.6/_libheif_cffi.c:835:12: error: ‘heif_hevx’ undeclared (first use in this function); did you mean ‘heif_chroma’?
     int n = (heif_hevx) <= 0;
              ^~~~~~~~~
              heif_chroma
  build/temp.linux-x86_64-3.6/_libheif_cffi.c: In function ‘_cffi_const_heif_heim’:
  build/temp.linux-x86_64-3.6/_libheif_cffi.c:842:12: error: ‘heif_heim’ undeclared (first use in this function); did you mean ‘heif_chroma’?
     int n = (heif_heim) <= 0;
              ^~~~~~~~~
              heif_chroma
 <REDACTED. More of the above.>
    error: command 'gcc' failed with exit status 1

from pyheif.

sneawo avatar sneawo commented on July 27, 2024

I have the same errors in alpine

FROM python:3.7.6-alpine
RUN apk add --no-cache libffi-dev libheif-dev libde265-dev
RUN apk add --no-cache build-base
RUN pip3 install pyheif

from pyheif.

Related Issues (20)

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.