Page 1 of 1

Indigo 7 Weathersnoop 3 lite traceback error

PostPosted: Wed Jan 04, 2017 7:50 pm
by jbinder
I finally updated to weathersnoop 3 lite. I have been using Weathersnoop 2 for years. I followed the plugin instructions and the weathersnoop users guide. I can get all the way to Select state for UI. The only choice is "no states available" Looking in the Event Log I see:
WeatherSnoop Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 374, in getStateList
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 4248: ordinal not in range(128)

What should I do to get this working? I do not have a weather station but am using Weather Underground to get data from the closest NWS station.

Re: Indigo 7 Weathersnoop 3 lite traceback error

PostPosted: Thu Jan 05, 2017 10:29 am
by jay (support)
Interesting. Do you have any non-ascii characters in any part of the dialog you happen to be in?

Re: Indigo 7 Weathersnoop 3 lite traceback error

PostPosted: Thu Jan 05, 2017 1:30 pm
by jbinder
I receive the error as soon as I pick from the Select WeatherSnoop Instance: Pull down. I select: WeatherSnoop 3 - John's iMac@Johns-iMac.local.:8000

WeatherSnoop Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 374, in getStateList
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 4185: ordinal not in range(128)

I also see the error when I choose from the Select WeatherSnoop agent Pull Down. That selection is: Station KSLC (Weather Underground)

WeatherSnoop Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 374, in getStateList
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 4248: ordinal not in range(128)



The errors are exactly the same except for the position number 4185 for Instance and 4248 for agent

Re: Indigo 7 Weathersnoop 3 lite traceback error

PostPosted: Thu Jan 05, 2017 1:41 pm
by FlyingDiver
And your culprit is the fancy apostrophe:

\u2019 (curly left single quote) -> '

Re: Indigo 7 Weathersnoop 3 lite traceback error

PostPosted: Thu Jan 05, 2017 3:15 pm
by jay (support)
I'll look at making the plugin a bit more robust when it comes to unicode strings. Workaround is to change the name of your Mac so it uses a standard apostrophe.

Re: Indigo 7 Weathersnoop 3 lite traceback error

PostPosted: Thu Jan 05, 2017 7:52 pm
by jbinder
The single quote was defaulted when I setup the iMac. I could care less about it and have removed the quote. Restarted the iMac and the WeatherSnoop plugin is working great! Thanks for all your help! Indigo is easily one of my favorite Mac apps.