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

前端 未结 5 1641
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 00:26

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

ConfigurationError: Server

5条回答
  •  走了就别回头了
    2021-01-05 00:51

    I am having the same issue using version 2.4.10 on a Raspberry Pi 3. I found interesting information here: https://jira.mongodb.org/browse/SERVER-26715

    According to the above Jira task, it seems that this is a bug of MongoDB that was fixed in version 3.4. However, I found that comment stating that 3.4 is not supported on Raspbian because it is a 32-bits OS. This is confirmed here... we can only install 3.2 on Raspbian now apparently.

    An alternative would be to install 64bits SuSE on the Pi or run MongoDB 3.4 in Docker.

    Let me know if you have found something else...

提交回复
热议问题