Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678920 - Circular dependency between tensorflow <-> tensorflow-estimator
Summary: Circular dependency between tensorflow <-> tensorflow-estimator
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
: 679714 681596 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-02-27 12:36 UTC by Mathy Vanvoorden
Modified: 2019-04-05 15:41 UTC (History)
4 users (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 Mathy Vanvoorden 2019-02-27 12:36:34 UTC
With the version 1.13* ebuilds there is no easy way to get tensorflow installed with the python USE flag enabled as tensorflow depends on tensorflow-estimator and vice versa:

[nomerge       ] sci-libs/tensorflow-1.13.0_rc2::gentoo  USE="cuda python* -mpi" CPU_FLAGS_X86="sse sse2 sse3 sse4_1 -avx -avx2 -fma3 -fma4 -sse4_2" PYTHON_TARGETS="python2_7 python3_6 -python3_5"
[ebuild  N    ~]  sci-libs/tensorflow-estimator-1.13.0_rc0::gentoo  PYTHON_TARGETS="python2_7 python3_6 -python3_5" 0 KiB
[ebuild   R   ~]   sci-libs/tensorflow-1.13.0_rc2::gentoo  USE="cuda python* -mpi" CPU_FLAGS_X86="sse sse2 sse3 sse4_1 -avx -avx2 -fma3 -fma4 -sse4_2" PYTHON_TARGETS="python2_7 python3_6 -python3_5" 0 KiB

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

 * Error: circular dependencies:

(sci-libs/tensorflow-estimator-1.13.0_rc0:0/0::gentoo, ebuild scheduled for merge) depends on
 (sci-libs/tensorflow-1.13.0_rc2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  (sci-libs/tensorflow-estimator-1.13.0_rc0:0/0::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.

I tried by first installing tensorflow without python which (quite obviously) didn't work, I tried with --nodeps which also didn't work because of (again quite obviously) missing dependencies.

I only got it to install by manually installing dependencies, installing tensorflow with --nodeps followed by installing the missing dependencies. The fact that this actually worked makes me suspect that tensorflow-estimator shouldn't be in DEPEND at all, just in RDEPEND maybe? I might be wrong though and I don't know if it would resolve the circular dependency

For those who are bitten by this and want to quickly resolve it:

emerge -1a flatbuffers absl-py astor gast numpy google-pasta protobuf-python six dev-python/termcolor grpcio google-cloud-cpp keras-applications keras-preprocessing python-enum34

emerge --nodeps -a tensorflow

emerge -uaD tensorflow
Comment 1 Michael Moon 2019-03-28 12:25:27 UTC
This affects me too.

I've made a tensorflow ebuild in a local overlay with dependency on tensorflow-estimator removed, will see what happens when I get the rest of the problems with this dep tree sorted out
Comment 2 Jason Zaman gentoo-dev 2019-03-30 14:17:41 UTC
*** Bug 679714 has been marked as a duplicate of this bug. ***
Comment 3 Jason Zaman gentoo-dev 2019-03-30 14:19:49 UTC
Yeah looks like this needs to be in PDEPEND instead. Fixed in tensorflow-1.13.1 and tensorflow-estimator-1.13.0
Comment 4 Jason Zaman gentoo-dev 2019-03-30 14:20:30 UTC
*** Bug 681596 has been marked as a duplicate of this bug. ***
Comment 5 Larry the Git Cow gentoo-dev 2019-04-05 15:41:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61d7366d7af761835634c5f3cc9c4c89dd74c171

commit 61d7366d7af761835634c5f3cc9c4c89dd74c171
Author:     Jason Zaman <perfinion@gentoo.org>
AuthorDate: 2019-03-30 14:21:37 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2019-04-05 15:38:29 +0000

    sci-libs/tensorflow: bump 1.13.1
    
    Closes: https://bugs.gentoo.org/682000
    Closes: https://bugs.gentoo.org/678920
    Signed-off-by: Jason Zaman <perfinion@gentoo.org>
    Package-Manager: Portage-2.3.62, Repoman-2.3.11

 sci-libs/tensorflow/Manifest                 |   1 +
 sci-libs/tensorflow/metadata.xml             |   1 -
 sci-libs/tensorflow/tensorflow-1.13.1.ebuild | 326 +++++++++++++++++++++++++++
 3 files changed, 327 insertions(+), 1 deletion(-)