[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trouble setting up hplip and cups - printer ppd fails
From: |
ng0 |
Subject: |
Re: Trouble setting up hplip and cups - printer ppd fails |
Date: |
Thu, 29 Dec 2016 22:38:29 +0000 |
Ludovic Courtès <address@hidden> writes:
> Hello!
>
> Danny Milosavljevic <address@hidden> skribis:
>
>> On Sat, 24 Dec 2016 14:08:44 +0000
>> ng0 <address@hidden> wrote:
>>
>>> > Traceback (most recent call last):
>>> > File
>>> > "/gnu/store/95vp3r6n9z7s85achc7a0b8aay1k73qq-hplip-3.16.11/share/hplip/setup.py",
>>> > line 560, in <module>
>>> > desc = nickname_pat.search(nickname).group(1)
>>> > TypeError: cannot use a string pattern on a bytes-like object
>>
>> The reason that fails is because gzip.GzipFile always provides reads in
>> binary mode. However, ppd files are not binary and nickname_pat is not
>> binary either. So not sure what they were thinking...
>
> Could it be that Python 3 support in hplip is incomplete? (ISTR that
> Python 3 treats Unicode sequences differently compared to Python 2.)
>
> The hplip recipe has this comment:
>
> ;; Python3 support is available starting from address@hidden
>
> Ludo’.
It works in Gentoo with python3, so maybe their one patch on this
is not just cosmetic.
--
♥Ⓐ ng0
PGP keys and more: https://n0is.noblogs.org/ http://ng0.chaosnet.org