вт, 1 мар. 2022 г. в 03:18, Alessandro Barbieri <
[email protected]>:
Il Dom 27 Feb 2022, 10:34 Anatoly Oreshkin <[email protected]>
ha scritto:
сб, 26 февр. 2022 г. в 03:40, Alessandro Barbieri <
[email protected]>:
Il giorno mar 22 feb 2022 alle ore 08:02 Anatoly Oreshkin <
[email protected]> ha scritto:
Hello,
I am a newbie to Gentoo.
As end user I am using package confluent-kafka from guru repository.
To install it I have performed the following steps in command line:
[...]
6. modify
/var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild >>>> change PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( python3_9 )
sed -i 's/python3_8/python3_9/g'
/var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild >>>>
sorry but you can't do this, you have to stick with python3.8
I plan to update the openstack packages next month after I graduate
If I don't change PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=(
python3_9 ) then
I will not able to install dev-python/confluent-kafka using emerge.
This isn't true, I can install it as-is in my system and in my test chroot. You have to set your python targets to python3.8
The version of python installed in my local gentoo installation is
localhost ~ # python3 --version
Python 3.9.9
therefore I changed PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=(
python3_9 )
What is wrong with changing PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( python3_9 ) ?
I have tested confluent-kafka installed with python3_9 and i works !
Nevertheless I have followed your advice.
As far as I understood you I did the following steps:
1. Created the file /etc/portage/package.use/confluent-kafka: dev-python/confluent-kafka PYTHON_TARGETS: -* python3_8
2. emerge --autounmask-write dev-python/confluent-kafka
Autounmask changes successfully written.
* IMPORTANT: config file '/etc/portage/package.use/grub' needs updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
3. etc-update
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/portage/package.use/grub (1)
Please select a file to edit by entering the corresponding number.
(don't use -3, -5, -7 or -9 if you're unsure what to do)
(-1 to exit) (-3 to auto merge all files)
(-5 to auto-merge AND not use 'mv -i')
(-7 to discard all updates)
(-9 to discard all updates AND not use 'rm -i'):
-3
Replacing /etc/portage/package.use/grub with /etc/portage/package.use/._cfg0000_grub
mv: overwrite '/etc/portage/package.use/grub'? yes
Exiting: Nothing left to do; exiting. :)
4. emerge --autounmask-write dev-python/confluent-kafka
...
running install_scripts
* Using python3.8 in global scope
* python3_8: running distutils-r1_run_phase distutils-r1_python_install_all >>> Completed installing dev-python/confluent-kafka-1.7.0 into /var/tmp/portage/dev-python/confluent-kafka-1.7.0/image
...
Installing (42 of 42) dev-python/confluent-kafka-1.7.0::guru
Recording dev-python/confluent-kafka in "world" favorites file...
Auto-cleaning packages...
No outdated packages were found on your system.
Now package dev-python/confluent-kafka with python 3.8 is installed
emerge --search confluent-kafka
dev-python/confluent-kafka
Latest version available: 1.7.0
Latest version installed: 1.7.0
Size of files: 101 KiB
Homepage:
https://pypi.org/project/confluent-kafka https://github.com/confluentinc/confluent-kafka-python
Description: Confluent's Kafka Python Client
License: Apache-2.0
Is this correct ?
By the way what is the link between openstack packages and
dev-python/confluent-kafka ?
confluent-kafka is a test dependency
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 1 мар. 2022 г. в 03:18, Alessandro Barbieri <<a href="mailto:
[email protected]">
[email protected]</a>>:<br></div><
blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il Dom 27 Feb 2022, 10:34 Anatoly Oreshkin <<a href=
"mailto:
[email protected]" target="_blank">
[email protected]</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="
ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">сб, 26 февр. 2022 г. в 03:40, Alessandro Barbieri <<a href="mailto:
[email protected]" rel="noreferrer" target="_blank">
[email protected]</a>>:<br></
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Il giorno mar 22 feb 2022 alle ore 08:02 Anatoly Oreshkin <<a href="mailto:anatoly.oreshkin@
gmail.com" rel="noreferrer" target="_blank">
[email protected]</a>> ha scritto:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=
"ltr">Hello,<br><br>I am a newbie to Gentoo.<br>As end user I am using package confluent-kafka from guru repository.<br>To install it I have performed the following steps in command line:<br>[...]<br>6. modify /var/db/repos/guru/dev-python/confluent-
kafka/confluent-kafka-1.7.0.ebuild<br>change PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( python3_9 )<br>sed -i 's/python3_8/python3_9/g' /var/db/repos/guru/dev-python/confluent-kafka/confluent-kafka-1.7.0.ebuild<br></div></blockquote><div>
<br></div><div>sorry but you can't do this, you have to stick with python3.8</div><div>I plan to update the openstack packages
next month after I graduate<br></div></div></div></blockquote><div><br></div><div><br></div><div>If I don't change PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( python3_9 ) then</div><div>I will not able to install dev-python/confluent-
kafka using emerge.<br></div><div></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This isn't true, I can install it as-is in my system and in my test chroot.</div><div dir="auto">You have to set your python
targets to python3.8</div><div dir="auto"><br></div></div></blockquote><div><br></div><div>The version of python installed in my local gentoo installation is</div><div>localhost ~ # python3 --version<br>Python 3.9.9</div><div><br></div><div>therefore I
changed PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( python3_9 )</div><div>What is wrong with changing PYTHON_COMPAT=( python3_8 ) -> PYTHON_COMPAT=( python3_9 ) ?</div><div>I have tested confluent-kafka installed with python3_9 and i works
!</div><div><br></div><div>Nevertheless I have followed your advice. <br></div><div>As far as I understood you I did the following steps:</div><div><br> </div><div>1. Created the file /etc/portage/package.use/confluent-kafka:</div><div>dev-python/
confluent-kafka PYTHON_TARGETS: -* python3_8</div><div><br></div><div>2. emerge --autounmask-write dev-python/confluent-kafka<br><br>Autounmask changes successfully written.<br><br> * IMPORTANT: config file '/etc/portage/package.use/grub'
needs updating.<br> * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS<br> * sections of the emerge man page to learn how to update config files.</div><div><br></div><div>3. etc-update</div><div>The following is the list of files which
need updating, each<br>configuration file is followed by a list of possible replacement files.<br>1) /etc/portage/package.use/grub (1)<br>Please select a file to edit by entering the corresponding number.<br> (don't use -3, -5, -7
or -9 if you're unsure what to do)<br> (-1 to exit) (-3 to auto merge all files)<br> (-5 to auto-merge AND not use 'mv -i')<br> (-7 to discard
all updates)<br> (-9 to discard all updates AND not use 'rm -i'): -3</div><div>Replacing /etc/portage/package.use/grub with /etc/portage/package.use/._cfg0000_grub<br>mv: overwrite '/etc/portage/package.
use/grub'? yes<br>Exiting: Nothing left to do; exiting. :)<br></div><div><br></div><div>4. emerge --autounmask-write dev-python/confluent-kafka</div><div>...</div><div>running install_scripts<br> * Using python3.8 in global scope<br> * python3_8:
running distutils-r1_run_phase distutils-r1_python_install_all<br>>>> Completed installing dev-python/confluent-kafka-1.7.0 into /var/tmp/portage/dev-python/confluent-kafka-1.7.0/image</div><div>...</div><div>>>> Installing (42 of 42)
dev-python/confluent-kafka-1.7.0::guru<br> <br>>>> Recording dev-python/confluent-kafka in "world" favorites file...<br>>>> Auto-cleaning packages...<br> <br>>>> No outdated packages were found on your system.</div><
<br></div><div>Now package dev-python/confluent-kafka with python 3.8 is installed</div><div><br></div><div>emerge --search confluent-kafka</div><div> dev-python/confluent-kafka<br> Latest version available: 1.7.0<br> Latest version
installed: 1.7.0<br> Size of files: 101 KiB<br> Homepage: <a href="
https://pypi.org/project/confluent-kafka">https://pypi.org/project/confluent-kafka</a> <a href="
https://github.com/confluentinc/confluent-kafka-python">https://
github.com/confluentinc/confluent-kafka-python</a><br> Description: Confluent's Kafka Python Client<br> License: Apache-2.0</div><div><br></div><div>Is this correct ?</div><div><br></div><div><br></div><div><br></div><div><
</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);
padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><div>By the way what is the link between openstack packages and dev-python/confluent-kafka ?</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">
confluent-kafka is a test dependency</div></div></blockquote><div><br></div><div><br></div><div> </div></div></div>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)