After a lot of debug I saw the following lines inside exiftool.py:
while not _get_buffer_end(output_list, endswith_count).strip().endswith(b_endswith):
if constants.PLATFORM_WINDOWS:
# windows does not support select() for anything except sockets
# https://docs.python.org/3.7/library/select.html
output_list.append(os.read(fd, block_size))
else: # pytest-cov:windows: no cover
# this does NOT work on windows... and it may not work on other systems... in that case, put more things to use the original code above
inputready, outputready, exceptready = select.select([fd], [], [])
for i in inputready:
if i == fd:
output_list.append(os.read(fd, block_size))
return b"".join(output_list)
I saw that my app crashes because this causes an infinite loop
It happens only after I wrap my python script as an application and only when I use it with double-clicking on it..
Im using mac and exiftool version is 12.77
Any ideas?
Exiftool is written in Perl, not Python. You will have to contact the author of the exiftool.py code.