Giter Club home page Giter Club logo

Comments (10)

PanderMusubi avatar PanderMusubi commented on May 13, 2024

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.

pklaus avatar pklaus commented on May 13, 2024

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.

PanderMusubi avatar PanderMusubi commented on May 13, 2024

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.

PanderMusubi avatar PanderMusubi commented on May 13, 2024

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.

PanderMusubi avatar PanderMusubi commented on May 13, 2024

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.

pklaus avatar pklaus commented on May 13, 2024

from brother_ql.

PanderMusubi avatar PanderMusubi commented on May 13, 2024

QL-570 with 62mm endless media. I can send the output of the debugger.

from brother_ql.

PanderMusubi avatar PanderMusubi commented on May 13, 2024

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.

PanderMusubi avatar PanderMusubi commented on May 13, 2024

PRiority is less now. However, when you have fix for above errors, I am willing to retest it all.

from brother_ql.

pklaus avatar pklaus commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.