Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
python conflict mysteries??? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Thu Jul 02, 2020 1:43 am    Post subject: python conflict mysteries??? [SOLVED] Reply with quote

What am I missing here? I have no python entries in make.conf. or any other /etc/portage file. My current pycairo is pycairo-1.18.2

Code:
WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-python/pycairo:0

  (dev-python/pycairo-1.19.1:0/0::gentoo, ebuild scheduled for merge) USE="-doc -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python3_7 -pypy3 -python3_6 -python3_8 -python3_9" conflicts with
    >=dev-python/pycairo-1.11.1[python_targets_python2_7(-),python_targets_python3_7(-),-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(-)] required by (dev-python/pygobject-3.34.0:3/3::gentoo, installed) USE="cairo -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_7 -python3_6 -python3_8 -python3_9"
                                                                                                                                                                                                                                                                       

dev-python/pygments:0

  (dev-python/pygments-2.6.1:0/0::gentoo, ebuild scheduled for merge) USE="-doc -test" ABI_X86="(64)" PYTHON_TARGETS="python3_7 -pypy3 -python3_6 -python3_8 -python3_9" conflicts with
    dev-python/pygments[python_targets_python2_7(-),python_targets_python3_7(-),-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(-)] required by (dev-python/docutils-0.16:0/0::gentoo, installed) USE="" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_7 -pypy3 -python3_6 -python3_8 -python3_9"

My current eselect list, which to me looks suspect:
Code:
gentoo-audio ~ # eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6 (uninstalled)
  [3]   python3.9 (fallback)
  [4]   python3.8 (fallback)
  [5]   python2.7 (fallback)

And:
Code:
gentoo-audio ~ # revdep-rebuild
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Collecting system binaries and libraries
 * Checking dynamic linking consistency

Your system is consistent


More weird equery results that I have no idea how or why it looks like this.
Code:
gentoo-audio ~ # equery list python
 * Searching for python ...
[IP-] [  ] dev-lang/python-2.7.18:2.7
[IP-] [  ] dev-lang/python-3.7.8:3.7/3.7m
[IP-] [  ] dev-lang/python-3.8.3:3.8
[IP-] [  ] dev-lang/python-3.9.0_beta3:3.9
gentoo-audio ~ #

_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11


Last edited by wrc1944 on Tue Jul 07, 2020 9:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu Jul 02, 2020 3:58 am    Post subject: Reply with quote

Unset python_targets_python2_7 for pygobject and docutils in package.use and try again.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Thu Jul 02, 2020 4:22 am    Post subject: Reply with quote

do

eselect python cleanup

to remove stale entries
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Sat Jul 04, 2020 3:32 am    Post subject: Reply with quote

Thanks guys! Putting these lines in package.use cleaned it up:
Code:
dev-python/docutils -python_targets_python2_7
dev-python/pygobject -python_targets_python2_7
But I still get this on a world update. Can I unset 2_7 on pycairo as done with the other 2 packages, or is it still not moved to 3.7?

Code:
Total: 1 package (1 upgrade), Size of downloads: 0 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-python/pycairo:0

  (dev-python/pycairo-1.19.1:0/0::gentoo, ebuild scheduled for merge) USE="-doc -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python3_7 -pypy3 -python3_6 -python3_8 -python3_9" conflicts with
    >=dev-python/pycairo-1.0.2[python_targets_python2_7(-),-python_single_target_python2_7(-)] required by (dev-python/pygtk-2.24.0-r5:2/2::gentoo, installed) USE="-doc -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python2_7"

_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Sat Jul 04, 2020 3:55 am    Post subject: Reply with quote

I tried adding
Code:
dev-python/pycairo -python_targets_python2_7
to package.use, however still seems to be a problem.
Code:
amd64 ~ # emerge pycairo -pv

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

Calculating dependencies... done!
[ebuild     U  ] dev-python/pycairo-1.19.1::gentoo [1.18.2::gentoo] USE="-doc -examples -test" PYTHON_TARGETS="python3_7 -pypy3% -python3_6 -python3_8 -python3_9 (-python2_7%*)" 201 KiB

Total: 1 package (1 upgrade), Size of downloads: 201 KiB

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

dev-python/pycairo:0

  (dev-python/pycairo-1.19.1:0/0::gentoo, ebuild scheduled for merge) USE="-doc -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python3_7 -pypy3 -python3_6 -python3_8 -python3_9" pulled in by
    dev-python/pycairo (Argument)

  (dev-python/pycairo-1.18.2:0/0::gentoo, installed) USE="-doc -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_7 -python3_6 -python3_8 -python3_9" pulled in by
    >=dev-python/pycairo-1.0.2[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] required by (dev-python/pygtk-2.24.0-r5:2/2::gentoo, installed) USE="-doc -examples -test" ABI_X86="(64)" PYTHON_TARGETS="python2_7"
                                                                                                                                                                                                                                                                                                                                                   


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.
Nothing for pycairo in bugzilla related to this. --backtrack=50 yielded nothing better, and eselect python cleanup did nothing either, with no output.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Sat Jul 04, 2020 5:27 am    Post subject: Reply with quote

dev-python/pygtk require python2_7 target and also pycairo with same settings, so you can't install new version dev-python/pycairo-1.19.1 because remove python2_7 target.
pygtk will be removed in nearly future because depend on python2_7.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Sat Jul 04, 2020 5:24 pm    Post subject: Reply with quote

fedeliallalinea,
Thanks much.

Hmmmm.... So, on this system equery is saying if I could do without lxterminal and xfce4-terminal I could then remove pygtk and vte with no problems, and update to pycairo-1.19.1 safely.

Correct?

Code:
amd64 ~ # equery d pygtk
 * These packages depend on pygtk:
x11-libs/vte-0.28.2-r208 (dev-python/pygtk:2[python_targets_python2_7(-)?,-python_single_target_python2_7(-)])
amd64 ~ #
amd64 ~ # equery d vte
 * These packages depend on vte:
lxde-base/lxterminal-0.3.2 (!gtk3 ? x11-libs/vte:0)
                           (gtk3 ? x11-libs/vte:2.91)
x11-terms/xfce4-terminal-0.8.9.2 (>=x11-libs/vte-0.38:2.91)
amd64 ~ #

_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

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

If you compile lxde-base/lxterminal with gtk3 use flag you can remove vte:0 that is only version require pygtk (vte:2.91 not require pygtk).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Sat Jul 04, 2020 8:03 pm    Post subject: Reply with quote

fedeliallalinea,
Thanks much! As usual, I always learn a lot from your great advice.
Set lxde-base/lxterminal gtk3 in package.use, and did the following:

Code:
amd64 ~ # emerge -C vte pygtk
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

 x11-libs/vte
    selected: 0.28.2-r208 0.58.3
   protected: none
     omitted: none

 dev-python/pygtk
    selected: 2.24.0-r5
   protected: none
     omitted: none

All selected packages: =x11-libs/vte-0.28.2-r208 =dev-python/pygtk-2.24.0-r5 =x11-libs/vte-0.58.3

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging (1 of 3) x11-libs/vte-0.28.2-r208...
>>> Unmerging (2 of 3) x11-libs/vte-0.58.3...
>>> needed   sym /usr/lib64/libvte-2.91.so.0
>>> needed   obj /usr/lib64/libvte-2.91.so.0.5800.3
>>> Unmerging (3 of 3) dev-python/pygtk-2.24.0-r5...

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: x11-libs/vte-0.58.3
 *  - /usr/lib64/libvte-2.91.so.0
 *  - /usr/lib64/libvte-2.91.so.0.5800.3
 *      used by /usr/bin/lxterminal (lxde-base/lxterminal-0.3.2)
 *      used by /usr/bin/xfce4-terminal (x11-terms/xfce4-terminal-0.8.9.2)
Use emerge @preserved-rebuild to rebuild packages using these libraries

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

amd64 ~ # emerge @preserved-rebuild -pv

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

Calculating dependencies... done!
[ebuild  N     ] x11-libs/vte-0.58.3:2.91::gentoo  USE="crypt introspection vala -debug -gtk-doc -vanilla" 0 KiB
[ebuild   R    ] lxde-base/lxterminal-0.3.2::gentoo  USE="gtk3" 0 KiB
[ebuild   R    ] x11-terms/xfce4-terminal-0.8.9.2::gentoo  USE="-utempter" 0 KiB

Total: 3 packages (1 new, 2 reinstalls), Size of downloads: 0 KiB


All went well, no problems. Then pycairo updated normally to 1.19.1.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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