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 on import photo #13

Open francoisatilio opened 7 years ago

francoisatilio commented 7 years ago

I get this error message đź‘Ť


2017-04-19T14:24:33 1 Traceback (most recent call last): File "C:/Users/afrancois1/.qgis2/python/plugins\geotagphotos\importphotosdialog.py", line 88, in selectPhotosDir self.loadTags(dirName) File "C:/Users/afrancois1/.qgis2/python/plugins\geotagphotos\importphotosdialog.py", line 132, in loadTags md = et.get_metadata(os.path.join(root, f)) File "C:/Users/afrancois1/.qgis2/python/plugins\geotagphotos\exiftool.py", line 255, in get_metadata return self.execute_json(filename)[0] File "C:/Users/afrancois1/.qgis2/python/plugins\geotagphotos\exiftool.py", line 239, in execute_json return json.loads(self.execute(b"-j", *params).decode("utf-8")) File "C:\PROGRA~1\QGIS2~1.18\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 bytes in position 38052-38053: invalid continuation byte


when defining the path to this photo on import window

dsc00850

gioman commented 7 years ago

@francoisatilio try a path with no spaces, no special chars, etc.

francoisatilio commented 7 years ago

Done, but not work

I change the path to C:/Temp3 and I get the same message, finishing by

UnicodeDecodeError: 'utf8' codec can't decode bytes in position 37994-37995: invalid continuation byte

It seems to be a problem with a tag, don't you think?

Le 19/04/2017 Ă  14:43, Giovanni Manghi a Ă©crit :

@francoisatilio https://github.com/francoisatilio try a path with no spaces, no special chars, etc.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NaturalGIS/geotag_and_import_photos/issues/13#issuecomment-295256267, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJxZL0PjNx0rhGzK6RbZMr0qY9HdqoDks5rxgF3gaJpZM4NBnZ5.

gioman commented 7 years ago

Sorry I can't investigate at the moment. Feel free to submit a patch if you find the bug.

BillWilliamson commented 7 years ago

Apologies, did not have ExifTool installed.