Сма код:
from pyowm import OWM
owm = OWM('487e59510cc7edb0666a001e740e1de6')
place = str( input("В каком городе/стране?: "))
mgr = owm.weather_manager()
observation = owm.weather_at_place(place)
w = observation.get_weather()
print( "В городе " + place + "сейчас" + w.get_detail_status())
Ошибка:
В каком городе/стране?: Москва
Traceback (most recent call last):
File "C:\Users\Z I P I D Y\PycharmProjects\pythonwork1\pogoda.py", line 8, in
w = observation.get_weather()
AttributeError: 'NoneType' object has no attribute 'get_weather'
Process finished with exit code 1