Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issues upgrading to Python3_7
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
c0ntrarian
n00b
n00b


Joined: 05 May 2020
Posts: 7

PostPosted: Wed Jul 01, 2020 10:17 pm    Post subject: Issues upgrading to Python3_7 Reply with quote

I've been trying to update my system to the recommended version of Python, and I keep running into issues when trying to pull in certain ebuids:

Code:
~ % sudo emerge --update --deep --with-bdeps=y --newuse @world
Calculating dependencies... done!

emerge: there are no ebuilds to satisfy ">=dev-python/chardet-3.0.2[python_targets_pypy3(-)?,python_targets_python2_7(-)?,
python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,
python_targets_python3_9(-)?,-python_single_target_pypy3(-),-python_single_target_python2_7(-),
-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),
-python_single_target_python3_9(-)]".
(dependency required by "dev-python/requests-2.24.0::gentoo" [ebuild])
(dependency required by "net-misc/streamlink-1.3.1-r1::gentoo[python_single_target_python3_7]" [ebuild])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


I am also trying to update portage as well. This is what the output is:

Code:
Calculating dependencies... done!
[ebuild   R    ] sys-apps/portage-2.3.99-r2  PYTHON_TARGETS="-python3_6*"

!!! 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-2.3.99-r2:0/0::gentoo (Argument)

  (sys-apps/portage-2.3.99-r2:0/0::gentoo, installed) USE="(ipc) native-extensions rsync-verify xattr -apidoc -build -doc -gentoo-dev (-selinux)" ABI_X86="(64)" PYTHON_TARGETS="python3_6 python3_7 (-pypy3) (-python3_8)" pulled in by
    sys-apps/portage[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,
-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-)] required by (dev-java/java-config-2.2.0-r4:2/2::gentoo, installed) USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python3_6 python3_7 (-python3_8)"

    >=sys-apps/portage-2.2.16[python_targets_python3_6(-)?,python_targets_python3_7(-)?,
python_targets_python3_8(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),
-python_single_target_python3_8(-)] required by (app-portage/layman-2.4.3:0/0::gentoo, installed) USE="git sync-plugin-portage -cvs (-darcs) (-g-sorcery) -gpg -mercurial -sqlite -squashfs -subversion -test" ABI_X86="(64)" PYTHON_TARGETS="python3_6 python3_7 (-python3_8)"

    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 python3_7 (-pypy3) (-python3_8)"


I already tried to oneshot Portage and use the backtrack flag as recommended in the wiki, but this did not fix my issue. Here are the PYTHON_TARGETS & USE flags in my make.conf:
Code:


USE="symlink X alsa acpi staging -gpm pulseaudio ffmpeg opengl multilib openvdb threads openal sdl fftw openexr expat vulkan mtp winbind vpx v4l libass wxwidgets kate aribsub live lua matroska rtsp theora upnp vcdx cuda cycles openimageio uvm openmp jlink zsh-completion tk kvm python_single_target_python3_7 python_single_target3_7 -python3_6"

PYTHON_TARGETS="python2_7 python3_7 python3_8"
PYTHON_SINGLE_TARGET="python3_7"


Here are the Python targets in my /etc/portage/package.use/zz-autoumask file:

Code:

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


This was recommended in the wiki as well. I would appreciate the help immensely. I don't understand what Portage wants.

[Moderator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu]
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7874
Location: Austria

PostPosted: Wed Jul 01, 2020 10:24 pm    Post subject: Reply with quote

Ignore portage's own recommendation and do not try to update it on its own. Just run the @world upgrade.

Remove your PYTHON* entries in make.conf and also the bogus "python_single_target_python3_7 python_single_target3_7 -python3_6" entries in IUSE, you are contradicting these flags all over the place. Set them in package.use *only*.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
c0ntrarian
n00b
n00b


Joined: 05 May 2020
Posts: 7

PostPosted: Sat Jul 04, 2020 11:17 pm    Post subject: Reply with quote

asturm wrote:
Ignore portage's own recommendation and do not try to update it on its own. Just run the @world upgrade.

Remove your PYTHON* entries in make.conf and also the bogus "python_single_target_python3_7 python_single_target3_7 -python3_6" entries in IUSE, you are contradicting these flags all over the place. Set them in package.use *only*.


OK I removed the python entries so now I only have this in my make.conf:

Code:
PYTHON_SINGLE_TARGET="python3_7"


Now the problem is that even though you told me to remove the "bogus python_single_target_python3_7 targets", portage complains that many ebuilds need this flag enabled in package.use. Otherwise I still cannot upgrade my system. Did I do this right?

Code:
!!! The ebuild selected to satisfy ">=x11-base/xcb-proto-1.14[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,
abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,
abi_s390_64(-)?]" has unmet requirements.
- x11-base/xcb-proto-1.14-r1::gentoo USE="" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="-python3_6 -python3_7 (-python3_8)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    any-of ( python_targets_python3_6 python_targets_python3_7 python_targets_python3_8 )

(dependency required by "x11-libs/libxcb-1.14::gentoo" [installed])
(dependency required by "x11-libs/libX11-1.6.9::gentoo" [installed])
(dependency required by "@steam" [set])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


[Moderator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu]
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24369
Location: here

PostPosted: Sun Jul 05, 2020 5:22 am    Post subject: Reply with quote

c0ntrarian wrote:
OK I removed the python entries so now I only have this in my make.conf:

Code:
PYTHON_SINGLE_TARGET="python3_7"

Remove this line from make.conf is already the default setted by profile

c0ntrarian wrote:
Now the problem is that even though you told me to remove the "bogus python_single_target_python3_7 targets", portage complains that many ebuilds need this flag enabled in package.use. Otherwise I still cannot upgrade my system. Did I do this right?

Please post your emerge --info
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
c0ntrarian
n00b
n00b


Joined: 05 May 2020
Posts: 7

PostPosted: Mon Jul 06, 2020 8:14 am    Post subject: Reply with quote

fedeliallalinea wrote:
c0ntrarian wrote:
OK I removed the python entries so now I only have this in my make.conf:

Code:
PYTHON_SINGLE_TARGET="python3_7"

Remove this line from make.conf is already the default setted by profile

c0ntrarian wrote:
Now the problem is that even though you told me to remove the "bogus python_single_target_python3_7 targets", portage complains that many ebuilds need this flag enabled in package.use. Otherwise I still cannot upgrade my system. Did I do this right?

Please post your emerge --info


Removing the PYTHON_SINGLE_TARGET fixed my issue. My machine is now upgrading all packages. Thank you so much for your time and help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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