Motor and PyMongo versions

151 views
Skip to first unread message

A. Jesse Jiryu Davis

unread,
May 2, 2013, 10:48:20 AM5/2/13
to python-...@googlegroups.com
Hi, friends. We at 10gen are releasing PyMongo 2.5.1 next week, which won't work with Motor. So if you use Motor, stick with Motor 0.1 and PyMongo 2.5 from PyPI.

Motor 0.2, which will be out in a month or so, will work with whatever PyMongo version is current then. But it won't work with previous PyMongo versions! Sorry.

The cause of this insanity is that Motor accesses some PyMongo classes' "private" fields, which change frequently. ('Twas I who changed them in this case.) It's bad software engineering but I don't regret it; I wanted to release Motor 0.1 and this was the only way to do so reasonably soon.

In the medium term, we'll release a PyMongo 3.0 with well-specified hooks for Motor, and for other libraries that want to do deep customization. Motor can switch to using those hooks, and be much less tightly coupled with particular PyMongo versions.

Let me know if you have any questions. (I won't answer right away, I'm going on a retreat for the next few days.)

aliane abdelouahab

unread,
May 2, 2013, 3:56:39 PM5/2/13
to Tornado Web Server
thank you for this info
BTW; hope the pymongo documentation will be updated, here for example:
http://api.mongodb.org/python/current/faq.html#does-pymongo-support-asynchronous-frameworks-like-gevent-tornado-or-twisted

There are asynchronous MongoDB drivers in Python: AsyncMongo for
Tornado and TxMongo for Twisted. Compared to PyMongo, however, these
projects are less stable, lack features, and are less actively
maintained.

Motor should be mentionned as the project that supports Async calls
no?

On 2 mai, 15:48, "A. Jesse Jiryu Davis" <je...@emptysquare.net> wrote:
> Hi, friends. We at 10gen are releasing PyMongo 2.5.1 next week, which won't
> work with Motor. So if you use Motor, stick with Motor 0.1 and PyMongo 2.5
> from PyPI.
>
> Motor 0.2, which will be out in a month or so, will work with whatever
> PyMongo version is current then. *But* it won't work with previous PyMongo

Jean Chassoul

unread,
May 3, 2013, 9:47:50 PM5/3/13
to python-...@googlegroups.com
thanks for the heads-up!


--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jorge Puente Sarrín

unread,
May 17, 2013, 6:34:20 PM5/17/13
to python-...@googlegroups.com
Thanks for advise, in summary:

Motor 0.1 works with older versions than or equal to 2.5 of PyMongo
Motor 0.2 works with later versions to 2.5 of PyMongo

It's correct?



--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jorge Puente Sarrín.

A. Jesse Jiryu Davis

unread,
May 17, 2013, 9:09:50 PM5/17/13
to python-...@googlegroups.com
Yeah. Since Motor 0.2 isn't released yet, stick with PyMongo 2.5 and Motor 0.1.

Jorge Puente Sarrín

unread,
May 18, 2013, 2:56:12 AM5/18/13
to python-...@googlegroups.com
Ok.

Have you thought about creating a branch or a tag for Motor 0.1 from GitHub?

Now, for historical purposes, please upload the source code of version 0.4 from Toro to PyPI. I have needed to install this version for a app that uses Tornado 2.4.1.

A. Jesse Jiryu Davis

unread,
May 18, 2013, 11:21:52 AM5/18/13
to python-...@googlegroups.com
Toro 0.4 is here: https://pypi.python.org/pypi/toro/0.4

pip install toro==0.4

That's a good point about Motor, I've tagged 0.1 here: https://github.com/mongodb/motor/tree/0.1

Jorge Puente Sarrín

unread,
May 19, 2013, 12:41:13 AM5/19/13
to python-...@googlegroups.com
Yep, It's true. Toro 0.4 is there, but its source code no.

kubuntu@puentesarrin:~$ pip install toro==0.4
Downloading/unpacking toro==0.4
  Could not find a version that satisfies the requirement toro==0.4 (from versions: )
No distributions matching the version for toro==0.4
Storing complete log in /home/puentesarrin/.pip/pip.log

A. Jesse Jiryu Davis

unread,
May 20, 2013, 5:40:00 PM5/20/13
to python-...@googlegroups.com
Oh, oops. I must've messed up when I pushed that version. It's uploaded now:

https://pypi.python.org/pypi/toro/0.4/

Thanks Jorge.
>>>>>> PyMongo version is current then. *But* it won't work with previous

A. Jesse Jiryu Davis

unread,
Jun 24, 2013, 12:05:11 PM6/24/13
to python-...@googlegroups.com
This incompatibility between Motor 0.1 and PyMongo > 2.5 has caused more confusion than I anticipated. (Jorge's helped a lot by correcting confused users here and on the MongoDB-users mailing list.) So I released Motor 0.1.1 today which simply pins its dependency to PyMongo 2.5.0:

>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Jorge Puente Sarrín.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Tornado Web Server" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>
>>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Tornado Web Server" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Jorge Puente Sarrín.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups
>>> "Tornado Web Server" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Tornado Web Server" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Jorge Puente Sarrín.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Tornado Web Server" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Jorge Puente Sarrín

unread,
Jun 26, 2013, 4:19:49 PM6/26/13
to python-...@googlegroups.com
Hi Jesse,

Please, would be possible to create a tag in Motor for 0.1.1?

Best regards.


To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jorge Puente Sarrín.

A. Jesse Jiryu Davis

unread,
Jun 26, 2013, 6:00:24 PM6/26/13
to python-...@googlegroups.com
Yes, thanks for the reminder. =)

aliane abdelouahab

unread,
Jun 28, 2013, 7:59:13 PM6/28/13
to python-...@googlegroups.com
it seems that the latest motor brings the latest pymongo too,
it will Searching for pymongo>=2.5.1 best match 2.5.2
??



--
Jorge Puente Sarrín.

A. Jesse Jiryu Davis

unread,
Jun 28, 2013, 8:21:35 PM6/28/13
to python-...@googlegroups.com
No, that commit just updated Motor's dependency to Tornado 3.1, since I need some test-framework features that are new in 3.1. Motor's PyMongo dependency is like this:

Motor 0.1.1 depends on PyMongo 2.5.0. Use this for now.

Motor's GitHub source depends on PyMongo >= 2.5.1 right now. Will probably depend on PyMongo 2.6 by the time it's released.

Don't use what's in GitHub right now. Please install a stable version of Motor.

aliane abdelouahab

unread,
Jun 29, 2013, 9:50:26 AM6/29/13
to python-...@googlegroups.com
ah! than you, because i always download the github version since it contains the doc files too.

aliane abdelouahab

unread,
Jun 29, 2013, 9:50:53 AM6/29/13
to python-...@googlegroups.com
*Thank you ;)
Reply all
Reply to author
Forward
0 new messages