pymongo 1.9 import error
Closed this issue · 1 comments
parente commented
Need to "import pymongo.objectid" explicitly in latest version.
500: Internal Server ErrorTraceback (most recent call last): File "/Library/Python/2.6/site-packages/tornado-1.1-py2.6.egg/tornado/web.py", line 814, in _stack_context yield File "/Library/Python/2.6/site-packages/tornado-1.1-py2.6.egg/tornado/stack_context.py", line 77, in StackContext yield File "/Library/Python/2.6/site-packages/tornado-1.1-py2.6.egg/tornado/web.py", line 831, in _execute getattr(self, self.request.method.lower())(*args, **kwargs) File "jsonreststore.py", line 263, in post id = newId() File "jsonreststore.py", line 31, in newId return str(pymongo.objectid.ObjectId()) AttributeError: 'module' object has no attribute 'objectid'