Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError when passing config file to exiftool #9

Open
alexbruy opened this issue Jul 30, 2013 · 2 comments
Open

OSError when passing config file to exiftool #9

alexbruy opened this issue Jul 30, 2013 · 2 comments

Comments

@alexbruy
Copy link

When I try to init exiftool with custom config-file that describes some additional user tags I get this error:

  File "/home/alex/.qgis2/python/plugins/geotagphotos/exiftool.py", line 193, in __enter__
    self.start()
  File "/home/alex/.qgis2/python/plugins/geotagphotos/exiftool.py", line 176, in start
    stderr=devnull)
  File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Here is my simplified code:

etPath = "exiftool"
cfgFile = "/path/to/config/file"
etPath += " -config " + unicode(cfgFile)
et = exiftool.ExifTool(etPath)
with et:
  md = et.get_metadata("/path/to/photo")
  print md

Sample files:

@alexbruy
Copy link
Author

Forgot to say, that this code worked previously, but now master crashes

@alexbruy
Copy link
Author

Just tested pull-request #5. When passing additional options using new optional parameter addedargs all works fine.
@smarnach any chance to merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant