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

Error detected while processing fucntion lichess play find game #2

Closed
kalyan860 opened this issue Sep 18, 2022 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@kalyan860
Copy link

E132: function call depth is higher than max func depth
Error detected while processing fucntion lichess play find game

It prints "Searching for new game" and then I get this error

@luk400 luk400 added the bug Something isn't working label Sep 18, 2022
@luk400
Copy link
Owner

luk400 commented Sep 18, 2022

Thank you for reporting this problem! The max recursion error should not occur anymore now. Please reinstall the plugin and try again. If it still fails to start a game, it should now print an error message instead of endlessly retrying. This error message contains instructions on how to enable logging and where the resulting log file will be created. In case you still can not create a game it would be great if you could post this log file here so I can see where the issue lies!

@kalyan860
Copy link
Author

Hey I could not get it working. Here is the log file.

[INFO] 23:22:32.870804: starting game loop
[INFO] 23:22:33.194903: starting server on port: 48031
[INFO] 23:22:33.195115: function start_server: starting lichess session
[INFO] 23:22:33.386250: function s:query_server(): query - <set_start_new_game>True/10-0-True-standard-random-None
[ERROR] 23:22:33.390037: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:33.491517: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:33.593016: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[CRASH] 23:22:33.651329: function start_server: could not get account! possibly invalid api token (JSONDecoder.init() got an unexpected keyword argument 'encoding')
[CRASH] 23:22:33.651775: function start_server: JSONDecoder.init() got an unexpected keyword argument 'encoding'
[ERROR] 23:22:33.652478: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:33.694633: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:33.753831: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:33.796132: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:33.855317: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:33.897705: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:33.956892: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:33.999013: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:34.058384: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:34.100503: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:34.159923: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:34.201995: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:34.261439: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:34.303314: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:34.362951: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:34.404788: function s:query_server(): port 48031 is not in use anymore
[INFO] 23:22:34.413818: function s:query_server(): query - get_all_info
[ERROR] 23:22:34.414688: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:34.464213: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:34.516041: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:34.565709: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:34.617572: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:34.718926: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:34.820437: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:34.921955: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:35.023305: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:35.124504: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:35.225994: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:35.327480: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:35.428672: function s:query_server(): port 48031 is not in use anymore
[WARNING] 23:22:35.433292: function lichess#play#find_game had to be restarted
[INFO] 23:22:36.053740: starting game loop
[INFO] 23:22:36.356742: starting server on port: 59767
[INFO] 23:22:36.356960: function start_server: starting lichess session
[INFO] 23:22:36.568623: function s:query_server(): query - <set_start_new_game>True/10-0-True-standard-random-None
[ERROR] 23:22:36.569506: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:36.670929: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:36.772422: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[CRASH] 23:22:36.810574: function start_server: could not get account! possibly invalid api token (JSONDecoder.init() got an unexpected keyword argument 'encoding')
[CRASH] 23:22:36.811026: function start_server: JSONDecoder.init() got an unexpected keyword argument 'encoding'
[ERROR] 23:22:36.811730: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:36.873915: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:36.913164: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:36.975395: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:37.014639: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:37.076933: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:37.116164: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:37.178423: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:37.217212: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:37.279964: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:37.318559: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:37.381447: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:37.420142: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:37.482728: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:37.521670: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:37.584267: function s:query_server(): port 59767 is not in use anymore
[INFO] 23:22:37.591999: function s:query_server(): query - get_all_info
[ERROR] 23:22:37.592878: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:37.623267: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:37.694293: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:37.724749: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:37.795783: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:37.897284: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:37.998786: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:38.100332: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:38.201835: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:38.303411: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:38.404934: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:38.506475: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:38.607674: function s:query_server(): port 59767 is not in use anymore
[WARNING] 23:22:38.612644: function lichess#play#find_game had to be restarted
[INFO] 23:22:39.230294: starting game loop
[INFO] 23:22:39.546822: starting server on port: 52335
[INFO] 23:22:39.547045: function start_server: starting lichess session
[INFO] 23:22:39.744277: function s:query_server(): query - <set_start_new_game>True/10-0-True-standard-random-None
[ERROR] 23:22:39.745183: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:39.846600: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:39.948133: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[CRASH] 23:22:40.015983: function start_server: could not get account! possibly invalid api token (JSONDecoder.init() got an unexpected keyword argument 'encoding')
[CRASH] 23:22:40.016499: function start_server: JSONDecoder.init() got an unexpected keyword argument 'encoding'
[ERROR] 23:22:40.017205: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:40.049623: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:40.118533: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:40.151178: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:40.220107: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:40.252662: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:40.321612: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:40.354155: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:40.423148: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:40.455414: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:40.524689: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:40.556960: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:40.626183: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:40.658449: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:40.727631: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:40.759997: function s:query_server(): port 52335 is not in use anymore
[INFO] 23:22:40.767289: function s:query_server(): query - get_all_info
[ERROR] 23:22:40.768179: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:40.828923: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:40.869542: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:40.930482: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:40.971199: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:41.072543: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:41.174112: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:41.275373: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:41.376643: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:41.477916: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:41.579278: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:41.680506: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:41.781798: function s:query_server(): port 52335 is not in use anymore
[WARNING] 23:22:41.788524: function lichess#play#find_game had to be restarted
[INFO] 23:22:42.414375: starting game loop
[INFO] 23:22:42.740087: starting server on port: 58091
[INFO] 23:22:42.740305: function start_server: starting lichess session
[INFO] 23:22:42.927407: function s:query_server(): query - <set_start_new_game>True/10-0-True-standard-random-None
[ERROR] 23:22:42.928303: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:43.029673: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:43.130976: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[CRASH] 23:22:43.201021: function start_server: could not get account! possibly invalid api token (JSONDecoder.init() got an unexpected keyword argument 'encoding')
[CRASH] 23:22:43.201460: function start_server: JSONDecoder.init() got an unexpected keyword argument 'encoding'
[ERROR] 23:22:43.202174: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:43.232479: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:43.303600: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:43.334075: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:43.405093: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:43.435337: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:43.506671: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:43.536883: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:43.608164: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:43.638394: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:43.709655: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:43.739677: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:43.810990: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:43.840996: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:43.912250: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:43.942495: function s:query_server(): port 58091 is not in use anymore
[INFO] 23:22:43.948333: function s:query_server(): query - get_all_info
[ERROR] 23:22:43.949176: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:44.013587: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:44.050313: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:44.115083: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:44.151823: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:44.253191: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:44.354480: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:44.455972: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:44.557472: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:44.658984: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:44.760488: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:44.861983: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:44.963498: function s:query_server(): port 58091 is not in use anymore
[WARNING] 23:22:44.969838: function lichess#play#find_game had to be restarted
[INFO] 23:22:45.579641: starting game loop
[INFO] 23:22:45.877891: starting server on port: 44369
[INFO] 23:22:45.878106: function start_server: starting lichess session
[INFO] 23:22:46.094176: function s:query_server(): query - <set_start_new_game>True/10-0-True-standard-random-None
[ERROR] 23:22:46.095058: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:46.196476: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:46.297987: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[CRASH] 23:22:46.335456: function start_server: could not get account! possibly invalid api token (JSONDecoder.init() got an unexpected keyword argument 'encoding')
[CRASH] 23:22:46.335891: function start_server: JSONDecoder.init() got an unexpected keyword argument 'encoding'
[ERROR] 23:22:46.336679: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:46.399296: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:46.438018: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:46.500778: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:46.539501: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:46.602269: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:46.641093: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:46.703756: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:46.742122: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:46.805015: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:46.843368: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:46.906285: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:46.944738: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:47.007841: connection refused (query: <set_start_new_game>True/10-0-True-standard-random-None): [Errno 111] Connection refused
[ERROR] 23:22:47.046256: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:47.109037: function s:query_server(): port 44369 is not in use anymore
[INFO] 23:22:47.116483: function s:query_server(): query - get_all_info
[ERROR] 23:22:47.117379: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:47.147489: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:47.218785: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:47.248870: connection refused (query: <set_last_err>JSONDecoder.init() got an unexpected keyword argument 'encoding'): [Errno 111] Connection refused
[ERROR] 23:22:47.320006: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:47.421302: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:47.522800: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:47.624370: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:47.725876: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:47.827470: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:47.928580: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:48.030150: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:48.131379: function s:query_server(): port 44369 is not in use anymore
[WARNING] 23:22:48.138149: function lichess#play#find_game had to be restarted
[INFO] 23:22:48.394507: function s:query_server(): query - get_all_info
[ERROR] 23:22:48.395374: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:48.496786: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:48.598319: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:48.699601: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:48.801000: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:48.902504: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:49.004067: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:49.105327: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:49.206885: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:49.308376: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:49.409646: function s:query_server(): port 44369 is not in use anymore
[WARNING] 23:22:49.416313: function lichess#play#find_game had to be restarted
[INFO] 23:22:49.673149: function s:query_server(): query - get_all_info
[ERROR] 23:22:49.674042: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:49.775432: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:49.876771: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:49.978280: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:50.079458: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:50.180795: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:50.282308: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:50.383808: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:50.485296: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:50.586499: connection refused (query: get_all_info): [Errno 111] Connection refused
[ERROR] 23:22:50.688006: function s:query_server(): port 44369 is not in use anymore

@luk400
Copy link
Owner

luk400 commented Sep 18, 2022

Thank you, this is very helpful. It seems the problem is this: JSONDecoder.init() got an unexpected keyword argument 'encoding', which is quite confusing, since nowhere in my code do I use the keyword argument "encoding", so it must be in one of the dependencies.
Which python version are you using?
I've tested with python version 3.9.12, so maybe you could try upgrading in case you're using an older python version

@luk400
Copy link
Owner

luk400 commented Sep 18, 2022

Alright so it seems like this is the root of the problem which is a dependency issue that I can't do anything about unfortunately.

So your options are:

  • uninstall simplejson (pip uninstall simplejson)
  • OR better make a new virtual environment (e.g. if you're using anaconda: conda create -n vim_lichess) in which simplejson isn't installed, then install berserk in it, and specify the absolute path to the python executable of that environment in your vim config using let g:python_cmd="/absolute/path/to/new/python3"

Then it should work as expected

In the future I might want to create my own fork of the berserk package to fix this, since it seems it's not maintained anymore, but until then this is the only solution I can offer.

@kalyan860
Copy link
Author

I am on Python version 3.10.6

@luk400
Copy link
Owner

luk400 commented Sep 19, 2022

Yeah the python version is not the problem, it's that you seem to have simplejson installed (I get the same error after installing simplejson). So if you run pip uninstall simplejson, everything should work as expected :)

@luk400 luk400 closed this as completed Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants