From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 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: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Courtès writes: > Hello! > > Danny Milosavljevic skribis: > >> On Sat, 24 Dec 2016 14:08:44 +0000 >> ng0 wrote: >> >>> > Traceback (most recent call last): >>> > File "/gnu/store/95vp3r6n9z7s85achc7a0b8aay1k73qq-hplip-3.16.11/share/hplip/setup.py", line 560, in >>> > 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