Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge Python 2 conflicts with Python 3 so cannot be done!?
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
jos1
n00b
n00b


Joined: 10 Oct 2011
Posts: 7

PostPosted: Wed Apr 06, 2016 6:18 pm    Post subject: Emerge Python 2 conflicts with Python 3 so cannot be done!? Reply with quote

Hi,

Can someone give me an idea how to solve the following. I unmerged python 2.7. That was not a good idea (due to dependencies). When I now try to emerge the latest portage (or anything else) it complains that python 2 cannot be installed because a lot existing python 3 packages conflict withs Python 3.

When I try 'emerge python:2.7' I will get similar Python 3 dependency errors.

I tried python-updater but then I get the same kind of errors. How can I solve this?

Thanks


Code:
sudo emerge -1 portage > t.log 2>&1

 * IMPORTANT: 4 config files in '/etc/portage' need updating.                                                                                                   
Calculating dependencies   * See the CONFIGURATION FILES section of the emerge                                                                                 
 * man page to learn how to update config files.                                                                                                               
.... ......... .. ... ...... ..... done!                                                                                                                       
[ebuild     U  ] dev-lang/python-exec-2.1 [2.0.2] PYTHON_TARGETS="(python3_5%*)"                                                                               
[ebuild  NS    ] dev-lang/python-2.7.11-r2 [3.2.5-r1000, 3.3.5-r2] USE="gdbm ipv6 ncurses readline sqlite ssl (threads) (wide-unicode) xml (-berkdb) -build -doc
[ebuild     U  ] app-eselect/eselect-python-20151117-r2 [20140125]                                                                                             
[blocks b      ] <app-eselect/eselect-python-20151117 ("<app-eselect/eselect-python-20151117" is blocking dev-lang/python-exec-2.1)                             
[ebuild  NS    ] dev-lang/python-3.4.3-r7 [3.2.5-r1000, 3.3.5-r2] USE="gdbm ipv6 ncurses readline sqlite ssl (threads) xml -build -examples -hardened -libressl
[ebuild     U  ] dev-python/six-1.10.0 [1.9.0-r1001] PYTHON_TARGETS="python2_7%* python3_4%* -pypy% -pypy3% -python3_3% -python3_5%"                           
[ebuild     U  ] dev-python/packaging-16.0 [15.2] PYTHON_TARGETS="python2_7%* python3_4%* -pypy% -pypy3% -python3_3% -python3_5%"                               
[ebuild     U  ] dev-python/setuptools-19.4 [17.1.1-r1000] PYTHON_TARGETS="python2_7%* python3_4%* -pypy% -pypy3% -python3_3% -python3_5%"                     
[ebuild  N     ] dev-python/pyparsing-2.0.7  USE="-doc -examples" PYTHON_TARGETS="python2_7 python3_4 -pypy -pypy3 -python3_3 -python3_5"                       
[ebuild     U  ] dev-python/certifi-2016.2.28 [14.05.14-r1000] PYTHON_TARGETS="python2_7%* python3_4%* -pypy% -pypy3% -python3_3% -python3_5%"                 
[ebuild     U  ] dev-python/pyxattr-0.5.5 [0.5.3-r1000] PYTHON_TARGETS="python2_7%* python3_4%* -pypy% -python3_3% -python3_5%"                                 
[ebuild     U  ] sys-apps/portage-2.4.1 [2.4.0] PYTHON_TARGETS="python3_4* -python3_3* -python3_5%"                                                             
[blocks B      ] <dev-lang/python-3.3.5-r4:3.3 ("<dev-lang/python-3.3.5-r4:3.3" is blocking app-eselect/eselect-python-20151117-r2)                             
                                                                                                                                                               
!!! Multiple package instances within a single package slot have been pulled                                                                                   
!!! into the dependency graph, resulting in a slot conflict:                                                                                                   
                                                                                                                                                               
dev-python/setuptools:0                                                                                                                                         
                                                                                                                                                               
  (dev-python/setuptools-19.4:0/0::gentoo, ebuild scheduled for merge) pulled in by                                                                             
    dev-python/setuptools[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)
                                                                                                                                                               
    dev-python/setuptools[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)
                                                                                                                                                               
    dev-python/setuptools[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python3_
                                                                                                                                                               
                                                                                                                                                               
  (dev-python/setuptools-17.1.1-r1000:0/0::gentoo, installed) pulled in by                                                                                     
    dev-python/setuptools[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/pip-6.1.1-r1000:0/0::gentoo, installed)                     
                          ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                       
    dev-python/setuptools[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/unittest2-1.0.1-r1000:0/0::gentoo, installed)               
                          ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                       
    dev-python/setuptools[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/pbr-0.11.0-r1000:0/0::gentoo, installed)                     
                          ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                       

   dev-python/setuptools[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/chardet-2.3.0-r1000:0/0::gentoo, installed)                 
                          ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                       
    dev-python/setuptools[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/numpy-1.9.2-r1000:0/0::gentoo, installed)                   
                          ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                       
                                                                                                                                                               
dev-python/packaging:0                                                                                                                                         
                                                                                                                                                               
  (dev-python/packaging-16.0:0/0::gentoo, ebuild scheduled for merge) pulled in by                                                                             
    >=dev-python/packaging-15.3-r1[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_pyt
    ^^                     ^^^^^^^                                                                                                                             
                                                                                                                                                               
  (dev-python/packaging-15.2:0/0::gentoo, installed) pulled in by                                                                                               
    dev-python/packaging[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/setuptools-17.1.1-r1000:0/0::gentoo, installed)               
                         ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                       
    dev-python/packaging[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/pip-6.1.1-r1000:0/0::gentoo, installed)                       
                         ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                       
                                                                                                                                                               
dev-python/six:0                                                                                                                                               
                                                                                                                                                               
  (dev-python/six-1.10.0:0/0::gentoo, ebuild scheduled for merge) pulled in by                                                                                 
    >=dev-python/six-1.10.0[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(
    ^^               ^^^^^^                                                                                                                                     
                                                                                                                                                               
  (dev-python/six-1.9.0-r1001:0/0::gentoo, installed) pulled in by                                                                                             
    dev-python/six[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/unittest2-1.0.1-r1000:0/0::gentoo, installed)                       
                   ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                             
    dev-python/six[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/pip-6.1.1-r1000:0/0::gentoo, installed)                             
                   ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                             
    dev-python/six[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/html5lib-0.99999-r1000:0/0::gentoo, installed)                     
                   ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                             
    dev-python/six[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/urllib3-1.10.2-r1000:0/0::gentoo, installed)                       
                   ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                             
                                                                                                                                                               
sys-apps/portage:0                                                                                                                                             
                                                                                                                                                               
  (sys-apps/portage-2.4.1:0/0::gentoo, ebuild scheduled for merge) pulled in by                                                                                 
    sys-apps/portage (Argument)                                                                                                                                 

  (sys-apps/portage-2.4.0:0/0::gentoo, installed) pulled in by                                                                                                 
    sys-apps/portage[python_targets_pypy(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,-python_single_target_pypy(-
                                                                                                                                                               
                                                                                                                                                               
dev-python/certifi:0                                                                                                                                           
                                                                                                                                                               
  (dev-python/certifi-2016.2.28:0/0::gentoo, ebuild scheduled for merge) pulled in by                                                                           
    >=dev-python/certifi-2015.11.20[python_targets_pypy(-)?,python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_py
    ^^                   ^^^^^^^^^^                                                                                                                             
                                                                                                                                                               
  (dev-python/certifi-14.05.14-r1000:0/0::gentoo, installed) pulled in by                                                                                       
    dev-python/certifi[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/requests-2.6.0-r1000:0/0::gentoo, installed)                   
                       ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^                                                                                         
                                                                                                                                                               
                                                                                                                                                               
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.                                                                                                                           
                                                                                                                                                               
                                                                                                                                                               
 * Error: The above package list contains packages which cannot be                                                                                             
 * installed at the same time on the same system.                                                                                                               
                                                                                                                                                               
  (dev-lang/python-3.3.5-r2:3.3/3.3::gentoo, installed) pulled in by                                                                                           
    >=dev-lang/python-3.3.2-r2:3.3 required by (dev-python/docopt-0.6.2:0/0::gentoo, installed)                                                                 
    dev-lang/python:3.3 required by (dev-python/pbr-0.11.0-r1000:0/0::gentoo, installed)                                                                       
    dev-lang/python:3.3 required by (dev-python/setuptools-17.1.1-r1000:0/0::gentoo, installed)                                                                 
    dev-lang/python:3.3 required by (dev-python/pip-6.1.1-r1000:0/0::gentoo, installed)                                                                         
    dev-lang/python:3.3 required by (sys-apps/file-5.22-r1000:0/0::gentoo, installed)                                                                           
    dev-lang/python:3.3 required by (dev-python/cachecontrol-0.11.2:0/0::gentoo, installed)                                                                     
    dev-lang/python:3.3[xml] required by (dev-libs/libxml2-2.9.2-r1001:2/2::gentoo, installed)                                                                 
    >=dev-lang/python-3.3.2-r2:3.3[ncurses(+)] required by (sys-process/iotop-0.6:0/0::gentoo, installed)                                                       
    dev-lang/python:3.3 required by (dev-libs/boost-1.56.0-r1000:0/1.56.0::gentoo, installed)                                                                   
    >=dev-lang/python-3.3.2-r2:3.3[xml(+)] required by (app-portage/layman-2.2.0-r7:0/0::gentoo, installed)                                                     
    dev-lang/python:3.3 required by (dev-python/packaging-15.2:0/0::gentoo, installed)                                                                         
    >=dev-lang/python-3.3.2-r2:3.3 required by (sys-apps/kmod-19:0/0::gentoo, installed)                                                                       
    dev-lang/python:3.3 required by (virtual/python-argparse-1000:0/0::gentoo, installed)                                                                       
    >=dev-lang/python-3.3.2-r2:3.3[threads] required by (net-libs/rb_libtorrent-1.0.5:0/0::gentoo, installed)                                                   
    dev-lang/python:3.3 required by (dev-python/pyelftools-0.23-r1000:0/0::gentoo, installed)                                                                   
    >=dev-lang/python-3.3.2-r2:3.3[bzip2(+)] required by (sys-apps/portage-2.4.0:0/0::gentoo, installed)                                                       
    dev-lang/python:3.3 required by (dev-python/testtools-1.8.0-r1000:0/0::gentoo, installed)                                                                   
    dev-lang/python:3.3[xml] required by (x11-proto/xcb-proto-1.11-r1000:0/0::gentoo, installed)                                                               
    dev-lang/python:3.3[xml] required by (app-portage/gentoolkit-0.3.0.9-r1003:0/0::gentoo, installed)                                                         
    dev-lang/python:3.3[xml] required by (dev-python/html5lib-0.99999-r1000:0/0::gentoo, installed)                                                             
    dev-lang/python:3.3 required by (dev-python/pygobject-2.28.6-r1000:2/2::gentoo, installed)                                                                 
    dev-lang/python:3.3 required by (dev-python/unittest2-1.0.1-r1000:0/0::gentoo, installed)                                                                   
    dev-lang/python:3.3 required by (dev-python/linecache2-1.0.0-r1000:0/0::gentoo, installed)                                                                 
    dev-lang/python:3.3 required by (dev-python/mimeparse-0.1.4-r1000:0/0::gentoo, installed)                                                                   
    >=dev-lang/python-3.3.2-r2:3.3 required by (dev-python/ndg-httpsclient-0.4.0:0/0::gentoo, installed)                                                       
    dev-lang/python:3.3 required by (sys-boot/boot-update-1.7.3:0/0::gentoo, installed)                                                                         
    dev-lang/python:3.3 required by (dev-python/requests-2.6.0-r1000:0/0::gentoo, installed)                                                                   
    dev-lang/python:3.3 required by (dev-python/chardet-2.3.0-r1000:0/0::gentoo, installed)                                                                     
    dev-lang/python:3.3 required by (dev-python/pycairo-1.10.0-r1000:0/0::gentoo, installed)                                                                   
    >=dev-lang/python-3.3.2-r2:3.3[threads] required by (app-editors/vim-7.4.712:0/0::gentoo, installed)                                                       
    dev-lang/python:3.3 required by (dev-python/traceback2-1.4.0-r1000:0/0::gentoo, installed)                                                                 
    dev-lang/python:3.3 required by (dev-python/pyserial-2.7-r1000:0/0::gentoo, installed)                                                                     
    dev-lang/python:3.3 required by (dev-python/certifi-14.05.14-r1000:0/0::gentoo, installed)                                                                 
    dev-lang/python:3.3 required by (dev-python/namespaces-backports-0:0/0::gentoo, installed)                                                                 
    >=dev-lang/python-3.3.2-r2:3.3 required by (dev-libs/libnl-3.2.26:3/3::gentoo, installed)                                                                   
    dev-lang/python:3.3 required by (dev-python/urllib3-1.10.2-r1000:0/0::gentoo, installed)                                                                   
    >=dev-lang/python-3.3.2-r2:3.3 required by (dev-python/ssl-fetch-0.3:0/0::gentoo, installed)                                                               
    dev-lang/python:3.3 required by (sys-libs/cracklib-2.9.4-r1000:0/0::gentoo, installed)                                                                     
    dev-lang/python:3.3 required by (dev-java/java-config-2.2.0-r1000:2/2::gentoo, installed)                                                                   
    dev-lang/python:3.3 required by (dev-python/lockfile-0.10.2-r1000:0/0::gentoo, installed)                                                                   
    dev-lang/python:3.3 required by (dev-python/numpy-1.9.2-r1000:0/0::gentoo, installed)                                                                       
    dev-lang/python:3.3 required by (dev-python/pyodbc-3.0.7-r1000:0/0::gentoo, installed)                                                                     
    dev-lang/python:3.3 required by (net-print/cups-2.0.2-r2:0/0::gentoo, installed)                                                                           
    >=dev-lang/python-3.3.2-r2:3.3 required by (sys-libs/libcap-ng-0.7.7:0/0::gentoo, installed)                                                               
                                                                                                                                                               
  (app-eselect/eselect-python-20151117-r2:0/0::gentoo, ebuild scheduled for merge) pulled in by                                                                 
    >=app-eselect/eselect-python-20140125-r1 required by (dev-lang/python-3.4.3-r7:3.4/3.4m::gentoo, ebuild scheduled for merge)                               
    >=app-eselect/eselect-python-20091230 required by (dev-lang/python-3.2.5-r1000:3.2/3.2::gentoo, installed)                                                 
    >=app-eselect/eselect-python-20140125-r1 required by (dev-lang/python-2.7.11-r2:2.7/2.7::gentoo, ebuild scheduled for merge)                               
    app-eselect/eselect-python required by (dev-lang/python-3.3.5-r2:3.3/3.3::gentoo, installed)                                                               
                                                                                                                                                               
                                                                                                                                                               
For more information about Blocked Packages, please refer to the following                                                                                     
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):                                                                                         
                                                                                                                                                               
https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages     
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Wed Apr 06, 2016 10:21 pm    Post subject: Reply with quote

Quote:
dev-python/six[python_abis_2.7,python_abis_3.2,python_abis_3.3] required by (dev-python/html5lib-0.99999-r1000:0/0::gentoo, installed)
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^


One of the things that portage is complaining about is that not all packages are keyworded for python 3.4 yet, so they won't accept only python 3.4, it needs one that it is keyworded for (in this case 2.7, 3.2 or 3.3).

Quote:
[blocks B ] <dev-lang/python-3.3.5-r4:3.3 ("<dev-lang/python-3.3.5-r4:3.3" is blocking app-eselect/eselect-python-20151117-r2)

This says it needs at least python-3.3.5-r4 or newer for that version of eselect-python...
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