From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Trouble setting up hplip and cups - printer ppd fails Date: Thu, 29 Dec 2016 23:12:54 +0100 Message-ID: <87h95me655.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMiwW-0004sy-Jj for guix-devel@gnu.org; Thu, 29 Dec 2016 17:13:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMiwT-0000iD-BH for guix-devel@gnu.org; Thu, 29 Dec 2016 17:13:00 -0500 In-Reply-To: <20161224162300.65ceeb04@scratchpost.org> (Danny Milosavljevic's message of "Sat, 24 Dec 2016 16:23:00 +0100") 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: Danny Milosavljevic Cc: guix-devel@gnu.org 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/shar= e/hplip/setup.py", line 560, in >> > desc =3D 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 b= inary mode. However, ppd files are not binary and nickname_pat is not binar= y either. So not sure what they were thinking... Could it be that Python=C2=A03 support in hplip is incomplete? (ISTR that Python=C2=A03 treats Unicode sequences differently compared to Python=C2=A0= 2.) The hplip recipe has this comment: ;; Python3 support is available starting from hplip@3.15.2. Ludo=E2=80=99.