Skip to content

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 187: invalid start byte #18

@philipp-classen

Description

@philipp-classen

I'm using version 1.5.7 of system-config-printer on Arch Linux (foomatic-db is installed):

  • Select "Add -> LPD/LPR Host or Printer"
  • Enter some IP as "Host"
  • Forward

It hangs forever and prints the following errors to the console:

Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 899, in on_btnNPForward_clicked
    self.nextNPTab()
  File "/usr/share/system-config-printer/newprinter.py", line 1095, in nextNPTab
    self.getNetworkPrinterMakeModel ()
  File "/usr/share/system-config-printer/newprinter.py", line 1960, in getNetworkPrinterMakeModel
    line = stdout.decode ().strip ()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 187: invalid start byte

/var/log/cups/error_log contains no errors (or other messages).


Side-note: When I try the IP of another printer, I see a "Searching for driver" popup. It fails differently, though. The Traceback from above is not printed. Instead the dialog fails with this ambiguous message:

"CUPS server error: There was an error during the CUPS operation: 'Success'."

There is an error in /var/log/cups/error_log:
[cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!

However, I think it is unrelated to the problem. I only posted it in case it helps. Otherwise, you can safely ignore it.

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