MongoDB Exception: Server reports wire version 0, but version of libmongoc requires at least 3

后端 未结 2 2522
执笔经年
执笔经年 2021-01-05 10:48
Fatal error: Uncaught MongoDB\\Driver\\Exception\\ConnectionException: Server at localhost:27017 reports wire version 0, but this version of libmongoc requires at le         


        
2条回答
  •  天命终不由人
    2021-01-05 11:10

    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.

    mongo --version
    MongoDB shell version: 2.4.14
    

    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.

    pip install pymongo==2.4.2 worked for me.

提交回复
热议问题