Closed CHP314 closed 1 year ago
Hi, you have a compatibility problem. You can try this solution in the tutorial: https://github.com/LeoHsiao1/pyexiv2/blob/master/docs/Tutorial.md#faq
Hi, Thank you for your quick answer. I’m going to try this one.
And as usual : Read the doc first.
H.
Envoyé de mon iPhone
Le 30 oct. 2022 à 07:05, LeoHsiao @.***> a écrit :
Hi, you have a compatibility problem. You can try this solution in the tutorial: https://github.com/LeoHsiao1/pyexiv2/blob/master/docs/Tutorial.md#faq
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
Hello
I try to run this simple code
import pyexiv2
with pyexiv2.Image(r'test.jpg') as img: data = img.read_exif() print(data)
and I get the following error: Traceback (most recent call last): File "/Volumes/Cle 32Go/Image Manip/imagePyexiv2.py", line 1, in
import pyexiv2
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyexiv2/init.py", line 6, in
from .core import *
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyexiv2/core.py", line 1, in
from .lib import exiv2api
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyexiv2/lib/init.py", line 25, in
ctypes.CDLL(os.path.join(lib_dir, 'libexiv2.dylib'))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyexiv2/lib/libexiv2.dylib, 6): image not found
I run it on a macBookAir with El Capitan 10.11.6. Usually my python scripts run (slowly but run). I've tried several paths even if my file is in the same folder than the script.
Thank you for your help. H.