Skip to content

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

Description

@davidgoncalvesz

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions