Topics

Error in Weatherplus

Dennis Zwicker
 

Hi!


When trying to search for a city, i get this error:


ERROR - unhandled exception (11:30:18.378) - MainThread (2496):
Traceback (most recent call last):
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 2635, in OnTest
    cityName, v = Shared().ParseEntry(value)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 4147, in ParseEntry
    country_acronym = self.FindForGeoName(city, city, lat, lon)[-2:]
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 3556, in FindForGeoName
    city_details = ParseName(real_city_name)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 3533, in ParseName
    city_details = GetGeo(city, acronym)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 3529, in GetGeo
    return Shared().GetGeoName(city, lat = latitude, lon = longitude,
acronym=acronym)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 4394, in GetGeoName
    if _pyVersion >= 3: data = data.decode()
AttributeError: 'str' object has no attribute 'decode'


Tried redownloading and reinstalling the addon, but it didnt help.


Help would be apriciated.


Greetings


Dennis

Ján Kulik
 

Please report this to the author, not here.






Dňa 7. 1. 2020 o 11:33 Dennis Zwicker napísal(a):

Hi!


When trying to search for a city, i get this error:


ERROR - unhandled exception (11:30:18.378) - MainThread (2496):
Traceback (most recent call last):
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",

line 2635, in OnTest
    cityName, v = Shared().ParseEntry(value)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",

line 4147, in ParseEntry
    country_acronym = self.FindForGeoName(city, city, lat, lon)[-2:]
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",

line 3556, in FindForGeoName
    city_details = ParseName(real_city_name)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",

line 3533, in ParseName
    city_details = GetGeo(city, acronym)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",

line 3529, in GetGeo
    return Shared().GetGeoName(city, lat = latitude, lon = longitude,
acronym=acronym)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",

line 4394, in GetGeoName
    if _pyVersion >= 3: data = data.decode()
AttributeError: 'str' object has no attribute 'decode'


Tried redownloading and reinstalling the addon, but it didnt help.


Help would be apriciated.


Greetings


Dennis



--
Ján Kulik

zvonimir stanečić, 9a5dsz
 

@Jan,
Adriano follows this list too, so he will see the message here, too.

-----Original Message-----
From: nvda-addons@nvda-addons.groups.io <nvda-addons@nvda-addons.groups.io> On Behalf Of Ján Kulik
Sent: Tuesday, January 7, 2020 11:36 AM
To: nvda-addons@nvda-addons.groups.io
Subject: Re: [nvda-addons] Error in Weatherplus

Please report this to the author, not here.






Dňa 7. 1. 2020 o 11:33 Dennis Zwicker napísal(a):
Hi!


When trying to search for a city, i get this error:


ERROR - unhandled exception (11:30:18.378) - MainThread (2496):
Traceback (most recent call last):
File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins
\Weather_Plus\__init__.py",

line 2635, in OnTest
cityName, v = Shared().ParseEntry(value)
File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins
\Weather_Plus\__init__.py",

line 4147, in ParseEntry
country_acronym = self.FindForGeoName(city, city, lat, lon)[-2:]
File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins
\Weather_Plus\__init__.py",

line 3556, in FindForGeoName
city_details = ParseName(real_city_name)
File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins
\Weather_Plus\__init__.py",

line 3533, in ParseName
city_details = GetGeo(city, acronym)
File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins
\Weather_Plus\__init__.py",

line 3529, in GetGeo
return Shared().GetGeoName(city, lat = latitude, lon = longitude,
acronym=acronym)
File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins
\Weather_Plus\__init__.py",

line 4394, in GetGeoName
if _pyVersion >= 3: data = data.decode()
AttributeError: 'str' object has no attribute 'decode'


Tried redownloading and reinstalling the addon, but it didnt help.


Help would be apriciated.


Greetings


Dennis




--
Ján Kulik

Adriano Barbieri
 

Hi Dennis,


Thanks for your report, will be corrected in the next update.
Can I know which city caused the problem?


Regards
Adriano


Il 07/01/2020 11:33, Dennis Zwicker ha scritto:

Hi!


When trying to search for a city, i get this error:


ERROR - unhandled exception (11:30:18.378) - MainThread (2496):
Traceback (most recent call last):
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 2635, in OnTest
    cityName, v = Shared().ParseEntry(value)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 4147, in ParseEntry
    country_acronym = self.FindForGeoName(city, city, lat, lon)[-2:]
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 3556, in FindForGeoName
    city_details = ParseName(real_city_name)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 3533, in ParseName
    city_details = GetGeo(city, acronym)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 3529, in GetGeo
    return Shared().GetGeoName(city, lat = latitude, lon = longitude,
acronym=acronym)
  File
"C:\Users\maulw\AppData\Roaming\nvda\addons\Weather_Plus\globalPlugins\Weather_Plus\__init__.py",
line 4394, in GetGeoName
    if _pyVersion >= 3: data = data.decode()
AttributeError: 'str' object has no attribute 'decode'


Tried redownloading and reinstalling the addon, but it didnt help.


Help would be apriciated.


Greetings


Dennis





Dennis Zwicker
 

Hi!

Problem solved!

Seamed to have something to do with the web filter of the wireless
network i am connected to.


Greetings

Dennis

Brian's Mail list account
 

It should fail nicely though. It looks like a character it returned was not what was expected.
range wise.
Brian

bglists@...
Sent via blueyonder.
Please address personal E-mail to:-
briang1@..., putting 'Brian Gaff'
in the display name field.
Newsgroup monitored: alt.comp.blind-users

----- Original Message -----
From: "Dennis Zwicker" <dennis.zwicker@...>
To: <nvda-addons@nvda-addons.groups.io>
Sent: Tuesday, January 07, 2020 11:12 AM
Subject: Re: [nvda-addons] Error in Weatherplus


Hi!

Problem solved!

Seamed to have something to do with the web filter of the wireless
network i am connected to.


Greetings

Dennis