I'm having a similar problem on Windows using Buildout. I have deletd
the orginal pymongo directory and retried.
import pymongo
File "D:\dev\eggs\pymongo-1.9-py2.6-win32.egg\pymongo\__init__.py",
line 17, in <module>
from pymongo.connection import Connection as PyMongo_Connection
File "D:\dev\eggs\pymongo-1.9-py2.6-win32.egg\pymongo
\connection.py", line 45, in <module>
from pymongo import (database,
File "D:\dev\eggs\pymongo-1.9-py2.6-win32.egg\pymongo\database.py",
line 19, in <module>
from bson.code import Code
File "D:\dev\eggs\pymongo-1.9-py2.6-win32.egg\pymongo\bson.py", line
24, in <module>
from pymongo.binary import Binary
File "D:\dev\eggs\pymongo-1.9-py2.6-win32.egg\pymongo\binary.py",
line 15, in <module>
from bson.binary import *
ImportError: No module named binary
You'll see a couple of differences from Philip's traceback, presumably
platform-related differences.
If I modify pymongo/binary.py and add:
print help(bson)
I get:
Help on module pymongo.bson in pymongo:
NAME
pymongo.bson - Tools for dealing with Mongo's BSON data
representation.
FILE
d:\dev\eggs\pymongo-1.9-py2.6-win32.egg\pymongo\bson.py
DESCRIPTION
Generally not needed to be used by application developers.
None
So it seems that the import from bson.binary would be looking for
pymongo.bson.binary, correct??
Thanks
Brad
On Sep 23, 5:37 am, "Philip Southam [
movieclips.com]"