Closed kubow closed 6 years ago
Hi @kubow thanks for reporting this
This is likely an issue on the API side (it already happened in the past), I will investigate it as soon as I can.
FYI you can install the development branch of PyOWM that introduces requests
as HTTP client (instead of urllib
). That might fix your issue... can you give it a try?
You can install with:
git clone https://github.com/csparpa/pyowm.git -b develop
python setup py install # run from inside the PyOWM root folder
Tested the Git code on Ubuntu Python3 (don't needed requests installations) -> Ok!
tried both on Windows 10 (python 2.7/3.6.4) and fedora linux (python 2.7/3.6.4)
returns:
looks like the urllib is not working for me, anyone else having this troubles? Is it possible to implement requests instead?
if I type https://api.openweathermap.org/data/2.5/weather?q=Prague, cz&APPID=### it returns desired json content... so I am sure the api_key is good
the pyowm version should be the latest:
pip show pyowm
as in http error https://github.com/csparpa/pyowm/issues/102