-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute Error - 'ExifTool' object has no attribute 'getMetadata' #177
Comments
Hello, I have got the same issue. Well, I am glad to know that more users had the same problem because I was blamed for not being able to run a simple code... Looking forward to seeing how to fix this problem. Thanks! |
Hi folks, I happened to observe your issue, and can tell you that the problem you are seeing is due to changes in the API made in recent releases of pyexiftool by the new maintainer (https://github.com/sylikc/pyexiftool/). To fix this issue -- at least in the interim until MicaSense can address it -- I suggest you try reverting to an older version. I think 0.4.13 is the version you want to go back to. To revert, using pip, run |
Hello guys! Thanks, God, for existing such good people in this world! I really appreciate that @mcbridejc. It worked well and now also passed in the test using |
Thank you so much @mcbridejc |
I looked into the the current repository for pyexiftool (https://github.com/sylikc/pyexiftool/) and it looks like the code does not support the 'get_metadata(filename)' method for the Exiftool object anymore - not sure if that is intentional or if that is simply work in progress. On closer inspection , it turns out that the call to :
needs to be replaced with
if used with the current version of the toolbox. |
@mcbridejc works for me too. Thanks a lot! |
Hello, I am having a similar issue even after downgrading to pyexiftool==0.4.13. I got he following error when trying to run the Setup.ipynb : `--------------------------------------------------------------------------- File ~\imageprocessing\micasense\image.py:72, in Image.init(self, image_path, exiftool_obj, allow_uncalibrated) File ~\imageprocessing\micasense\metadata.py:51, in Metadata.init(self, filename, exiftool_path, exiftool_obj) AttributeError: module 'exiftool' has no attribute 'ExifToolHelper' |
i am also getting the same error.can anyone help me out? |
Hello, new to python and having difficulty; this may be basic and I am just missing something. Please indicate if you need more information. This is the error message I am getting when running the second part of the startup (MicaSense Image Processing Setup) code:
Successfully imported all required libraries.
Successfully executed exiftool.
AttributeError Traceback (most recent call last)
/var/folders/dq/xpxx0g3j4r5gxc2n777_j9l40000gp/T/ipykernel_8445/1712436492.py in
34 imageName = glob.glob(os.path.join(imagePath,'IMG_0000_1.tif'))[0]
35
---> 36 img = Image(imageName)
37 img.plot_raw(figsize=(8.73,8.73));
38
~/VIMS/imageprocessing/micasense/image.py in init(self, image_path, exiftool_obj)
67 raise IOError("Provided path is not a file: {}".format(image_path))
68 self.path = image_path
---> 69 self.meta = metadata.Metadata(self.path, exiftool_obj=exiftool_obj)
70
71 if self.meta.band_name() is None:
~/VIMS/imageprocessing/micasense/metadata.py in init(self, filename, exiftoolPath, exiftool_obj)
47 raise IOError("Input path is not a file")
48 with exiftool.ExifTool(self.exiftoolPath) as exift:
---> 49 self.exif = exift.get_metadata(filename)
50
51 def get_all(self):
AttributeError: 'ExifTool' object has no attribute 'get_metadata'
Thank you.
The text was updated successfully, but these errors were encountered: