I am trying to build an application with mongoDB and Python Flask. While running the application, I am getting below error:

ConfigurationError: Server at 127.0.0.1:27017 reports wire version 0,
  but this version of PyMongo requires at least 2 (MongoDB 2.6).

Can any one help me in this?
Thanks,
Balwinder
This works for me:

sudo pip3 uninstall pymongo
sudo apt-get install python3-pymongo

I hope that works for someone else, regards.
ConfigurationError: Server at 127.0.0.1:27017 reports wire version 0, but this version of PyMongo requires at least 2 (MongoDB 2.6)