[pyExifToolGUI] ExifTool not Found Mac OS X El Capitan

Started by bergjet, February 08, 2016, 03:14:24 AM

Previous topic - Next topic

Hayo Baan

What Phil suggested was that you placed the whole of the exiftool application on your desktop and then point to that in pyExiftoolGui.

Hope that makes things clearer.
Hayo Baan – Photography
Web: www.hayobaan.nl

Phil Harvey

You also need the exiftool "lib" directory in the same location as the "exiftool" script.

- Phil
...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 ($).

bergjet

I have copy the lib directory and the exiftool to the desktop. But it does not work. No error message. However, no reaction.

Phil Harvey

Sorry, I can't help here.  I tried to run pyExifTool but it requires Image::Magick which gave errors when I tried to install it, and I don't have much spare time to figure out why.

- Phil
...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 ($).

bergjet

Quote from: Phil Harvey on February 09, 2016, 07:10:00 AM
Sorry, I can't help here.  I tried to run pyExifTool but it requires Image::Magick which gave errors when I tried to install it, and I don't have much spare time to figure out why.

- Phil
That's okay, thank you Phil.

bergjet

The solution http://tonyredhead.com/google-tips/pyexiftool-exiftool-linking-issue

Phil Harvey

Wow, that's complicated.  I think it would be much easier to make a simple modification to pyExifToolGUI to run exiftool from /usr/local/bin.

- Phil

Edit:  Also, for the record, the pyExifToolGUI author knows about this problem and is working on a solution.
...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 ($).

RiotNrrrd

"Hi, long-time listener, first-time caller ..."

Just wanted to add my 2 (US) cents.

I was happily using ExifTool 9.78 and pyExifToolGUI 0.5 on Yosemite 10.10.5 and then I upgraded ExifTool to 10.15 and it broke pyExifToolGUI, of course.

I ran the binary inside the .app bundle directly and got

% /Applications/pyexiftoolgui.app/Contents/MacOS/pyexiftoolgui

Program start: We are on python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
create arguments file(s) from selected image(s)
create arguments file(s) from selected image(s)
/Users/riotnrrrd
/Users/riotnrrrd/.pyexiftoolgui/config.cfg
reading config.cfg
Traceback (most recent call last):
  File "<string>", line 624, in <module>
  File "<string>", line 200, in __init__
  File "/Users/Shared/development/python_related/pyside/pyExifToolGUI-0.5/MacOSX/build/pyi.darwin/pyexiftoolgui/out00-PYZ.pyz/petgfunctions", line 152, in tool_check
  File "/Users/Shared/development/python_related/pyside/pyExifToolGUI-0.5/MacOSX/build/pyi.darwin/pyexiftoolgui/out00-PYZ.pyz/petgfunctions", line 86, in exiftool_version_level_text
ValueError: invalid literal for float(): 10.15 [Warning: Library version is 9.78]

I thought that was interesting because the old 9.78 binary was in /usr/bin/exiftool and the new 10.15 binary is in /usr/local/bin/exiftool.

I made the two changes to ~/.pyexiftoolgui/config.cfg but it still doesn't come up.  (Not deterministically, anyway.)

% head -3 ~/.pyexiftoolgui/config.cfg
[preferences]
alternate_exiftool = True
exiftooloption = /usr/local/bin/exiftool

% /Applications/pyexiftoolgui.app/Contents/MacOS/pyexiftoolgui

Program start: We are on python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
create arguments file(s) from selected image(s)
create arguments file(s) from selected image(s)
/Users/riotnrrrd
/Users/riotnrrrd/.pyexiftoolgui/config.cfg
reading config.cfg
Traceback (most recent call last):
  File "<string>", line 624, in <module>
  File "<string>", line 200, in __init__
  File "/Users/Shared/development/python_related/pyside/pyExifToolGUI-0.5/MacOSX/build/pyi.darwin/pyexiftoolgui/out00-PYZ.pyz/petgfunctions", line 152, in tool_check
  File "/Users/Shared/development/python_related/pyside/pyExifToolGUI-0.5/MacOSX/build/pyi.darwin/pyexiftoolgui/out00-PYZ.pyz/petgfunctions", line 86, in exiftool_version_level_text
ValueError: could not convert string to float:


(The amusing thing here is that there is no "/Users/share/development" folder.  Obviously this is left over from the pyExifToolGUI author's own build environment.)

I downloaded a binary .dmg of pyExifToolGUI so there is no "petgfunctions.py" file to diddle.

When it quits I see this in the logs:

com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.pyexiftoolgui.31562): Could not resolve origin of domain. XPC services in this domain's bundle will not be bootstrapped: error = 107: Malformed bundle, taint = missing executable

What I'm finding is that it comes up (and stays up) about once for every 4 to 6 or 7 times I try to open it.  Very odd!

The

Traceback (most recent call last):
  File "<string>", line 624, in <module>
  File "<string>", line 200, in __init__
  File "/Users/Shared/development/python_related/pyside/pyExifToolGUI-0.5/MacOSX/build/pyi.darwin/pyexiftoolgui/out00-PYZ.pyz/petgfunctions", line 152, in tool_check
  File "/Users/Shared/development/python_related/pyside/pyExifToolGUI-0.5/MacOSX/build/pyi.darwin/pyexiftoolgui/out00-PYZ.pyz/petgfunctions", line 86, in exiftool_version_level_text
ValueError: could not convert string to float:


error messages only come out on the attempts that fail, obvs.  I have no idea why it coming up is so non-deterministic.