pklaus / brother_ql

Python package for the raster language protocol of the Brother QL series label printers (QL-500, QL-550, QL-560, QL-570, QL-700, QL-710W, QL-720NW, QL-800, QL-810W, QL-820NWB, QL-1050, QL-1060N and more).
GNU General Public License v3.0
540 stars 151 forks source link

Brother_QL not printing with python script #154

Open futonkris opened 2 months ago

futonkris commented 2 months ago

import subprocess

cmd = [ "brother_ql", "-m", "QL-820NWB", "-p", "usb://0x04f9:0x209d_Љ", "-b", "pyusb", "print", "-l", "62", "background.png" ]

subprocess.run(cmd)

can this code and it returned CompletedProcess(args=['brother_ql', '-m', 'QL-820NWB', '-p', 'usb://0x04f9:0x209d_Љ', '-b', 'pyusb', 'print', '-l', '62', 'background.png'], returncode=1)

but nothing came out of the printer, anyone with any know how?

FriedrichFroebel commented 2 months ago

You should probably run this command in standalone mode or at least have a look at stdout and stderr and report it here - otherwise it is hard to say anything about this.