guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble setting up hplip and cups - printer ppd fails


From: Ludovic Courtès
Subject: Re: Trouble setting up hplip and cups - printer ppd fails
Date: Thu, 29 Dec 2016 23:12:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]