sylikc / pyexiftool

PyExifTool (active PyPI project) - A Python library to communicate with an instance of Phil Harvey's ExifTool command-line application. Runs one process with special -stay_open flag, and pipes data to/from. Much more efficient than running a subprocess for each command!
Other
144 stars 17 forks source link

v0.5.0 AttributeError: 'ExifTool' object has no attribute 'get_metadata_batch' and 'get_metadata' #41

Closed manuel1957 closed 2 years ago

manuel1957 commented 2 years ago

After update to 0.5.0 (Successfully installed pyexiftool-0.5.0) I get two problems: first one the parameter executable_ from Exiftool doesn' t exist I have to replace by executable second one methods 'get_metadata_batch' or 'get_metadata' doesn't exist and if I have a look at the documentation there are always here AttributeError: 'ExifTool' object has no attribute 'get_metadata_batch' AttributeError: 'ExifTool' object has no attribute 'get_metadata'

Could you help?

sylikc commented 2 years ago

@manuel1957 the executable_, yes is renamed to executable

So in your use case, anywhere where you used get_metadata, change that to get_metadata()[0] and anywhere you used get_metadata_batch, replace that with get_metadata

sylikc commented 2 years ago

Documentation is still being updated. It should reflect these changes soon when I get the new stuff pushed out https://github.com/sylikc/pyexiftool/issues/28#issuecomment-1056032848

sylikc commented 2 years ago

@manuel1957 this is the method signature for your use case. https://sylikc.github.io/pyexiftool/reference/2-helper.html#exiftool.ExifToolHelper.get_metadata

Please let me know if you have further issues

sylikc commented 2 years ago

closing this issue, documentation is updated, if you have further issues, let me know!