Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python version hell
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 857

PostPosted: Sun May 31, 2020 3:36 pm    Post subject: Python version hell Reply with quote

I installed Gentoo using CloverOS. Seems like a reasonable thing to do, it was amazingly fast. Comment a few lines in make.conf, emerge --sync && emerge -Dnua world and you're good right? But Clover is a somewhat tweaked gentoo, and I think more relevant: I did this just as things were happening with respect to Python. Always a mess.

So here is my situation now:

Code:

bartali /usr/src/linux # equery list portage
 * Searching for portage ...
[I--] [??] sys-apps/portage-2.3.89-r1:0
bartali /usr/src/linux # equery list portage -p
 * Searching for portage ...
[-P-] [  ] sys-apps/portage-2.3.99-r2:0
[-P-] [ ~] sys-apps/portage-2.3.100:0
[-P-] [ -] sys-apps/portage-9999:0


I am force-upgraded from portage 2.3.89 to 2.3.99. Seems like not such a huge jump. BUT when I try to do this I get:
Code:

bartali /usr/src/linux # emerge -1pv portage

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-portage/gemato-14.3::gentoo  USE="gpg -test -tools (-blake2%*) (-bzip2%*) (-lzma%) (-sha3%)" PYTHON_TARGETS="python3_7* (-pypy3) -python3_6* (-python3_8) (-python2_7%*)" 70 KiB
[ebuild     U  ] sys-apps/portage-2.3.99-r2::gentoo [2.3.89-r1::gentoo] USE="(ipc) native-extensions rsync-verify (xattr) -apidoc -build -doc -gentoo-dev (-selinux)" PYTHON_TARGETS="python3_7* (-pypy3) -python3_6* (-python3_8) (-python2_7%*)" 1,028 KiB

Total: 2 packages (1 upgrade, 1 reinstall), Size of downloads: 1,098 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-apps/portage:0

  (sys-apps/portage-2.3.99-r2:0/0::gentoo, ebuild scheduled for merge) USE="(ipc) native-extensions rsync-verify (xattr) -apidoc -build -doc -gentoo-dev (-selinux)" ABI_X86="(64)" PYTHON_TARGETS="python3_7 (-pypy3) -python3_6 (-python3_8)" pulled in by
    sys-apps/portage (Argument)

  (sys-apps/portage-2.3.89-r1:0/0::gentoo, installed) USE="(ipc) native-extensions rsync-verify (xattr) -apidoc -build -doc -gentoo-dev (-selinux)" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_6 (-pypy3) -python3_7 (-python3_8)" pulled in by
    sys-apps/portage[python_targets_pypy3(-)?,python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,-python_single_target_pypy3(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-)] required by (app-portage/gentoolkit-0.4.8:0/0::gentoo, installed) USE="" ABI_X86="(64)" PYTHON_TARGETS="python3_6 (-pypy3) -python3_7 (-python3_8)"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

app-portage/gemato:0

  (app-portage/gemato-14.3:0/0::gentoo, ebuild scheduled for merge) USE="gpg -test -tools" ABI_X86="(64)" PYTHON_TARGETS="python3_7 (-pypy3) -python3_6 (-python3_8)" pulled in by
    >=app-portage/gemato-14[python_targets_pypy3(-)?,python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,-python_single_target_pypy3(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-)] required by (sys-apps/portage-2.3.99-r2:0/0::gentoo, ebuild scheduled for merge) USE="(ipc) native-extensions rsync-verify (xattr) -apidoc -build -doc -gentoo-dev (-selinux)" ABI_X86="(64)" PYTHON_TARGETS="python3_7 (-pypy3) -python3_6 (-python3_8)"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
  (app-portage/gemato-14.3:0/0::gentoo, installed) USE="blake2 bzip2 gpg -lzma -sha3 -test -tools" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_6 (-pypy3) -python3_7 (-python3_8)" pulled in by
    >=app-portage/gemato-14[python_targets_python2_7(-),python_targets_python3_6(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-)] required by (sys-apps/portage-2.3.89-r1:0/0::gentoo, installed) USE="(ipc) native-extensions rsync-verify (xattr) -apidoc -build -doc -gentoo-dev (-selinux)" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_6 (-pypy3) -python3_7 (-python3_8)"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


And so I have multiple slot conflicts. It seems like the system requires python 2.7 and 3.6 while the required new portage requires only python 3.7. Am I understanding this correctly? Is there a way to get to a portage that can update the rest of the system? Or is it "you can't get there from here".

So I'm beginning to believe it was a mistake to try to install this way in the middle of the dance of the Pythons, and that I should install again from scratch with a minimal install cd. oops! That doesn't recognize my NVME drive, a whole different set of messes.

Is there no way forward for this system?

Here is emerge --info

Code:

bartali /usr/src/linux # emerge --info
Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.1/hardened, gcc-9.3.0, glibc-2.30-r8, 5.4.24-gentoo x86_64)
=================================================================
System uname: Linux-5.4.24-gentoo-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-gentoo-2.6
KiB Mem:    16326824 total,  15381344 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 31 May 2020 12:30:01 +0000
Head commit of repository gentoo: 4f9ea67ac27e045047a2b054dec6490c9166e931
sh bash 5.0_p17
ld GNU gold (Gentoo 2.33.1 p2 2.33.1) 1.16
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=znver2 -mfpmath=both -pipe -fgraphite-identity -floop-nest-optimize -funroll-loops -fipa-pta -ftracer -malign-data=cacheline -Wl,--hash-style=gnu"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=znver2 -mfpmath=both -pipe -fgraphite-identity -floop-nest-optimize -funroll-loops -fipa-pta -ftracer -malign-data=cacheline -Wl,--hash-style=gnu"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -fuse-ld=bfd"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -fuse-ld=bfd"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j100 -l24"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="https://cloveros.ga"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 crypt hardened iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre pie readline seccomp split-usr ssl ssp unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS




Any help would be gratefully accepted.

Cheers,

Jon.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Sun May 31, 2020 4:19 pm    Post subject: Re: Python version hell Reply with quote

jesnow wrote:
I installed Gentoo using CloverOS. Seems like a reasonable thing to do, it was amazingly fast. Comment a few lines in make.conf, emerge --sync && emerge -Dnua world and you're good right? But Clover is a somewhat tweaked gentoo, and I think more relevant: I did this just as things were happening with respect to Python. Always a mess.

So here is my situation now:

Code:

bartali /usr/src/linux # equery list portage
 * Searching for portage ...
[I--] [??] sys-apps/portage-2.3.89-r1:0
bartali /usr/src/linux # equery list portage -p
 * Searching for portage ...
[-P-] [  ] sys-apps/portage-2.3.99-r2:0
[-P-] [ ~] sys-apps/portage-2.3.100:0
[-P-] [ -] sys-apps/portage-9999:0


I am force-upgraded from portage 2.3.89 to 2.3.99. ...

https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-apps/portage/portage-2.3.89.ebuild?id=4a96d5d727207cfd5ce35d9c897e59440ed3f1ce

Was that old portage verions from a freshly downloaded snapshot? Which snapshot did you use?
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 857

PostPosted: Sun May 31, 2020 4:27 pm    Post subject: Reply with quote

I got past that problem by adding:

Code:

    */* PYTHON_TARGETS: -python3_7 python3_6
    */* PYTHON_SINGLE_TARGET: -* python3_6


to /etc/portage/package.use as suggested in the news item. Portage could then update itself.

Now on to the next set of problems.

thanks!

Jon.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum