From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 <ng0@libertad.pw> Subject: Re: Trouble setting up hplip and cups - printer ppd fails Date: Thu, 29 Dec 2016 22:38:29 +0000 Message-ID: <87vau2qs2i.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> References: <87fuldph04.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> <87d1ghpggj.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> <20161224162300.65ceeb04@scratchpost.org> <87h95me655.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: <guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([2001:4830:134:3::10]:35445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ng0@libertad.pw>) id 1cMjLM-0006gD-Sw for guix-devel@gnu.org; Thu, 29 Dec 2016 17:38:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <ng0@libertad.pw>) id 1cMjLL-0006gc-Hj for guix-devel@gnu.org; Thu, 29 Dec 2016 17:38:40 -0500 In-Reply-To: <87h95me655.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." <guix-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/guix-devel/> List-Post: <mailto:guix-devel@gnu.org> List-Help: <mailto:guix-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=subscribe> Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" <guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org> To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@gnu.org> Cc: guix-devel@gnu.org Ludovic Courtès <ludo@gnu.org> writes: > Hello! > > Danny Milosavljevic <dannym@scratchpost.org> skribis: > >> On Sat, 24 Dec 2016 14:08:44 +0000 >> ng0 <ng0@libertad.pw> 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 hplip@3.15.2. > > 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