jsam
2/15/2017 - 2:02 PM

gistfile1.txt

(mbot3) ➜  Poker git:(master) ✗ python3 main.py
This is a testversion and error messages will appear here. The user interface has opened in a separate window.
Traceback (most recent call last):
  File "/Users/sam/CritFactory/Poker/tools/mongo_manager.py", line 138, in read_strategy
    self.selected_strategy = cursor.next()
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/cursor.py", line 1114, in next
    if len(self.__data) or self._refresh():
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/cursor.py", line 1036, in _refresh
    self.__collation))
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/cursor.py", line 873, in __send_message
    **kwargs)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/mongo_client.py", line 905, in _send_message_with_response
    exhaust)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/mongo_client.py", line 916, in _reset_on_error
    return func(*args, **kwargs)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/server.py", line 99, in send_message_with_response
    with self.get_socket(all_credentials, exhaust) as sock_info:
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 82, in __enter__
    return next(self.gen)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/server.py", line 168, in get_socket
    with self.pool.get_socket(all_credentials, checkout) as sock_info:
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 82, in __enter__
    return next(self.gen)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/pool.py", line 792, in get_socket
    sock_info.check_auth(all_credentials)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/pool.py", line 512, in check_auth
    auth.authenticate(credentials, self)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/auth.py", line 470, in authenticate
    auth_func(credentials, sock_info)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/auth.py", line 450, in _authenticate_default
    return _authenticate_scram_sha1(credentials, sock_info)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/auth.py", line 201, in _authenticate_scram_sha1
    res = sock_info.command(source, cmd)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/pool.py", line 419, in command
    collation=collation)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/network.py", line 116, in command
    parse_write_concern_error=parse_write_concern_error)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/helpers.py", line 210, in _check_command_response
    raise OperationFailure(msg % errmsg, code, response)
pymongo.errors.OperationFailure: Authentication failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 270, in <module>
    gui_signals = UIActionAndSignals(ui)
  File "/Users/sam/CritFactory/Poker/gui/gui_qt_logic.py", line 76, in __init__
    self.p.read_strategy()
  File "/Users/sam/CritFactory/Poker/tools/mongo_manager.py", line 141, in read_strategy
    self.selected_strategy = cursor.next()
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/cursor.py", line 1114, in next
    if len(self.__data) or self._refresh():
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/cursor.py", line 1036, in _refresh
    self.__collation))
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/cursor.py", line 873, in __send_message
    **kwargs)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/mongo_client.py", line 905, in _send_message_with_response
    exhaust)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/mongo_client.py", line 916, in _reset_on_error
    return func(*args, **kwargs)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/server.py", line 99, in send_message_with_response
    with self.get_socket(all_credentials, exhaust) as sock_info:
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 82, in __enter__
    return next(self.gen)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/server.py", line 168, in get_socket
    with self.pool.get_socket(all_credentials, checkout) as sock_info:
  File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 82, in __enter__
    return next(self.gen)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/pool.py", line 792, in get_socket
    sock_info.check_auth(all_credentials)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/pool.py", line 512, in check_auth
    auth.authenticate(credentials, self)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/auth.py", line 470, in authenticate
    auth_func(credentials, sock_info)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/auth.py", line 450, in _authenticate_default
    return _authenticate_scram_sha1(credentials, sock_info)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/auth.py", line 201, in _authenticate_scram_sha1
    res = sock_info.command(source, cmd)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/pool.py", line 419, in command
    collation=collation)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/network.py", line 116, in command
    parse_write_concern_error=parse_write_concern_error)
  File "/Users/sam/virtualenvs/mbot3/lib/python3.6/site-packages/pymongo/helpers.py", line 210, in _check_command_response
    raise OperationFailure(msg % errmsg, code, response)
pymongo.errors.OperationFailure: Authentication failed.