Comments (12)
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.
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.
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.
Please paste complete Dockerfile into the issue so I can reproduce.
from pyheif.
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.
Also debian buster
from pyheif.
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.
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.
Probably caused by an old version of libheif
. Try updating or building from source if updates not available.
from pyheif.
Hi
I am getting error on Mac. Could you please help me. Thanks
from pyheif.
@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.
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)
- support for windows is missing HOT 3
- Version 0.5.2 missing arm and source HOT 2
- Commit history is blowed up HOT 12
- New release? HOT 3
- Can't install using pip HOT 2
- Missing _libheif_cffi module HOT 7
- Pip usage in documentation not ideal
- Looking forward to the "write" operation HOT 3
- Installing pyheif on Mac OS 12 failing no matter what HOT 2
- Where is pyheif's copyright? HOT 1
- Dependency on libffi should be updated to 1.10 HOT 1
- Python 3.11 wheel support HOT 5
- pip release, please HOT 2
- FFI error: struct heif_decoding_options: wrong total size HOT 11
- Pyheif Not Installing with pip command HOT 5
- Struct heif_decoding_options: wrong total size HOT 10
- pyheif doesn't install even after brew install libffi libheif HOT 13
- AttributeError: module '_libheif_cffi' has no attribute 'lib'
- Unable to package on Python 3.{10,11,12} with CFFI 1.16 on macOS 14.4 with Clang 15
- New release which works with current libheif HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyheif.