title: ImportError: No module named objectid
body: <p>I have currently <a href="http://django-mongodb.org/" rel="nofollow noreferrer" title="django-mongodb-engine">django-mongodb-engine</a> 0.4.0 version installed on my Mac OS X 10.6.8 and weirdly encountered an interesting error while importing the 'compiler' module:</p>
  
  <pre><code>&gt;&gt; from django_mongodb_engine import compiler
  </code></pre>
  
  <p>and I got the following error:</p>
  
  <pre><code>ImportError Traceback (most recent call last)
  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django_extensions/management/commands/shell_plus.pyc in &lt;module&gt;()
  ----&gt; 1 from django_mongodb_engine import compiler
  
  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django_mongodb_engine/compiler.pyc in &lt;module&gt;()
        15 from pymongo.errors import PyMongoError
        16 from pymongo import ASCENDING, DESCENDING
   ---&gt; 17 from pymongo.objectid import ObjectId, InvalidId
        18 
        19 from djangotoolbox.db.basecompiler import NonrelQuery, NonrelCompiler, \
  
  ImportError: No module named objectid
  </code></pre>
  
  <p>I installed the package via <a href="http://pypi.python.org/pypi" rel="nofollow noreferrer" title="pip">pip</a> command and all the dependencies like <a href="http://api.mongodb.org/python/2.2/" rel="nofollow noreferrer" title="pymongo">pymongo</a>, <a href="http://www.allbuttonspressed.com/projects/djangotoolbox" rel="nofollow noreferrer" title="djangotoolbox">djangotoolbox</a> have been installed along with it. The pip command I'd used is this:</p>
  
  <pre><code>&gt;&gt; sudo env ARCHFLAGS='-arch i386 -arch x86_64' pip install --upgrade  django-mongodb-engine
  </code></pre>
  
  <p>The current versions of the related packages are:</p>
  
  <pre><code>&gt;&gt; pip freeze | grep mongo
  django-mongodb-engine==0.4.0
  pymongo==2.2
  </code></pre>
  
  <p>I suspect the django_mongodb_engine package is broken because ObjectId is not imported inside pymongo anymore. Instead, it belongs to <a href="http://pypi.python.org/pypi/bson/0.3.2" rel="nofollow noreferrer" title="bson">bson</a> module.</p>
  
  <p>What are your suggestions to fix this problem? Should I clone the django-mongodb-engine project and fix on github?</p>