Answer the question
In order to leave comments, you need to log in
I can't figure out what's wrong and how to fix it?
Greetings to all newbies who are not indifferent to stupid mistakes!
Code
import pyowm
O = OWM('763msh584b000e2d470bep14af58jsn0f3e002efc00', Language = 'ru')
place = input("Which city/country?:")
observation = weather_at_place(place)
w = observation.get_weather()
temp = w.get_temperature( "celsius")["temp"]
print('In the city ' + place + ' now' + w.get_detailed_status())
print('The temperature is now in the area ' + str(temp))
:
AttributeError: partially initialized module 'pyowm ' has no attribute 'OWM' (most likely due to a circular import
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question