'hp-setup -i' crashes with traceback if user want to supply path to PPD
Bug #1814272 reported by
zdohnal
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
one user of Fedora found out the bug in hp-setup - when user tries to add path to PPD file (a printer is discovered, the script finds the ppd, but user wants to use different), the script fails with traceback:
Traceback (most recent call last):
File "/usr/bin/
desc = nickname_
TypeError: cannot use a string pattern on a bytes-like object
It is caused by incompatibility of types - 'nickname' is byte object and 'nickname_pat' is string object, so the fix is to decode 'nickname' to string object. I attached the patch.
Would you mind adding the patch to the project?
Have a nice day,
Zdenek
To post a comment you must log in.
This bug affects me as well. It's preventing me from installing my printer. It is frustrating to see that this bug, and a proposed fix, have been around for over a year with no fix.