Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pymongo.errors.ServerSelectionTimeoutError: server.com:27017: timed out #10

Open
longthanhta opened this issue Aug 29, 2019 · 0 comments

Comments

@longthanhta
Copy link

longthanhta commented Aug 29, 2019

Hi @connorcoley , I got this error when trying to run the trained model in data/preprocess_candidate_edits_compact.py

Using TensorFlow backend.
Traceback (most recent call last):
  File "scripts/lowe_interactive_predict.py", line 208, in <module>
    Transformer.load(templates, mincount = int(args.mincount), get_retro = False, get_synth = True, lowe = True)
  File "/home/rong/Desktop/retro/Retrosim/ochem_predict_nn/main/transformer.py", line 33, in load
    if mincount and 'count' in collection.find_one(): 
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/collection.py", line 1273, in find_one
    for result in cursor.limit(-1):
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/cursor.py", line 1156, in next
    if len(self.__data) or self._refresh():
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/cursor.py", line 1050, in _refresh
    self.__session = self.__collection.database.client._ensure_session()
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1807, in _ensure_session
    return self.__start_session(True, causal_consistency=False)
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1760, in __start_session
    server_session = self._get_server_session()
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1793, in _get_server_session
    return self._topology.get_server_session()
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/topology.py", line 477, in get_server_session
    None)
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/topology.py", line 205, in _select_servers_loop
    self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: server.com:27017: timed out

Please help me solve this problem, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant