Priority: Major - P3
Affects Version/s: 0.1
Fix Version/s: 0.1.1
Environment:% uname -a
Darwin xikinbook.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
% python --version
% pip freeze
When trying to create a MotorReplicaSetClient, I get the following error:
% python motor_sample.py
Traceback (most recent call last):
File "motor_sample.py", line 10, in <module>
client = motor.MotorReplicaSetClient(",".join(servers), replicaSet="tsurumongoapi").open_sync()
File "/Users/f/.venvs/motor/lib/python2.7/site-packages/motor/_init_.py", line 967, in open_sync
File "/Users/f/.venvs/motor/lib/python2.7/site-packages/motor/_init_.py", line 804, in open_sync
for pool in self._get_pools():
File "/Users/f/.venvs/motor/lib/python2.7/site-packages/motor/_init_.py", line 1004, in _get_pools
File "/Users/f/.venvs/motor/lib/python2.7/site-packages/pymongo/collection.py", line 1418, in _call_
TypeError: 'Collection' object is not callable. If you meant to call the 'values' method on a 'Database' object it is failing because no such method exists.
I tried both formats: "mongodb://<server1>,<server2>,<server3>/" and "<server1>,<server2>,<server3>".
It works nicely on pymongo.