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

usb.core.USBError: [Errno 5] Input/Output Error` #630

Open
3 tasks done
davidgoncalvesz opened this issue Mar 16, 2024 · 1 comment
Open
3 tasks done

usb.core.USBError: [Errno 5] Input/Output Error` #630

davidgoncalvesz opened this issue Mar 16, 2024 · 1 comment

Comments

@davidgoncalvesz
Copy link

Bug description

I am trying to configure a printer, however, everytime I try to print, I get the following error:

usb.core.USBError: [Errno 5] Input/Output Error

My code:

from escpos import *
p = printer.Usb(0x067b,0x2305)
p.text("Hello World\n")
p.cut()

I noted that while this printer has an USB connection, is detected by the OS as a parallel port device:

image

Can that be related?

I have:

  • Checked permissions on udev
  • Tried different initialization codes
  • Restart hardware

Device info

Printer: Birch PRP-085IIIT

python-escpos version: 3.1

python version: 3.10.12

operating system: Linux (Ubuntu)

@davidgoncalvesz
Copy link
Author

dmesg's output:
image

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

1 participant