Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
portage python conflict (solved)
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
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Thu Aug 27, 2015 2:42 am    Post subject: portage python conflict (solved) Reply with quote

I'm getting the following message when I attempt to emerge portage
Code:

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

Calculating dependencies... done!
[ebuild     U  ] sys-apps/portage-2.2.20.1::gentoo [2.2.20::gentoo] USE="(ipc) -build -doc -epydoc (-selinux) -xattr" LINGUAS="-ru" PYTHON_TARGETS="python2_7 python3_4* (-pypy) -python3_3*" 929 KiB

Total: 1 package (1 upgrade), Size of downloads: 929 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.2.20.1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    sys-apps/portage (Argument)

  (sys-apps/portage-2.2.20:0/0::gentoo, installed) pulled in by
    sys-apps/portage[python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)] required by (app-portage/gentoolkit-0.3.0.9-r2:0/0::gentoo, installed)

Can somebody please tell me what the fix is?


Last edited by rsala on Fri Aug 28, 2015 3:11 am; edited 1 time in total
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 591
Location: Australia

PostPosted: Thu Aug 27, 2015 5:47 am    Post subject: Reply with quote

Quote:
PYTHON_TARGETS="python2_7 python3_4* (-pypy) -python3_3*"

You have tried to slot two versions of python3

Probably the easiest fix is to go back to the default python settings
Code:
eselect python list
Code:
eselect python set <whatever =2.7, probably set 1>


Remove any PYTHON_TARGETS in /etc/portage/make.conf or change them to read
Quote:
PYTHON_TARGETS="python2_7 python3_4"
PYTHON_SINGLE_TARGET="python3_4"
which is the sane default, (and the same as having no PYTHON_TARGETS in make.conf), then
Code:
emerge -1pv portage
should do the trick.

if that doesn't work, post your
Code:
emerge --info
Code:
eselect python list
Code:
cat /etc/portage/make.conf
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Aug 27, 2015 6:37 am    Post subject: Reply with quote

ian.au wrote:
...
quite a bit
...


But that's just not it.

Given that output, try something like 'emerge -1pv sys-apps/portage app-portage/gentoolkit'.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 591
Location: Australia

PostPosted: Thu Aug 27, 2015 6:42 am    Post subject: Reply with quote

:oops: oops, I missed the - in front of python3_3 my apologies. Should have read your output more closely.
Back to top
View user's profile Send private message
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Fri Aug 28, 2015 3:12 am    Post subject: Reply with quote

Thanks VoidMage! That did it.
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