Hi Yarden,
The exception that you're seeing is raised by PyMongo when you attempt to authenticate two users against the same database. For example:
>>> import pymongo
>>> c = pymongo.MongoClient()
>>> c.admin.add_user('admin', 'pass')
>>> c.admin.authenticate('admin', 'pass')
True
>>> c.admin.add_user('other_admin', 'pass')
>>> c.admin.authenticate('other_admin', 'pass')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pymongo/database.py", line 1274, in authenticate
connect=True)
File "pymongo/mongo_client.py", line 604, in _cache_credentials
pymongo.errors.OperationFailure: Another user is already authenticated to this database. You must logout first.
So there's not enough information for me to diagnose why you're seeing this error only on 3.7.0 and not 3.6.1. Could you please provide your MongoDB version, how you are calling Database.authenticate (please redact usernames/passwords but please include the mechanism you're using), and what databases you are authenticating to?
Thank you,
Shane