Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if 'distance' in d['visibility']: TypeError: argument of type 'int' is not iterable #76

Closed
David-W98 opened this issue Jun 8, 2015 · 2 comments

Comments

@David-W98
Copy link

My program was working yesterday, and as far as I remember nothing was changed since then. Now all of a sudden I'm getting the above error. Someone else had the same issue but closed the topic before getting a response.

Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1489, in call
return self.func(*args)
File "FSE code.py", line 65, in weatherwindow
app.weather() # call weather function
File "FSE code.py", line 46, in weather
f = owm.weather_at_id(6182962) # pull forcast for Windsor Ontario
File "build/bdist.linux-i686/egg/pyowm/webapi25/owm25.py", line 200, in weather_at_id
return self._parsers['observation'].parse_JSON(json_data)
File "build/bdist.linux-i686/egg/pyowm/webapi25/observationparser.py", line 60, in parse_JSON
w = weather.weather_from_dictionary(d)
File "build/bdist.linux-i686/egg/pyowm/webapi25/weather.py", line 430, in weather_from_dictionary
if 'distance' in d['visibility']:
TypeError: argument of type 'int' is not iterable

@David-W98
Copy link
Author

Just needed to update the library apparently, probably should've tried that first...

@csparpa
Copy link
Owner

csparpa commented Jun 8, 2015

Hi, yes that bug has been fixed last week with hotfix release 2.1.1
Anyway thanks for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants