You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "./random_csa_tcp_match", line 23, in <module>
ct.login(sys.argv[2], sys.argv[3])
File "......./python-shogi/shogi/CSA.py", line 377, in login
line = self.command('LOGIN {0} {1}'.format(username, password))
File "......./python-shogi/shogi/CSA.py", line 335, in command
self.write(command + '\n')
File "......./python-shogi/shogi/CSA.py", line 340, in write
self.socket.sendall(buf)
TypeError: a bytes-like object is required, not 'str'
python3 で random_csa_tcp_match を動かそうとすると以下のエラーが出ます。
bufにencode(), decode()をつければpython3でも動きますがpython2と互換のコードになっているかわからずプルリクエストが出せません。
The text was updated successfully, but these errors were encountered: