MongoKit “ImportError: No module named objectid ” error

后端 未结 2 676
粉色の甜心
粉色の甜心 2021-01-12 13:56

I get some very strange error using MongoKit:

>>> from mongokit import *
Traceback (most recent call last):
  File \"\", line 1, in <         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-12 14:26

    It's an error in the dependencies. As of PyMongo 1.11 objectid lives in the bson module, not pymongo.

提交回复
热议问题