当我尝试启动sleepy.mongoose(python httpd.py)时,出现以下错误:
Traceback (most recent call last):
File "/sds/sleepy.mongoose-master/sleepymongoose/httpd.py", line 17, in <module>
from handlers import MongoHandler
File "/sds/sleepy.mongoose-master/sleepymongoose/handlers.py", line 16, in <module>
from pymongo import Connection, ASCENDING, DESCENDING
ImportError: cannot import name Connection
我使用了此页面上的一些脚本How to list imported modules? 但在模块中找不到连接。
赞赏一些技巧。