Comments (10)
Which matplotlib packages are required to be installed?
A similar error occurs with:
brother_ql_print test.bin /dev/usb/lp0
/usr/local/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
resulting in infintely red blinking light on QL-570 and no printing.
Trying other way to print also fails:
cat test.bin> /dev/usb/lp0
cat: write error: Input/output error
Printing via USB address also fails:
brother_ql_print test.bin usb://0x04f9:0x2028
Traceback (most recent call last):
File "/usr/local/bin/brother_ql_print", line 9, in
load_entry_point('brother-ql==0.6.dev0', 'console_scripts', 'brother_ql_print')()
File "/usr/local/lib/python2.7/dist-packages/brother_ql/brother_ql_print.py", line 85, in main
result = interpret_response(data)
File "/usr/local/lib/python2.7/dist-packages/brother_ql/reader.py", line 150, in interpret_response
assert len(data) >= 32
AssertionError
from brother_ql.
The error that happens from the initial issue description is rather a Python2 compat problem. The package was created for Python3. I didn't test it on Python2! The matplotlib warning is not a problem here, just a "warning". Your follow-up comment is about a different problem. Usually the printer's status word is 32 bytes long. What printer are you trying to use? Unfortunately I have to catch a flight and have to leave you with the issues for the next 14 days. Sorry.
from brother_ql.
Ah, so switching over to Python 3 (which I prefer) would sove this? I need it working Thursday next week. π¨ any help would be appreciated.
So the installation should be pip3 instead of pip?!
from brother_ql.
With pip3 the analyse still gives warnings but provides proper output
...
Page saved as page0001.png
Perhaps hide or prevent those warnings.
from brother_ql.
Printing as root now is:
a) cat test.bin > /dev/usb/lp0
results in no print and indefenite red blinking light until power cycle.
b) brother_ql_print test.bin /dev/usb/lp0
results in no print and indefenite red blinking light until power cycle and error:
ERROR:brother_ql.reader:Error: Transmission / Communication error
ERROR:brother_ql.brother_ql_print:Errors occured: ['Transmission / Communication error']
Traceback (most recent call last):
File "/usr/local/bin/brother_ql_print", line 9, in <module>
load_entry_point('brother-ql==0.6.dev0', 'console_scripts', 'brother_ql_print')()
File "/usr/local/lib/python3.5/dist-packages/brother_ql/brother_ql_print.py", line 80, in main
data = printer.read()
File "/usr/local/lib/python3.5/dist-packages/brother_ql/backends/generic.py", line 36, in read
ret_bytes = self._read(length)
File "/usr/local/lib/python3.5/dist-packages/brother_ql/backends/linux_kernel.py", line 68, in _read
data += os.read(self.read_dev, length)
OSError: [Errno 19] No such device
c) brother_ql_print test.bin usb://0x04f9:0x2028
results in no print and indefenite red blinking light until power cycle and error:
ERROR:brother_ql.reader:Error: Transmission / Communication error
ERROR:brother_ql.brother_ql_print:Errors occured: ['Transmission / Communication error']
WARNING:brother_ql.brother_ql_print:Printing potentially not successful?
Info:
lsusb |grep Brother
Bus 003 Device 017: ID 04f9:2028 Brother Industries, Ltd
from brother_ql.
from brother_ql.
QL-570 with 62mm endless media. I can send the output of the debugger.
from brother_ql.
This works:
cat page0001.png | lpr -P Brother_QL-570
inkscape --without-gui --export-pdf=/dev/stdout drawing.svg | lpr -P Brother_QL-570
from brother_ql.
PRiority is less now. However, when you have fix for above errors, I am willing to retest it all.
from brother_ql.
Hi @PanderMusubi, I think the problem with the QL-570 should be fixed now. Please refer to #7. I'll close this issue here. If you still experience trouble with the QL-570, could you please consider reopening the other issue (because it's specific to that model) or opening a new one?
Thanks.
Also note that the restriction of brother_ql_create
to 62mm endless labels was removed. Now, the tool accepts a --label-size
parameter to work with (hopefully) any label offered by Brother.
from brother_ql.
Related Issues (20)
- pre-cut when printing label
- Installation on Ubuntu 18.04 failed
- ItΒ΄s possible to print ZPL II codes? HOT 1
- [QL-700] Is it Possible to pass a TXT file path and print ? Could you please provide some example code on how to do this with python ?
- Multiple print jobs to brother QL-800
- Documentation improvements for linux
- Improve error message if label omitted
- usb.core.NoBackendError: No backend available
- Currently the printer can be specified either via an appropriate string or via an os.open() handle. HOT 2
- Raster image size error HOT 2
- Using 54x29 labels DK-3235 not present in label list HOT 3
- OSError: [Errno 22] Invalid argument When Sending Instructions HOT 1
- Installation fails on Linux (OpenSuse Leap 15.4 - current release) HOT 1
- Support for automated testing
- Project status HOT 6
- not working on a pi? HOT 8
- "brother_ql -b pyusb discover" doesn't find the printer HOT 3
- incompatible 'bytes' types in pyusb.py and reader.py (python 2.x exception after printing)
- Print Barcode HOT 2
- AttributeError exception due to backward incompatible change in Pillow 10.0.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brother_ql.