-
Notifications
You must be signed in to change notification settings - Fork 55
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: a bytes-like object is required, not 'str' #40
Comments
Hi, |
Hi, It's the 3.9.2. |
Hi, |
I do several tried, with : But I always get the same errors : Btw, thanks for the help. 👍 |
in python3 the requests library will return unicode string try adding .decode('utf-8')
there are at least 2 open pull requests for python3 suppport for example #35 you can try running that one instead |
Hi nomwerp, I try to add the utf-8 details and… there is some improvement. I doesn't have the type-error message anymore. But now I've got a "IndexError: list index out of range" error. `if name == "main":
I'm really new in python, and development in general (except css, html and some shortcut). It's a whole new univers for me to discover. ^_^“ Anyway, thanks for your help. |
And CPC67128, thanks a lot for the help. 👍 |
Hi,
I'm trying to configure this script on a new Raspberry Pi 4.
I already made some changes (i.e. adding () to the print command) but I still get these errors :
I'm not a developper, just an enthusiast and after several hours trying to understand what is the issue, I'm near to giving up.
Did someone as a clue ? Or can help me ?
Best regards,
Laurent
The text was updated successfully, but these errors were encountered: