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