Attribute Error - 'ExifTool' object has no attribute 'getMetadata' · Issue #177 · micasense/imageprocessing · GitHub
Skip to content

Attribute Error - 'ExifTool' object has no attribute 'getMetadata' #177

Description

@anthea-ops

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions