Skip to content
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

Issue Line 416 #4

Open
slemmercs opened this issue Sep 5, 2020 · 1 comment
Open

Issue Line 416 #4

slemmercs opened this issue Sep 5, 2020 · 1 comment

Comments

@slemmercs
Copy link

Hi,
this time I got a TypeError on line 416 after fixing syntax errors on lines 144 and 427. Here I have no idea where to look as I have no idea about python / python3. Would you please take a look and suggest a solution? Thanks in advance

This is the terminal output

pi@raspberrypi:~/PiDisplay $ sudo python3 monitor.py
Traceback (most recent call last):
  File "monitor.py", line 416, in <module>
    iface = subprocess.check_output("iwgetid | awk '{print $1}'", shell = True).rstrip("\r\n")
TypeError: a bytes-like object is required, not 'str'

Since I have no idea how to properly resolve this issue I simply commented out the whole line like this

#iface = subprocess.check_output("iwgetid | awk '{print $1}'", shell = True).rstr$

@pangduckwai
Copy link
Owner

pangduckwai commented Sep 7, 2020

hello, first of all sorry for the fact that i haven't touch this for quite some times now. however my python skill is entry level at best :P so i'll try to take a look and hopefully find the problem... At the moment i can only tell you that there was no such errors when i last play with this code, so is it possible that i was using an older version of python?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants