python-epson-printer icon indicating copy to clipboard operation
python-epson-printer copied to clipboard

Image printing error in Python 3, use bytearray()

Open adamhrv opened this issue 8 years ago • 1 comments

Thanks for building this. Printing in python2.7 works great. But in python3 the image printing did not output an image.

It seems the chr() function incorrectly encodes integers to bytes in python3.

Replacing the write_bytes function with the following works in python3:

def write_bytes(self, byte_array):
        msg = bytearray(byte_array)
        self.write(msg)

adamhrv avatar Sep 26 '17 12:09 adamhrv

i cannot print and it actually send me a error with all the paper and ink lights on and blinking what can i do ??HELP!!!

dsarahiiii avatar Jun 05 '24 01:06 dsarahiiii