When running pip install py3exiv2
, I got this error:
Collecting py3exiv2
Downloading py3exiv2-0.2.1.tar.gz
Installing collected packages: py3exiv2
Running setup.py install for py3exiv2 ... error
Complete output from command /home/vagrant/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-j6a3aby9/py3exiv2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ppz_a46j-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/vagrant/venv/include/site/python3.4/py3exiv2:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/pyexiv2
copying src/pyexiv2/iptc.py -> build/lib.linux-x86_64-3.4/pyexiv2
copying src/pyexiv2/exif.py -> build/lib.linux-x86_64-3.4/pyexiv2
copying src/pyexiv2/xmp.py -> build/lib.linux-x86_64-3.4/pyexiv2
copying src/pyexiv2/preview.py -> build/lib.linux-x86_64-3.4/pyexiv2
copying src/pyexiv2/__init__.py -> build/lib.linux-x86_64-3.4/pyexiv2
copying src/pyexiv2/utils.py -> build/lib.linux-x86_64-3.4/pyexiv2
copying src/pyexiv2/metadata.py -> build/lib.linux-x86_64-3.4/pyexiv2
running build_ext
building 'libexiv2python' extension
creating build/temp.linux-x86_64-3.4
creating build/temp.linux-x86_64-3.4/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/home/vagrant/venv/include -I/usr/include/python3.4m -c src/exiv2wrapper.cpp -o build/temp.linux-x86_64-3.4/src/exiv2wrapper.o -g
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from src/exiv2wrapper.cpp:27:0:
src/exiv2wrapper.hpp:32:27: fatal error: exiv2/image.hpp: No such file or directory
#include "exiv2/image.hpp"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
I tried on a mac with Python 3.5, and on Ubuntu with virtualenv and Python 3.4, similar error.
Did I forget to install some dependency manually? Is the package not maintained with newest Python version?
Thanks.
Yes it is a challenge. I was able to 'Build' py3exiv2 on centOS and on the AWS EC2 Linux2 distro. However I have had no success with MacOS yet, but find working on VirtualBox with a shared drive mount very effective.
If you are interested in the run sheet to do the build let me know and I will clean it up and post it here.
R
Pawel, asked how I built py3exiv2 on centOS on the AWS EC2 Linux2 distro. I had a lot of help from the 'Team Exiv' with some members also found on 'openhub.com'. I have attached the crude run-book I developed. You will obviously need to select newer libraries.
Please keep in mind that there are crude notes, not a detailed and highly polished manual. Plus I have not tested it in at least 12 months. Think about what what the steps are doing and if it doesn't work check syntax against the library doco.
This was built on a VirtualBox environment which is only relevant with regard to the VM setup
Earlier tests were on Centos 7.4 if my recollection is correct (?CentOS-7-x86_64-DVD-1708.iso?). The Centos build was basically identical to AWS Linux2 distro build except with regard to the Linux2 user-data and metadata.
Try to
And then
It should be ok... Those are build dependencies for py3exiv2...