csparpa / pyowm

A Python wrapper around the OpenWeatherMap web API
https://pyowm.readthedocs.io
MIT License
789 stars 171 forks source link

AttributeError: 'OWM25' object has no attribute 'weather_manager' #331

Closed neiry closed 4 years ago

neiry commented 4 years ago

mgr = owm.weather_manager() AttributeError: 'OWM25' object has no attribute 'weather_manager' error (((( pls help

csparpa commented 4 years ago

@neiry Pls run one of these:

print(owm)
print(owm.version())

and report your PyOWM version This is very likely due to your PyOWM version not being 3.x Are you using Python 2 ?

neiry commented 4 years ago

py 3-x OWM 3/0

neiry commented 4 years ago

sorry Successfully installed pyowm-2.9.0

csparpa commented 4 years ago

As I said, you are using a legacy version (2.9) of PyOWM That version is no longer maintained and the documentation on readthedocs refers to the official (3.x) PyOWM stream

My advice is to update to Python3 and then to update PyOWM to v3

If you are forced by any reason to keep Python2 and PyOWM 2.9 then at this link you can find all the documentation files for v2.9