uncopenweb / torongo

Utilities for using Mongo with Tornado.
6 stars 1 forks source link

pymongo 1.9 import error #15

Closed parente closed 14 years ago

parente commented 14 years ago

Need to "import pymongo.objectid" explicitly in latest version.

500: Internal Server Error

Traceback (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'
parente commented 14 years ago

3c52bb4aad06efc89f15