Summary: | sys-process/htop-2.1.0 - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 457: ordinal not in range(128) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Christian Ruppert (idl0r) <idl0r> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | polynomial-c, volkov |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/hishamhm/htop/pull/751 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
htop-2.1.0.ebuild python2 dependency python3 support |
Description
Juergen Rose
2018-02-07 08:18:10 UTC
This is interesting... The error comes from some python3.4 module but you have PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" set. Please post the output of eselect python show root@lynxold:/usr/share/applications/RootRlogin/TECNETAIR(28)# eselect python show python3.4 root@lynxold:/usr/share/applications/RootRlogin/TECNETAIR(29)# eselect python list Available Python interpreters, in order of preference: [1] python3.4 [2] python3.6 (fallback) [3] python3.5 (fallback) [4] python2.7 (fallback) [5] pypy (fallback) I have not any idea wherefrom comes PYTHON_SINGLE_TARGET="python3_5" . If I grep for PYTHON in /etc/make.conf and for single_target_python3_5 in /etc/portage/package.use, I get: root@lynxold:/root(40)# grep PYTHON /etc/make.conf root@lynxold:/root(41)# grep single_target_python3_5 /etc/portage/package.use/monolithic app-misc/gramps -python_single_target_python3_4 python_single_target_python3_5 -python_targets_python3_4 python_targets_python3_5 app-misc/lirc python_single_target_python3_5 python_targets_python3_5 -python_single_target_python3_4 -python_targets_python3_4 (In reply to Juergen Rose from comment #3) > I have not any idea wherefrom comes > PYTHON_SINGLE_TARGET="python3_5" . If not setted in make.conf this is provided by profile (/usr/portage/profiles/base/make.defaults). Created attachment 518366 [details, diff]
htop-2.1.0.ebuild python2 dependency
Add python2 build dependency to htop-2.1.0.ebuild
(In reply to Andrey Volkov from comment #6) > Created attachment 518366 [details, diff] [details, diff] > htop-2.1.0.ebuild python2 dependency > > Add python2 build dependency to htop-2.1.0.ebuild Does it really only work with python2? Had the same problem.. on one machine but not another .. machine with the problem was missing /etc/env.d/02locale also had eselect python only showing python3_6 PYTHON_TARGETS="python2_7 python3_6" PYTHON_SINGLE_TARGET="python3_6" I tried a couple of things .. it may be inconsistent environment locale info re: encoding used so check-> eselect locale list and set it if needed also I recompiled all pythons, and asciidoc then as root ran emerge -1v htop and all was well .. there were a couple of reboots in there as well as I was having some clock issues unrelated .. slightly misleading statement .. python2_7 was listed as (fallback) Created attachment 518508 [details, diff]
python3 support
This patch make MakeHeader.py to ignore unicode characters since .h files is acsii-encoded
It is python{2,3} compatible
PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a2abcdad0d08cc33200186bec556de59e1a2973 commit 8a2abcdad0d08cc33200186bec556de59e1a2973 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2018-03-01 09:50:00 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2018-03-01 09:50:14 +0000 sys-process/htop: Revbump to fix build with non-utf8 and python3. Also added several upstream fixes. Closes: https://bugs.gentoo.org/646880 Package-Manager: Portage-2.3.24, Repoman-2.3.6 .../htop/files/htop-2.1.0-MakeHeader-python3.patch | 29 ++++++++ sys-process/htop/files/htop-2.1.0-bashisms.patch | 37 +++++++++ .../htop/files/htop-2.1.0-clear_on_sigwinch.patch | 21 ++++++ .../htop/files/htop-2.1.0-color_issues.patch | 87 ++++++++++++++++++++++ .../htop/files/htop-2.1.0-header_updates.patch | 42 +++++++++++ sys-process/htop/files/htop-2.1.0-ldflags.patch | 21 ++++++ .../htop/files/htop-2.1.0-ncurses_cflags.patch | 46 ++++++++++++ sys-process/htop/htop-2.1.0-r1.ebuild | 75 +++++++++++++++++++ 8 files changed, 358 insertions(+) |