Date: Fri, 13 Oct 2017 14:27:03 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 222980] sysutils/battray fails Message-ID: <bug-222980-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222980-13>