I am trying to deploy this project on ubuntu 20 server
https://github.com/dcai/airnotifier/wiki/Installation-3.x
I followed all the steps but when I try to run the install.py file I am getting the following error
Traceback (most recent call last):
File "install.py", line 64, in <module>
collection_names = masterdb.collection_names()
File "/usr/local/lib/python3.8/dist-packages/pymongo/collection.py", line 3194, in __call__
raise TypeError(
TypeError: 'Collection' object is not callable. If you meant to call the 'collection_names' method on a 'Database' object it is failing because no such method exists.
- Python Version is: 3.8.10
- MongoDB Version is: 6.0.3
Can anyone advice what should I do?