1 |
Hi, |
2 |
|
3 |
In your logs, I saw that python 3.7 is executed. |
4 |
|
5 |
And you wrote that python 3.6 is selected. |
6 |
|
7 |
I had many problem with the python transition too. I have no simple |
8 |
solution. I uninstalled many things for reinstall after. |
9 |
|
10 |
Maybe try to : |
11 |
|
12 |
- Unmerge all python and python-setuptools versions |
13 |
|
14 |
- Verify your package.use files. Run "grep -Ri 'python' |
15 |
/etc/portage/package.use/" and delete old files. |
16 |
|
17 |
- Run a "emerge --newuse --update --autounmask-write --deep |
18 |
--with-bdeps=y @world". |
19 |
|
20 |
Hogren |
21 |
|
22 |
On 23/08/2020 07:16, Paul Colquhoun wrote: |
23 |
> |
24 |
> For the past month or so (since the recent Python version changes) I |
25 |
> haven't been able to get a full emerge update to complete. |
26 |
> |
27 |
> The main culprit seems to be meson, but only because what looks like |
28 |
> an internal Python module, "setup.py", can't import 'setup' from |
29 |
> 'setuptools' |
30 |
> |
31 |
> All the remaining failures are either the same error, or dependencies |
32 |
> of packages that get the error. |
33 |
> |
34 |
> I have been trying various combinations of which Python version is the |
35 |
> default and which versions are in the "PYTHON_TARGETS" variable, but |
36 |
> nothing seems to change much. |
37 |
> |
38 |
> Rebuilding dev-python/setuptools didn't help either. |
39 |
> |
40 |
> My google searches for the error message |
41 |
> |
42 |
> "cannot import name 'setup' from 'setuptools'" |
43 |
> |
44 |
> also haven't turned up anything that seemed relevent to my system |
45 |
> |
46 |
> Does anyone have any suggestions on what I can try before I rebuild my |
47 |
> system from scratch? |
48 |
> |
49 |
> The relevant section of the build log in included below, and the full |
50 |
> log is attached. |
51 |
> |
52 |
> "eselect python list" tells me tjhat the default should be python3.6 |
53 |
> |
54 |
> ############################################################################### |
55 |
> |
56 |
> * python3_7: running distutils-r1_run_phase distutils-r1_python_compile |
57 |
> |
58 |
> python3.7 setup.py build -j 6 |
59 |
> |
60 |
> Traceback (most recent call last): |
61 |
> |
62 |
> File "setup.py", line 24, in <module> |
63 |
> |
64 |
> from setuptools import setup |
65 |
> |
66 |
> ImportError: cannot import name 'setup' from 'setuptools' (unknown |
67 |
> location) |
68 |
> |
69 |
> * ERROR: dev-util/meson-0.54.2::gentoo failed (compile phase): |
70 |
> |
71 |
> * (no error message) |
72 |
> |
73 |
> * |
74 |
> |
75 |
> * Call stack: |
76 |
> |
77 |
> * ebuild.sh, line 125: Called src_compile |
78 |
> |
79 |
> * environment, line 2949: Called distutils-r1_src_compile |
80 |
> |
81 |
> * environment, line 1219: Called _distutils-r1_run_foreach_impl |
82 |
> 'distutils-r1_python_compile' |
83 |
> |
84 |
> * environment, line 447: Called python_foreach_impl |
85 |
> 'distutils-r1_run_phase' 'distutils-r1_python_compile' |
86 |
> |
87 |
> * environment, line 2557: Called multibuild_foreach_variant |
88 |
> '_python_multibuild_wrapper' 'distutils-r1_run_phase' |
89 |
> 'distutils-r1_python_compile' |
90 |
> |
91 |
> * environment, line 2056: Called _multibuild_run |
92 |
> '_python_multibuild_wrapper' 'distutils-r1_run_phase' |
93 |
> 'distutils-r1_python_compile' |
94 |
> |
95 |
> * environment, line 2054: Called _python_multibuild_wrapper |
96 |
> 'distutils-r1_run_phase' 'distutils-r1_python_compile' |
97 |
> |
98 |
> * environment, line 846: Called distutils-r1_run_phase |
99 |
> 'distutils-r1_python_compile' |
100 |
> |
101 |
> * environment, line 1210: Called distutils-r1_python_compile |
102 |
> |
103 |
> * environment, line 1079: Called esetup.py 'build' '-j' '6' |
104 |
> |
105 |
> * environment, line 1600: Called die |
106 |
> |
107 |
> * The specific snippet of code: |
108 |
> |
109 |
> * "${@}" || die "${die_args[@]}"; |
110 |
> |
111 |
> ############################################################################### |
112 |
> |
113 |
> -- |
114 |
> |
115 |
> Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/ |
116 |
> |
117 |
> Asking for technical help in newsgroups? Read this first: |
118 |
> |
119 |
> http://catb.org/~esr/faqs/smart-questions.html#intro |
120 |
> |