ZeevG / python-forecast.io

A thin Python Wrapper for the Dark Sky (formerly forecast.io) weather API
http://zeevgilovitz.com/python-forecast.io/
Other
423 stars 88 forks source link

importing forecastio fails #50

Closed bonedaddy closed 7 years ago

bonedaddy commented 7 years ago

,>>> current_time = datetime.datetime.now() ,>>> current_time ,datetime.datetime(2016, 10, 25, 23, 35, 11, 279322) ,>>> self.forecast = forecastio.load_forecast(api_key, lat, long, time=current_time) ,Traceback (most recent call last): ,File "", line 1, in ,File "/usr/local/lib/python3.4/dist-packages/python_forecastio-1.3.5-py3.4.egg/forecastio/api.py", line ,41, in load_forecast ,File "/usr/local/lib/python3.4/dist-packages/python_forecastio-1.3.5-py3.4.egg/forecastio/api.py", line ,51, in manual ,File "/usr/local/lib/python3.4/dist-packages/python_forecastio-1.3.5-py3.4.egg/forecastio/api.py", line ,60, in get_forecast ,File "/usr/lib/python3/dist-packages/requests/models.py", line 825, in raise_for_status ,raise HTTPError(http_error_msg, response=self) ,requests.exceptions.HTTPError: 404 Client Error: Not Found

bonedaddy commented 7 years ago

This actually appears to be a general issue, I tried using forecastio on another linux machine and when trying to call it, I get this error

,Traceback (most recent call last): ,File "", line 1, in ,File "/root/test/python-forecast.io/forecastio/api.py", line 41, in load_forecast , return manual(baseURL, callback=callback) ,File "/root/test/python-forecast.io/forecastio/api.py", line 51, in manual , return get_forecast(requestURL) ,File "/root/test/python-forecast.io/forecastio/api.py", line 60, in get_forecast , forecastio_reponse.raise_for_status() , File "/usr/lib/python3/dist-packages/requests/models.py", line 825, in raise_for_status , raise HTTPError(http_error_msg, response=self) ,requests.exceptions.HTTPError: 404 Client Error: Not Found