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

Forecast __unicode__ attribute error #37

Closed
CelestialReaver opened this issue Jul 1, 2015 · 4 comments
Closed

Forecast __unicode__ attribute error #37

CelestialReaver opened this issue Jul 1, 2015 · 4 comments

Comments

@CelestialReaver
Copy link

I'm running into an issue, whether I use forecastio with 2.7 or 3.4, where I'm getting the following error:

AttributeError: "'Forecast' object has no attribute 'unicode'"

Not sure what I'm doing wrong or if this is a legit bug. Thanks in advance!

@CelestialReaver
Copy link
Author

This is user error. My bad.

@dharamsk
Copy link

dharamsk commented Mar 2, 2016

I'll just edit that question to an answer:
I had the same issue. Then I looked at the examples and forecast is an object with attributes that can be called according to the documentation. Got it 👍

@s-ravuri
Copy link

s-ravuri commented Oct 3, 2018

can anyone give a definitive answer for what to do here?

@Olive00000
Copy link

This part is neccecary:

forecast = forecastio.load_forecast(api_key, lat, lng)
byHour = forecast.hourly() #Can either put currently, minutely, hourly or daily
print (byHour.summary)

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

4 participants