ExifTool Forum

General => Other Discussion => Topic started by: bergjet on February 08, 2016, 03:14:24 AM

Title: [pyExifToolGUI] ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 08, 2016, 03:14:24 AM
I have install the exiftool 10.10.dmg. There was in usr/local/bin
Then i have install the exiftoolgui.app
But "exiftool gui" does not find exiftool. I've done all folders visible. (defaults write com.apple.finder AppleShowAllFiles 1)

PH Edit: Changed subject name to include "pyExifToolGUI"
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: Phil Harvey on February 08, 2016, 07:16:24 AM
I don't know what GUI you are talking about, but the ExifToolGUI discussed here is Windows only.

- Phil
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 08, 2016, 11:04:20 AM
Ok,
its the ExifToolGUI for Mac.
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: Phil Harvey on February 08, 2016, 11:14:54 AM
I don't recall seeing this GUI before.  Where did you get it?

- Phil
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 08, 2016, 11:21:32 AM
sorry
pyExifToolGUI https://hvdwolf.github.io/pyExifToolGUI/
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: Hayo Baan on February 08, 2016, 11:32:41 AM
I haven't tried pyExifToolGUI myself, but most likely /usr/local/bin is not in your path. To check: open a terminal window and type echo $PATH, and to see if exifTool is actually running, type which exiftool and finally exiftool -ver. This will tell us where exiftool is installed and if it actually works.

Further questions, what version of OS X are your running, and how do you start pyExifToolGUI?

Cheers,
Hayo
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 08, 2016, 11:51:15 AM
iMac:~ Martin$ echo $PATH
/Library/Application Support/GoodSync:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
iMac:~ Martin$ which exiftool
/usr/local/bin/exiftool
iMac:~ Martin$ exiftool -ver
10.10

OS X 10.11.3
I start pyExifToolGUI from the Applications Folder pyExifToolGUI.app
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: Phil Harvey on February 08, 2016, 12:39:27 PM
Ah.  The Python GUI.  I would suggest trying Hayo's suggestion and specifying /usr/local/bin directly in the script.

- Phil
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 08, 2016, 12:55:37 PM
Quote from: Phil Harvey on February 08, 2016, 12:39:27 PM
Ah.  The Python GUI.  I would suggest trying Hayo's suggestion and specifying /usr/local/bin directly in the script.

- Phil

Phil, you make the proposal?
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: Phil Harvey on February 08, 2016, 01:08:39 PM
The name of the exiftool app is set on line 115 of petgfunctions.py, but there appears to be an option to specify an alternate location (line 113).  I didn't quickly find the documentation about the options and how to specify the alternate location, but you might look into this.

- Phil
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 08, 2016, 01:21:45 PM
The option opens the Finder. But the finder shows me not to the hidden directory. Although I have said "defaults write com.apple.finder AppleShowAllFiles 1".
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: Phil Harvey on February 08, 2016, 01:36:37 PM
OK then, try putting exiftool (and its "lib" directory) on your Desktop or somewhere you can see with the Finder.

- Phil
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 08, 2016, 02:41:21 PM
Quote from: Phil Harvey on February 08, 2016, 01:36:37 PM
OK then, try putting exiftool (and its "lib" directory) on your Desktop or somewhere you can see with the Finder.

- Phil
Which Lib Directory?
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: Hayo Baan on February 08, 2016, 02:52:25 PM
The lib directory of exiftool :)
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 08, 2016, 03:07:34 PM
exiftool is in the directory usr/local/bin/
I have make a copy from the bin directory to the desktop. But it does not work.
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: Hayo Baan on February 08, 2016, 04:20:02 PM
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.
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: Phil Harvey on February 08, 2016, 10:20:52 PM
You also need the exiftool "lib" directory in the same location as the "exiftool" script.

- Phil
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 09, 2016, 02:22:59 AM
I have copy the lib directory and the exiftool to the desktop. But it does not work. No error message. However, no reaction.
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: 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
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 10, 2016, 02:08:59 AM
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.
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: bergjet on February 10, 2016, 04:30:44 AM
The solution http://tonyredhead.com/google-tips/pyexiftool-exiftool-linking-issue
Title: Re: ExifTool not Found Mac OS X El Capitan
Post by: Phil Harvey on February 10, 2016, 07:08:32 AM
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 (https://github.com/hvdwolf/pyExifToolGUI/issues/17) and is working on a solution.
Title: Re: [pyExifToolGUI] ExifTool not Found Mac OS X El Capitan
Post by: RiotNrrrd on April 23, 2016, 05:16:04 AM
"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.