1 |
вт, 1 мар. 2022 г. в 03:18, Alessandro Barbieri <lssndrbarbieri@×××××.com>: |
2 |
|
3 |
> Il Dom 27 Feb 2022, 10:34 Anatoly Oreshkin <anatoly.oreshkin@×××××.com> |
4 |
> ha scritto: |
5 |
> |
6 |
>> |
7 |
>> |
8 |
>> сб, 26 февр. 2022 г. в 03:40, Alessandro Barbieri < |
9 |
>> lssndrbarbieri@×××××.com>: |
10 |
>> |
11 |
>>> Il giorno mar 22 feb 2022 alle ore 08:02 Anatoly Oreshkin < |
12 |
>>> anatoly.oreshkin@×××××.com> ha scritto: |
13 |
>>> |
14 |
>>>> Hello, |
15 |
>>>> |
16 |
>>>> I am a newbie to Gentoo. |
17 |
>>>> As end user I am using package confluent-kafka from guru repository. |
18 |
>>>> To install it I have performed the following steps in command line: |
19 |
>>>> [...] |
20 |
>>>> 6. modify |
21 |
>>>> /var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild |
22 |
>>>> change PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( python3_9 ) |
23 |
>>>> sed -i 's/python3_8/python3_9/g' |
24 |
>>>> /var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild |
25 |
>>>> |
26 |
>>> |
27 |
>>> sorry but you can't do this, you have to stick with python3.8 |
28 |
>>> I plan to update the openstack packages next month after I graduate |
29 |
>>> |
30 |
>> |
31 |
>> |
32 |
>> If I don't change PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( |
33 |
>> python3_9 ) then |
34 |
>> I will not able to install dev-python/confluent-kafka using emerge. |
35 |
>> |
36 |
> |
37 |
> This isn't true, I can install it as-is in my system and in my test chroot. |
38 |
> You have to set your python targets to python3.8 |
39 |
> |
40 |
> |
41 |
The version of python installed in my local gentoo installation is |
42 |
localhost ~ # python3 --version |
43 |
Python 3.9.9 |
44 |
|
45 |
therefore I changed PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( |
46 |
python3_9 ) |
47 |
What is wrong with changing PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( |
48 |
python3_9 ) ? |
49 |
I have tested confluent-kafka installed with python3_9 and i works ! |
50 |
|
51 |
Nevertheless I have followed your advice. |
52 |
As far as I understood you I did the following steps: |
53 |
|
54 |
1. Created the file /etc/portage/package.use/confluent-kafka: |
55 |
dev-python/confluent-kafka PYTHON_TARGETS: -* python3_8 |
56 |
|
57 |
2. emerge --autounmask-write dev-python/confluent-kafka |
58 |
|
59 |
Autounmask changes successfully written. |
60 |
|
61 |
* IMPORTANT: config file '/etc/portage/package.use/grub' needs updating. |
62 |
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS |
63 |
* sections of the emerge man page to learn how to update config files. |
64 |
|
65 |
3. etc-update |
66 |
The following is the list of files which need updating, each |
67 |
configuration file is followed by a list of possible replacement files. |
68 |
1) /etc/portage/package.use/grub (1) |
69 |
Please select a file to edit by entering the corresponding number. |
70 |
(don't use -3, -5, -7 or -9 if you're unsure what to do) |
71 |
(-1 to exit) (-3 to auto merge all files) |
72 |
(-5 to auto-merge AND not use 'mv -i') |
73 |
(-7 to discard all updates) |
74 |
(-9 to discard all updates AND not use 'rm -i'): |
75 |
-3 |
76 |
Replacing /etc/portage/package.use/grub with |
77 |
/etc/portage/package.use/._cfg0000_grub |
78 |
mv: overwrite '/etc/portage/package.use/grub'? yes |
79 |
Exiting: Nothing left to do; exiting. :) |
80 |
|
81 |
4. emerge --autounmask-write dev-python/confluent-kafka |
82 |
... |
83 |
running install_scripts |
84 |
* Using python3.8 in global scope |
85 |
* python3_8: running distutils-r1_run_phase distutils-r1_python_install_all |
86 |
>>> Completed installing dev-python/confluent-kafka-1.7.0 into |
87 |
/var/tmp/portage/dev-python/confluent-kafka-1.7.0/image |
88 |
... |
89 |
>>> Installing (42 of 42) dev-python/confluent-kafka-1.7.0::guru |
90 |
|
91 |
>>> Recording dev-python/confluent-kafka in "world" favorites file... |
92 |
>>> Auto-cleaning packages... |
93 |
|
94 |
>>> No outdated packages were found on your system. |
95 |
|
96 |
Now package dev-python/confluent-kafka with python 3.8 is installed |
97 |
|
98 |
emerge --search confluent-kafka |
99 |
dev-python/confluent-kafka |
100 |
Latest version available: 1.7.0 |
101 |
Latest version installed: 1.7.0 |
102 |
Size of files: 101 KiB |
103 |
Homepage: https://pypi.org/project/confluent-kafka |
104 |
https://github.com/confluentinc/confluent-kafka-python |
105 |
Description: Confluent's Kafka Python Client |
106 |
License: Apache-2.0 |
107 |
|
108 |
Is this correct ? |
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 |
|
127 |
> |
128 |
>> By the way what is the link between openstack packages and |
129 |
>> dev-python/confluent-kafka ? |
130 |
>> |
131 |
> |
132 |
> confluent-kafka is a test dependency |
133 |
> |