pyExifTool hallucination?

Started by blue-j, March 31, 2025, 01:00:40 PM

Previous topic - Next topic

blue-j

I had this code that i swear worked perfectly before:

    with exiftool.ExifTool() as et:
        metadata_list = et.get_metadata_batch([str(f) for f in files_to_process])

using PyExifTool, and now I get:

'ExifTool' object has no attribute 'get_metadata_batch'
WTH??  and now i find no evidence of:

get_metadata_batch
existing aside from in:

ExifToolAlpha.get_metadata_batch_wrapper
which is ineffective here for some reason.

anyone know what happened here?  the only other explanation i have is that i was using it in a subprocess and changed to PyExifTool without changing the command, but that rings exactly zero bells.

- J

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

blue-j

i'm just gonna splash my face and do it as a subprocess i think. strange!  the error is that the function doesn't exist, so editing any parameters or changing anything else won't be effective.  : (

blue-j


blue-j

the answer for me was to downgrade PyExifTool:

pip install pyexiftool==0.4.13