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
TypeError Traceback (most recent call last)
in
----> 1 main()
in main()
171 ircmsg = ircsock.recv(2048)
172 # remove any line breaks
--> 173 ircmsg = ircmsg.strip('\n\r')
174 # print received message to stdout (mostly for debugging).
175 print(ircmsg)
TypeError: a bytes-like object is required, not 'str'
The text was updated successfully, but these errors were encountered:
This is likely because the code repository here uses Python2, however you'll need to utilize Python3 for this. If you take a look at the related tutorial below, there is a section titled "Channel Join" which should sum up the issue for you and provide a fix.
TypeError Traceback (most recent call last)
in
----> 1 main()
in main()
171 ircmsg = ircsock.recv(2048)
172 # remove any line breaks
--> 173 ircmsg = ircmsg.strip('\n\r')
174 # print received message to stdout (mostly for debugging).
175 print(ircmsg)
TypeError: a bytes-like object is required, not 'str'
The text was updated successfully, but these errors were encountered: