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.
Indigo 7 Weathersnoop 3 lite traceback error
- jay (support)
- Site Admin
- Posts: 19232
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Indigo 7 Weathersnoop 3 lite traceback error
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
I receive the error as soon as I pick from the Select WeatherSnoop Instance: Pull down. I select: WeatherSnoop 3 - John's [email protected].: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
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
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Indigo 7 Weathersnoop 3 lite traceback error
And your culprit is the fancy apostrophe:
\u2019 (curly left single quote) -> '
\u2019 (curly left single quote) -> '
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
- jay (support)
- Site Admin
- Posts: 19232
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Indigo 7 Weathersnoop 3 lite traceback error
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
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.