Why is PyMongo 3 giving ServerSelectionTimeoutError?

后端 未结 20 1095
我在风中等你
我在风中等你 2020-11-30 01:21

I\'m using:

  • Python 3.4.2
  • PyMongo 3.0.2
  • mongolab running mongod 2.6.9
  • uWSGI 2.0.10
  • CherryPy 3.7.0
  • nginx 1.6.2
20条回答
  •  暖寄归人
    2020-11-30 02:06

    I had the same problem with Pymongo 3.5 Turns out replacing localhost with 127.0.0.1 or corresponding ip address of your mongodb instance solves the problem.

提交回复
热议问题