ZeevG/python-forecast.io

importing forecastio fails

Closed this issue · 1 comments

,>>> 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

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