Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currently the printer can be specified either via an appropriate string or via an os.open() handle. #125

Open
msazanov opened this issue Apr 28, 2022 · 2 comments

Comments

@msazanov
Copy link

msazanov commented Apr 28, 2022

image
INFO:brother_ql.backends.helpers:No backend stated. Selecting the default linux_kernel backend. Traceback (most recent call last): File "/home/marat/.local/bin/brother_ql", line 33, in <module> sys.exit(load_entry_point('brother-ql==0.9.dev0', 'console_scripts', 'brother_ql')()) File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/lib/python3.10/site-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/usr/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), *args, **kwargs) File "/home/marat/.local/lib/python3.10/site-packages/brother_ql/cli.py", line 147, in print_cmd send(instructions=instructions, printer_identifier=printer, backend_identifier=backend, blocking=True) File "/home/marat/.local/lib/python3.10/site-packages/brother_ql/backends/helpers.py", line 57, in send printer = BrotherQLBackend(printer_identifier) File "/home/marat/.local/lib/python3.10/site-packages/brother_ql/backends/linux_kernel.py", line 49, in __init__ raise NotImplementedError('Currently the printer can be specified either via an appropriate string or via an os.open() handle.') NotImplementedError: Currently the printer can be specified either via an appropriate string or via an os.open() handle.
image

Python 3.10.4
pip 22.0.4 from /home/marat/.local/lib/python3.10/site-packages/pip (python 3.10)

Hello, my printer is Brother ql-800 and I can't start printing with brother_ql, please help me, what could be the problem?

@FriedrichFroebel
Copy link

You are not specifying any printer device. Depending on your setup, you should use something like brother_ql -m "QL-800" -p "file:///dev/usb/lp1" -b "linux_kernel" print to use the Linux kernel backend. The device identifier might differ on your system.

Please note that you might have to run this with sudo to avoid permission errors from udev - or add dedicated rules to be able to use the USB device without sudo privileges.

@msazanov
Copy link
Author

Thank you! Your answer solve my problem!

You are not specifying any printer device. Depending on your setup, you should use something like brother_ql -m "QL-800" -p "file:///dev/usb/lp1" -b "linux_kernel" print to use the Linux kernel backend. The device identifier might differ on your system.

Please note that you might have to run this with sudo to avoid permission errors from udev - or add dedicated rules to be able to use the USB device without sudo privileges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants