1 |
For the past month or so (since the recent Python version changes) I haven't been able to |
2 |
get a full emerge update to complete. |
3 |
|
4 |
The main culprit seems to be meson, but only because what looks like an internal Python |
5 |
module, "setup.py", can't import 'setup' from 'setuptools' |
6 |
|
7 |
All the remaining failures are either the same error, or dependencies of packages that get |
8 |
the error. |
9 |
|
10 |
I have been trying various combinations of which Python version is the default and which |
11 |
versions are in the "PYTHON_TARGETS" variable, but nothing seems to change much. |
12 |
|
13 |
Rebuilding dev-python/setuptools didn't help either. |
14 |
|
15 |
My google searches for the error message |
16 |
"cannot import name 'setup' from 'setuptools'" |
17 |
also haven't turned up anything that seemed relevent to my system |
18 |
|
19 |
Does anyone have any suggestions on what I can try before I rebuild my system from |
20 |
scratch? |
21 |
|
22 |
The relevant section of the build log in included below, and the full log is attached. |
23 |
|
24 |
"eselect python list" tells me tjhat the default should be python3.6 |
25 |
|
26 |
|
27 |
################################################################# |
28 |
############## |
29 |
* python3_7: running distutils-r1_run_phase distutils-r1_python_compile |
30 |
python3.7 setup.py build -j 6 |
31 |
Traceback (most recent call last): |
32 |
File "setup.py", line 24, in <module> |
33 |
from setuptools import setup |
34 |
ImportError: cannot import name 'setup' from 'setuptools' (unknown location) |
35 |
* ERROR: dev-util/meson-0.54.2::gentoo failed (compile phase): |
36 |
* (no error message) |
37 |
* |
38 |
* Call stack: |
39 |
* ebuild.sh, line 125: Called src_compile |
40 |
* environment, line 2949: Called distutils-r1_src_compile |
41 |
* environment, line 1219: Called _distutils-r1_run_foreach_impl 'distutils- |
42 |
r1_python_compile' |
43 |
* environment, line 447: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils- |
44 |
r1_python_compile' |
45 |
* environment, line 2557: Called multibuild_foreach_variant |
46 |
'_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' |
47 |
* environment, line 2056: Called _multibuild_run '_python_multibuild_wrapper' 'distutils- |
48 |
r1_run_phase' 'distutils-r1_python_compile' |
49 |
* environment, line 2054: Called _python_multibuild_wrapper 'distutils-r1_run_phase' |
50 |
'distutils-r1_python_compile' |
51 |
* environment, line 846: Called distutils-r1_run_phase 'distutils-r1_python_compile' |
52 |
* environment, line 1210: Called distutils-r1_python_compile |
53 |
* environment, line 1079: Called esetup.py 'build' '-j' '6' |
54 |
* environment, line 1600: Called die |
55 |
* The specific snippet of code: |
56 |
* "${@}" || die "${die_args[@]}"; |
57 |
################################################################# |
58 |
############## |
59 |
|
60 |
-- |
61 |
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/ |
62 |
Asking for technical help in newsgroups? Read this first: |
63 |
http://catb.org/~esr/faqs/smart-questions.html#intro |