Ludovic Courtès <[email protected]> writes:

> Hello!
>
> Danny Milosavljevic <[email protected]> skribis:
>
>> On Sat, 24 Dec 2016 14:08:44 +0000
>> ng0 <[email protected]> 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 [email protected].
>
> 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

Reply via email to