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

Mixing georeferenced and not georeferenced photos causes python error #4

Open gioman opened 8 years ago

gioman commented 8 years ago

Reported errors are

Traceback (most recent call last):
File "C:/Users/flo/.qgis//python/plugins\geotagphotos\importphotosdialog.py", line 86, in         selectPhotosDir
self.loadTags( dirName )
File "C:/Users/flo/.qgis//python/plugins\geotagphotos\importphotosdialog.py", line 127, in loadTags
md = et.get_metadata( os.path.join( root, f ) )
File "C:/Users/flo/.qgis//python/plugins\geotagphotos\exiftool.py", line 255, in get_metadata
return self.execute_json(filename)[0]
File "C:/Users/flo/.qgis//python/plugins\geotagphotos\exiftool.py", line 239, in execute_json
return json.loads(self.execute(b"-j", *params).decode("utf-8"))
File "C:\PROGRA~2\Quantum GIS Lisboa\apps\Python27\lib\encodings\utf_8.py", line 16, in         decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf5 in position 68068: invalid start byte

and

Traceback (most recent call last):
File "D:\Documents and Settings\##########/.qgis2/python/plugins\geotagphotos\importphotosdialog.py", line 88, in selectPhotosDir
self.loadTags(dirName)
File "D:\Documents and Settings\##########/.qgis2/python/plugins\geotagphotos    \importphotosdialog.py", line 125, in loadTags
with et:
File "D:\Documents and Settings\##########/.qgis2/python/plugins\geotagphotos\exiftool.py", line 179, in enter
self.start()
File "D:\Documents and Settings\##########/.qgis2/python/plugins\geotagphotos\exiftool.py", line 162, in start
stderr=devnull)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\subprocess.py", line 711, in init
errread, errwrite)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\subprocess.py", line 948, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified