pymongo: no such cmd: update
<p>I am using TxMongo 16.1.0 (this one uses pymongo under the hood), Mongodb 2.4.14 in my program.<br>
I don't understand why I receive this pymongo.errors.OperationFailure:
(It cannot recognize <code>update</code> cmd???)    </p>

<pre><code>TxMongo: command SON([('update', u'units'), ('updates', [SON([('q', {'baseIP': u'10.12.59.119'}), ('u', {'$set': {'status': 'busy'}}), ('upsert', False), ('multi', False)])]), ('writeConcern', {})]) on namespace db_test.$cmd failed with 'no such cmd: update'
</code></pre>

<p>I used Son in python to make ordered dict, but still the error.</p>

<p>It turns out that this might be a bug of update_one() in TxMongo.
Switch to update() will be fine.  </p>

python pymongo