I've been trying to run the following code:
exif = pyexiv2.ImageMetadata(image_file)
exif.read()
on Python 3.7.0 and it yields an error AttributeError: module 'pyexiv2' has no attribute 'ImageMetadata'
I haven't used pyexiv2 before but the example illustrated here is similar to mine and I presume it works fine. I'm also not sure if pyexiv2 is fully supported for Python 3. Please Advise.
You can find the script I'm working with here
This module uses
but you have to install
py3exiv2
instead ofpyexiv2
- you can see it in first line of TutorialBut it uses some
C/C++
code and it needs other modules inC/C++
.On Linux I had to install
and later
(not
pyexiv2
)See
Dependences
on page DevelopersOn Linux I have installed compiler
C/C++
-gcc
- but you may have to install it on other systems.