NaturalGIS / naturalgis_geotag_and_import_photos

A QGIS plugin to tag and geo-tag photos (and import them as point layer)
GNU General Public License v2.0
9 stars 4 forks source link

python error when importing photos on qgis 2.x #8

Open gioman opened 9 years ago

gioman commented 9 years ago
Traceback (most recent call last):
File "/home/giovanni/.qgis2/python/plugins/geotagphotos/importphotosdialog.py", line 88, in selectPhotosDir
self.loadTags(dirName)
File "/home/giovanni/.qgis2/python/plugins/geotagphotos/importphotosdialog.py", line 125, in     loadTags
with et:
File "/home/giovanni/.qgis2/python/plugins/geotagphotos/exiftool.py", line 179, in enter
self.start()
File "/home/giovanni/.qgis2/python/plugins/geotagphotos/exiftool.py", line 162, in start
stderr=devnull)
File "/usr/lib/python2.7/subprocess.py", line 679, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 20] Not a directory

another user reports

Traceback (most recent call last):
File "/home/paneves/.qgis2/python/plugins/geotagphotos/importphotosdialog.py", line 88, in     selectPhotosDir
self.loadTags(dirName)
File "/home/paneves/.qgis2/python/plugins/geotagphotos/importphotosdialog.py", line 141, in     loadTags
for k, v in md.iteritems():
AttributeError: 'NoneType' object has no attribute 'iteritems

but maybe is just a problem of correctly installing/configuring exiftools as after that the first type of error disappear. Anyway should be something that would be better to catch and return a better error message.