-
Notifications
You must be signed in to change notification settings - Fork 73
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
TypeError: slice indices must be integers or None or have an __index__ method #9
Comments
I have come across the same issue. Do you find how to solve it? Thanks. |
Thanks but I still get the same error, which sentence and which file exactly should we correct? The error shown here is still "string indices must be integers" |
File "c:\users\caocao\anaconda3\lib\site-packages\pypokergui\server\message_manager.py", line 82, in broadcast_update_game
message = _gen_game_update_message(handler, update)
File "c:\users\caocao\anaconda3\lib\site-packages\pypokergui\server\message_manager.py", line 114, in _gen_game_update_message
table_html_str = handler.render_string("round_state.html", round_state=round_state)
File "c:\users\caocao\anaconda3\lib\site-packages\tornado\web.py", line 826, in render_string
return t.generate(**namespace)
File "c:\users\caocao\anaconda3\lib\site-packages\tornado\template.py", line 348, in generate
return execute()
File "round_state_html.generated.py", line 53, in _tt_execute
for idx, player in zip(range(len(round_state['seats']))[:len(round_state['seats'])/2], round_state['seats']): # round_state.html:22
TypeError: slice indices must be integers or None or have an index method
The text was updated successfully, but these errors were encountered: