Message from discussion
PyMongo and ImportError
Received: by 10.213.30.7 with SMTP id s7mr1992013ebc.21.1285078756378;
Tue, 21 Sep 2010 07:19:16 -0700 (PDT)
X-BeenThere: mongodb-user@googlegroups.com
Received: by 10.213.43.207 with SMTP id x15ls2431677ebe.1.p; Tue, 21 Sep 2010
07:19:06 -0700 (PDT)
Received: by 10.213.41.75 with SMTP id n11mr2012385ebe.8.1285078746230;
Tue, 21 Sep 2010 07:19:06 -0700 (PDT)
Received: by 10.213.41.75 with SMTP id n11mr2012383ebe.8.1285078746200;
Tue, 21 Sep 2010 07:19:06 -0700 (PDT)
Return-Path: <m...@10gen.com>
Received: from mail-ew0-f41.google.com (mail-ew0-f41.google.com [209.85.215.41])
by gmr-mx.google.com with ESMTP id a48si9528435eei.2.2010.09.21.07.19.06;
Tue, 21 Sep 2010 07:19:06 -0700 (PDT)
Received-SPF: neutral (google.com: 209.85.215.41 is neither permitted nor denied by best guess record for domain of m...@10gen.com) client-ip=209.85.215.41;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.215.41 is neither permitted nor denied by best guess record for domain of m...@10gen.com) smtp.mail=m...@10gen.com
Received: by mail-ew0-f41.google.com with SMTP id 28so2408067ewy.28
for <mongodb-user@googlegroups.com>; Tue, 21 Sep 2010 07:19:06 -0700 (PDT)
Received: by 10.213.19.203 with SMTP id c11mr4209271ebb.31.1285078745931;
Tue, 21 Sep 2010 07:19:05 -0700 (PDT)
Return-Path: <m...@10gen.com>
Received: from mail-ew0-f48.google.com (mail-ew0-f48.google.com [209.85.215.48])
by mx.google.com with ESMTPS id v59sm12906815eeh.22.2010.09.21.07.19.03
(version=SSLv3 cipher=RC4-MD5);
Tue, 21 Sep 2010 07:19:04 -0700 (PDT)
Received: by ewy10 with SMTP id 10so2945172ewy.7
for <mongodb-user@googlegroups.com>; Tue, 21 Sep 2010 07:19:03 -0700 (PDT)
Received: by 10.213.114.5 with SMTP id c5mr8252026ebq.91.1285078742937; Tue,
21 Sep 2010 07:19:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.213.14.138 with HTTP; Tue, 21 Sep 2010 07:18:42 -0700 (PDT)
In-Reply-To: <30dc6a91-fc34-4f09-970f-b3fb0b8b2db7@h37g2000pro.googlegroups.com>
References: <30dc6a91-fc34-4f09-970f-b3fb0b8b2...@h37g2000pro.googlegroups.com>
From: Michael Dirolf <m...@10gen.com>
Date: Tue, 21 Sep 2010 10:18:42 -0400
Message-ID: <AANLkTim2tViuX0jh6VkSjDzG6RZLEfPrCvYYSynZ7...@mail.gmail.com>
Subject: Re: [mongodb-user] PyMongo and ImportError
To: mongodb-user@googlegroups.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Is it possible that you have some old pyc files around or something?
The file pymongo/bson.py was removed in the commit that you mention,
and the problem seems to be that that module is still getting picked
up instead of the new bson package.
On Mon, Sep 20, 2010 at 19:16, Philip Southam [movieclips.com]
<phi...@movieclips.com> wrote:
> Is anyone else using the pymongo driver getting this error (while
> trying to import pymongo) on git checkouts dated after Thu Sep 9
> 11:47:52 2010 -0400?
>
> Traceback (most recent call last):
> =C2=A0File "<string>", line 1, in <module>
> =C2=A0File "pymongo/__init__.py", line 17, in <module>
> =C2=A0 =C2=A0from pymongo.connection import Connection as PyMongo_Connect=
ion
> =C2=A0File "pymongo/connection.py", line 45, in <module>
> =C2=A0 =C2=A0from pymongo import (database,
> =C2=A0File "pymongo/database.py", line 19, in <module>
> =C2=A0 =C2=A0from bson.code import Code
> =C2=A0File "pymongo/bson.py", line 24, in <module>
> =C2=A0File "pymongo/binary.py", line 15, in <module>
> =C2=A0 =C2=A0from bson.binary import *
> ImportError: No module named binary
>
>
> Commit 021136e797d1992e6e1734d634cb2d8ac1ee8ce5 works fine, anything
> after that I get the above error. Duplicated on both my Mac and Linux
> environments on the latest python 2.6 release.
>
> --
> You received this message because you are subscribed to the Google Groups=
"mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user+unsubscribe@go=
oglegroups.com.
> For more options, visit this group at http://groups.google.com/group/mong=
odb-user?hl=3Den.
>
>