brother_ql icon indicating copy to clipboard operation
brother_ql copied to clipboard

NotImplementedError

Open gstax opened this issue 4 years ago • 3 comments

Hi,

Just discovered you package and wanted to give it a try, espcially the --red option since I have some DK-22251 paper (and just discovered after 3 days, that the linux brother official driver doesn't support printing in red). I have a QL-820NWB and working from a Debian stable box.

To install, I ran the following command:

pip install --upgrade https://github.com/pklaus/brother_ql/archive/master.zip

Then I exported ~/.local/bin to my PATH. I also export BROTHER_QL_MODEL=QL-820NWB export BROTHER_QL_PRINTER=tcp://192.168.1.139

The printer is being reached via wifi at that address (ping works).

Then I issued:

brother_ql -b network --debug discover Traceback (most recent call last): File "/home/me/.local/bin/brother_ql", line 10, in <module> sys.exit(cli()) File "/home/me/.local/lib/python2.7/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/me/.local/lib/python2.7/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/me/.local/lib/python2.7/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/me/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/me/.local/lib/python2.7/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/home/me/.local/lib/python2.7/site-packages/click/decorators.py", line 21, in new_func return f(get_current_context(), *args, **kwargs) File "/home/me/.local/lib/python2.7/site-packages/brother_ql/cli.py", line 47, in discover discover_and_list_available_devices(backend) File "/home/me/.local/lib/python2.7/site-packages/brother_ql/cli.py", line 51, in discover_and_list_available_devices available_devices = discover(backend_identifier=backend) File "/home/me/.local/lib/python2.7/site-packages/brother_ql/backends/helpers.py", line 23, in discover available_devices = list_available_devices() File "/home/me/.local/lib/python2.7/site-packages/brother_ql/backends/network.py", line 25, in list_available_devices raise NotImplementedError() NotImplementedError

Since I don't have any Python skills, I'm lost here.

Help would be very much appreciated.

Thanks

gstax avatar Apr 13 '20 15:04 gstax

👍

niftylettuce avatar Apr 29 '20 00:04 niftylettuce

Looking at the file in question (brother_ql/backends/network.py) it looks like network discovery hasn't been implemented, but you shouldn't need ti since you know the printer's address already. Have you tried sending something directly to the printer? I have an 810W and it works fine with the red/black "ink".

mattj23 avatar Oct 15 '20 01:10 mattj23

Hi,

Thanks for you reply.

In fact I didn't want to loose more time so I bought black ink...

Good to know that it works with a 810W.

I'll give it a try once I have some free time.

gstax avatar Oct 15 '20 09:10 gstax