python-twitch-stream icon indicating copy to clipboard operation
python-twitch-stream copied to clipboard

0auth

Open spiceysec opened this issue 3 years ago • 2 comments

Traceback (most recent call last): File "/root/Desktop/python-twitch-stream-master/examples/color.py", line 34, in with TwitchBufferedOutputStream( File "/usr/local/lib/python3.9/dist-packages/twitchstream/chat.py", line 44, in enter self.connect() File "/usr/local/lib/python3.9/dist-packages/twitchstream/chat.py", line 132, in connect s.send('PASS %s\r\n' % self.oauth) TypeError: a bytes-like object is required, not 'str'

i am lost. can anyone help me set this up?

spiceysec avatar Aug 15 '21 11:08 spiceysec

This library was written for python 2.7.

In python 3, I imagine some strings need to be converted to bytes in order to work well.

317070 avatar Aug 16 '21 16:08 317070

hi, i have fixed this problem for myself maybe not the best way to do, diff file is attached for review

patch.txt

prophet89 avatar Apr 03 '22 17:04 prophet89