Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917575 - dev-python/numpy and dev-python/h5py conflicting dependency
Summary: dev-python/numpy and dev-python/h5py conflicting dependency
Status: RESOLVED DUPLICATE of bug 898672
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-18 22:05 UTC by Nikolay
Modified: 2024-02-07 01:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay 2023-11-18 22:05:05 UTC
dev-python/numpy after 1.25.2 has build dependency >=dev-python/cython-3.0.0
dev-python/h5py has build dependency <dev-python/cython-3

But both dev-python/numpy and dev-python/h5py needs to build sci-libs/keras and sci-libs/tensorflow.

The problem appeared when maintainer of dev-python/numpy removed "old" dev-python/numpy-1.25.2 ...

So the solution may be to restore dev-python/numpy-1.25.2
Comment 1 Eli Schwartz 2023-11-19 06:06:45 UTC
If you build them one at a time it should work just fine. Staying on really old versions of packages just to "solve" the issue that some of them are still working to be compatible with current cython versions, seems inadvisable.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-19 08:05:07 UTC
This is really a dupe of bug 898672.

*** This bug has been marked as a duplicate of bug 898672 ***
Comment 3 Nikolay 2023-11-19 13:38:08 UTC
(In reply to Eli Schwartz from comment #1)
> If you build them one at a time it should work just fine. Staying on really
> old versions of packages just to "solve" the issue that some of them are
> still working to be compatible with current cython versions, seems
> inadvisable.

No, it not work

Calculating dependencies... done!
Dependency resolution took 16.38 s (backtrack: 5/20).

[ebuild   R    ] dev-python/numpy-1.26.2
[ebuild     UD ] dev-python/cython-0.29.36 [3.0.5] USE="-emacs%"
[ebuild   R    ] dev-python/h5py-3.10.0

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

dev-python/cython:0

  (dev-python/cython-0.29.36:0/0::gentoo, ebuild scheduled for merge) USE="-debug -doc -emacs -test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" pulled in by
    <dev-python/cython-3[python_targets_python3_10(-)?,python_targets_python3_11(-)?,python_targets_python3_12(-)?] required by (dev-python/h5py-3.10.0:0/0::gentoo, ebuild scheduled for merge) USE="-debug -doc -examples -test" PYTHON_TARGETS="python3_11 -python3_10 -python3_12"
    ^                                                                                                     ^                                                                                                                                                                                                                                                                                                                             

  (dev-python/cython-3.0.5:0/0::gentoo, installed) USE="-debug -doc -test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12" pulled in by
    >=dev-python/cython-3.0.0[python_targets_pypy3(-)?,python_targets_python3_10(-)?,python_targets_python3_11(-)?,python_targets_python3_12(-)?] required by (dev-python/numpy-1.26.2:0/0::gentoo, ebuild scheduled for merge) USE="lapack -debug -test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12"
    ^^                  ^^^^^                                                                                                                                                                                                                                                                                                                                                                                                           


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.
Comment 4 Nikolay 2023-11-19 13:39:15 UTC
This bug and https://bugs.gentoo.org/898672 is defferent bugs.

Bug https://bugs.gentoo.org/898672 is about compile with cython, this bug is about dependency conflict!
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-19 13:41:37 UTC
Yes, but the conflict comes down to "h5py doesn't work with newer cython".
Comment 6 Nikolay 2023-11-19 13:49:24 UTC
(In reply to Sam James from comment #5)
> Yes, but the conflict comes down to "h5py doesn't work with newer cython".

h5py & cypthon is separate story.

This bug is about that old 1.25.2 version of numpy worked with cython<3, but mantainer deleted it too early and we got unresolvable build conflict...
Comment 7 Eli Schwartz 2023-11-19 14:44:31 UTC
If it's been declared by the Gentoo devs that:

- there is nothing to solve here at

- the solution that the Gentoo devs believe is correct is to wait until upstream h5py solves the compatibility

then I don't see much point in re-opening the bug report.

(In reply to Nikolay from comment #3)
> (In reply to Eli Schwartz from comment #1)
> > If you build them one at a time it should work just fine. Staying on really
> > old versions of packages just to "solve" the issue that some of them are
> > still working to be compatible with current cython versions, seems
> > inadvisable.
> 
> No, it not work
> 
> Calculating dependencies... done!
> Dependency resolution took 16.38 s (backtrack: 5/20).
> 
> [ebuild   R    ] dev-python/numpy-1.26.2
> [ebuild     UD ] dev-python/cython-0.29.36 [3.0.5] USE="-emacs%"
> [ebuild   R    ] dev-python/h5py-3.10.0


Since this isn't "build them one at a time" but rather "build both at the same time", you have not done what I suggested and therefore it's inaccurate to say that what I suggested doesn't work.

You might still believe that what I suggested doesn't work, but if so, you'll need to provide a better demonstration of it not working.

*** This bug has been marked as a duplicate of bug 898672 ***