openshift-roadshow / nationalparks-py

Backend component to display national parks (Python).
Apache License 2.0
23 stars 1k forks source link

Update requirements.txt #7

Closed wzzrd closed 2 years ago

wzzrd commented 2 years ago

Recently, PyMongo 4.0 was released, which removes the Collection.remove() method. This method is called in wsgi.py, and breaks loading of data. I'm not a Mongo expert, and I haven't looked at what replaces the remove() method, but a simple fix is to pin PyMongo at <4.0. This forces installation of 3.12.3 (as I write this) and makes data loading work again.