Open Yaswanth-jami opened 3 years ago
Does anyone know how to solve this issue?
Run it with python3
Run it with python3
when I run it with python3, the device is getting connected but the commands are not working.
It's showing
Command execution failed (a bytes-like object is required, not 'str')
just for more details this is what i got when testing my and my friends printers using a bash script it said something is wrong with printer.py and pret.py
When I am trying to run the code using python 2.7 It's showing the following error
File "pret.py", line 38 SyntaxError: Non-ASCII character '\xc3' in file pret.py on line 38, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details