Bhagita / gpicsync

Automatically exported from code.google.com/p/gpicsync
Other
0 stars 0 forks source link

Geolocation Name Decoding Problem #132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Process Image using option: Geonames in IPTC + HTML

What is the expected output? What do you see instead?
Process crashes

What version of the product are you using? On what operating system?

trunk:965

Please provide any additional information below.

Gui Message:
-------------------
(Found L1180346.JPG ...taken 2013-11-08-14:38:09, writing best 
latitude/longitude match to picture: N 23.1243749 ,W -82.3847399 : time 
difference (s)= 200
Geonames: 0.93 Km North-East Plaza de la Revolución Ciudad de La Habana Cuba 
CU, writing geonames)

Console Dump
----------------
imeStamp= 
width > height
latitude=  23.1243749   longitude=  -82.3847399
url=  
http://ws.geonames.org/findNearbyPlaceName?lat=23.1243749&lng=-82.3847399&style=
full
0.93
Ciudad de La Habana
Cuba
CU
North-East

Unhandled exception in thread started by <function sync at 0x908864c>
Traceback (most recent call last):
  File "./gpicsync-GUI.py", line 1055, in sync
    os.popen(('%s %s  -overwrite_original "-DateTimeOriginal>FileModifyDate" "%s" '%(self.exifcmd,geonameKeywords.decode("utf-8"),self.picDir+'/'+fileName)).encode("utf-8"))
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 
33: ordinal not in range(128)

Original issue reported on code.google.com by christop...@gmail.com on 12 Dec 2013 at 8:53