From owner-freebsd-ports-bugs@freebsd.org Fri Oct 13 14:27:04 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 357E2E499A4 for ; Fri, 13 Oct 2017 14:27:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 23F7666EC0 for ; Fri, 13 Oct 2017 14:27:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v9DER3gV021642 for ; Fri, 13 Oct 2017 14:27:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 222980] sysutils/battray fails Date: Fri, 13 Oct 2017 14:27:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bsd@mkfs.nl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tz@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2017 14:27:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222980 Bug ID: 222980 Summary: sysutils/battray fails Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: tz@freebsd.org Reporter: bsd@mkfs.nl Flags: maintainer-feedback?(tz@freebsd.org) Assignee: tz@freebsd.org Hello, battray does not work with python 3 in 11.1-RELEASE: battray error: a bytes-like object is required, not 'str'=20=20 File "/usr/local/lib/python3.6/site-packages/battray/__init__.py", line 1= 35, in update_status=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 self.data['lifetime']) =3D self.platform()=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 File "/usr/local/lib/python3.6/site-packages/battray/platforms.py", line = 38, in freebsd=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 for line in o.split('\n'): The following patch solves this for me: --- battray/platforms.py.orig 2017-10-13 15:38:32.473043000 +0200 +++ battray/platforms.py 2017-10-13 15:38:55.984945000 +0200 @@ -35,7 +35,7 @@ o =3D subprocess.Popen(['acpiconf', '-i0'], stdout=3Dsubprocess.PIPE).communicate()[0] - for line in o.split('\n'): + for line in o.decode().split('\n'): if line.find(':') =3D=3D -1: continue (key, value) =3D line.split(':', 1) --=20 You are receiving this mail because: You are the assignee for the bug.=