Installing Sleepy.Mongoose
Sleepy.Mongooseのインストールで躓いたのでメモ。(そして英語で試しに書いてみた。文法とかやばげ
The Sleepy.Mongoose is available at http://github.com/kchodorow/sleepy.mongoose and you can install easily. But there are ploblems to launch it.
The server failed to start
Runnning the server, I've got errer messages below:
$ python httpd.py Traceback (most recent call last): File "httpd.py", line 17, in <module> from handlers import MongoHandler File "/mnt/hgfs/share/sleepy.mongoose/sleepymongoose/handlers.py", line 16, in <module> from pymongo.son import SON ImportError: No module named son
It seems because pymongo's package structure has changed in newer versions.(http://www.snailinaturtleneck.com/blog/2010/02/22/sleepy-mongoose-a-mongodb-rest-interface/)
To avoid this err, you need to change sleepymongoose/handlers.py line 16
from:
from pymongo.son import SON
to:
from bson.son import SON