Gentoo Archives: gentoo-user

From: Steven Lembark <lembark@×××××××.com>
To: gentoo-user@l.g.o
Cc: lembark@×××××××.com
Subject: Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
Date: Sun, 07 Mar 2021 23:32:36
Message-Id: 20210307183226.17a5eae6.lembark@wrkhors.com
In Reply to: Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml? by Neil Bothwick
1 On Sun, 7 Mar 2021 22:04:39 +0000
2 Neil Bothwick <neil@××××××××××.uk> wrote:
3
4 > But you have chosen a different default version of Python. That leaves
5 > you two choices:
6 >
7 > 1) use eselect to set your default python to 3.8
8 > 2) Add python_39 to PYTHON_TARGETS
9 > 3) Explicitly call python38 in the shebang line of the affected
10 > script.
11
12 So, I go back and eselect 3.8.
13 I then try to perform some basic maintainence which fails for
14 lack of a python module I think is installed for python 3.8.
15
16 Q: Is there no way to have a consistent version of Python on
17 the system?
18
19 # eselect python list;
20 Available Python interpreters, in order of preference:
21 [1] python3.8
22 [2] python3.6
23 [3] python3.9
24 [4] python3.7 (fallback)
25 [5] python2.7 (fallback)
26
27
28 # emerge dev-python/chardet;
29
30 <snip>
31
32 writing byte-compilation script '/tmp/portage/dev-python/chardet-4.0.0/temp/tmp591yrh90.py'
33 * /usr/bin/python3.8 /tmp/portage/dev-python/chardet-4.0.0/temp/tmp591yrh90.py
34 removing /tmp/portage/dev-python/chardet-4.0.0/temp/tmp591yrh90.py
35 writing byte-compilation script '/tmp/portage/dev-python/chardet-4.0.0/temp/tmp9vcif_en.py'
36 * /usr/bin/python3.8 /tmp/portage/dev-python/chardet-4.0.0/temp/tmp9vcif_en.py
37 removing /tmp/portage/dev-python/chardet-4.0.0/temp/tmp9vcif_en.py
38
39 <snip>
40
41 >>> Installing (1 of 1) dev-python/chardet-4.0.0::gentoo
42 >>> Auto-cleaning packages...
43
44 >>> No outdated packages were found on your system.
45
46 * GNU info directory index is up-to-date.
47
48 !!! existing preserved libs:
49 >>> package: dev-libs/icu-68.2
50 * - /usr/lib64/libicudata.so.67
51 * - /usr/lib64/libicudata.so.67.1
52 * - /usr/lib64/libicui18n.so.67
53 * - /usr/lib64/libicui18n.so.67.1
54 * used by /usr/bin/js60 (dev-lang/spidermonkey-60.5.2_p0-r4)
55 * used by /usr/lib64/libmozjs-60.so (dev-lang/spidermonkey-60.5.2_p0-r4)
56 * - /usr/lib64/libicuuc.so.67
57 * - /usr/lib64/libicuuc.so.67.1
58 * used by /usr/bin/js60 (dev-lang/spidermonkey-60.5.2_p0-r4)
59 * used by /usr/lib64/libmozjs-60.so (dev-lang/spidermonkey-60.5.2_p0-r4)
60 Use emerge @preserved-rebuild to rebuild packages using these libraries
61
62
63 * python3_8: running distutils-r1_run_phase distutils-r1_python_install_all
64
65
66 # $emerge @preserved-rebuild
67
68 These are the packages that would be merged, in order:
69
70 Calculating dependencies... done!
71
72 * emerge: there are no ebuilds to satisfy ">=dev-python/chardet-3.0.2[python_targets_python3_6(-),python_targets_python3_7(-),python_targets_python3_8(-),-python_single_target_pypy3(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]".
73 <snip>
74
75 # emerge --search dev-python/chardet;
76
77 [ Results for search key : dev-python/chardet ]
78 Searching...
79
80 * dev-python/chardet
81 Latest version available: 4.0.0
82 Latest version installed: 4.0.0
83
84
85
86 # emerge --info dev-python/chardet;
87 * Portage 3.0.13 (python 3.8.7-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.32-r3, 5.9.1-gentoo-af x86_64)
88 * dev-lang/python: 2.7.18-r6::gentoo, 3.6.12-r2::gentoo, 3.7.9-r2::gentoo, 3.8.7-r1::gentoo, 3.9.1-r1::gentoo
89 * USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python3_7 python3_8 (-pypy3) -python3_9"
90
91
92 See <https://pastebin.com/JbKXEptz> for details of --info.
93
94 --
95 Steven Lembark
96 Workhorse Computing
97 lembark@×××××××.com
98 +1 888 359 3508

Replies