Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 829
Balwinder Singh Avatar asked Jan 02 '18 11:01

Balwinder Singh


People also ask

What version of pymongo does Min_wire_version run on?

It runs an older version of MongoDB, so I found an equally old version of pymongo and it worked. min_wire_version was added sometime after the release of Mongo 2.4.14, so I just installed pymongo drivers that were equally as old.

Will pymongo work on a Raspberry Pi 3B?

That's it. Everything should work! Show activity on this post. I have a Raspberry Pi 3B with mongo version. It runs an older version of MongoDB, so I found an equally old version of pymongo and it worked. min_wire_version was added sometime after the release of Mongo 2.4.14, so I just installed pymongo drivers that were equally as old.

What versions of MongoDB are supported by MongoDB NodeJS driver?

MongoDB 2.4 reached end of life in March of 2016, MongoDB Node.js 3.x driver dropped support for MongoDB 2.4 or below. Beginning in NoSQLBooster for MongoDB 4.3, versions of MongoDB server prior to version 2.6 are no longer supported. You can download 3.5.7 from the download page which supports MongoDB 2.2-3.4 Hey there!

Can I run MongoDB on a Raspberry Pi 3B?

I have a Raspberry Pi 3B with mongo version. It runs an older version of MongoDB, so I found an equally old version of pymongo and it worked. min_wire_version was added sometime after the release of Mongo 2.4.14, so I just installed pymongo drivers that were equally as old.


1 Answers

It's pretty annoying and weird issue.

But this problem is solved with just downgrading pymongo library for me.

pip install pymongo==3.4.0

Found answer in this : http://d-prototype.com/archives/10939

like image 191
Erçin Akçay Avatar answered Sep 19 '22 17:09

Erçin Akçay