My goal is to have a Brother QL-800 label printer connected to a Raspberry Pi to automatically print labels through a script.
I have installed https://github.com/pklaus/brother_ql.
It is connected with USB on a raspberry pi 3 with ubuntu bionic server installed. I'm using python 3.0.
When I run it the power led is flashing red and the following error is outputted in the terminal:
INFO:brother_ql.backends.helpers:Sending instructions to the printer. Total: 50650 bytes.
ERROR:brother_ql.reader:Error: Replace media error
ERROR:brother_ql.backends.helpers:Errors occured: ['Replace media error']
WARNING:brother_ql.backends.helpers:'printing completed' status not received.
WARNING:brother_ql.backends.helpers:'waiting to receive' status not received.
WARNING:brother_ql.backends.helpers:Printing potentially not successful?
I have tried it on Windows with P-touch editor and it prints fine.
I have tried with several different images and both using /dev/usb/lp0 and the id of the device:
brother_ql --printer usb://04f9:209b --model QL-800 print -l 62x29 --red test.png
brother_ql --printer /dev/usb/lp0 --model QL-800 print -l 62x29 --red test.png
I have also tried to export the binary:
brother_ql_create --model QL-800 --label-size 62x29 --red test.png > test.bin
to export the binary file and then
brother_ql_print test.bin /dev/usb/lp0
I have searched for the error message, "Replace media error" but no one else seems to have the same issue.
Any ideas?
EDIT: It works using the --no-cut option so I double-checked the original image size but it is correct, 696x271. I still would like it to be cut.