I think this
https://yweather.readthedocs.io/en/v0.1/...-s-weather
loc_weather = client.fetch_weather('wid')should be
loc_weather = client.fetch_weather(wid)the docs:
https://yweather.readthedocs.io/en/v0.1/...-s-weather