Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687524 - sci-libs/tensorflow-1.14.0_rc0 should depend on >=dev-python/wrapt-1.11.1
Summary: sci-libs/tensorflow-1.14.0_rc0 should depend on >=dev-python/wrapt-1.11.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-06 19:17 UTC by Harris Landgarten
Modified: 2019-06-19 17:51 UTC (History)
0 users

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 Harris Landgarten 2019-06-06 19:17:47 UTC
tensorboard fails with requires: dev-python/wrapt-1.10.11

When I installed that using pip --user it then said:

$ pip install --upgrade wrapt --user
Collecting wrapt
  Downloading https://files.pythonhosted.org/packages/67/b2/0f71ca90b0ade7fad27e3d20327c996c6252a2ffe88f50a95bba7434eda9/wrapt-1.11.1.tar.gz
Building wheels for collected packages: wrapt
  Building wheel for wrapt (setup.py) ... done
  Stored in directory: /home/harrisl/.cache/pip/wheels/89/67/41/63cbf0f6ac0a6156588b9587be4db5565f8c6d8ccef98202fc
Successfully built wrapt
ERROR: tensorflow 1.14.0rc0 requires tf-estimator-nightly<1.14.0.dev2019042302,>=1.14.0.dev2019042301, which is not installed.
ERROR: tensorflow 1.14.0rc0 has requirement google_pasta>=0.1.6, but you'll have google-pasta 0.1.1 which is incompatible.

I installed google_pasta-0,1,7 but the tf-estimator-nightly dependency does not exist on PYPI
Comment 1 Arfrever Frehtes Taifersar Arahesis 2019-06-06 22:51:46 UTC
(In reply to Harris Landgarten from comment #0)
> tensorboard fails with requires: dev-python/wrapt-1.10.11

Which version of sci-visualization/tensorboard?
How it fails exactly?
Show full error message in situation when nothing is installed using pip.


Why were you installing wrapt using pip when it exists in Gentoo?
sci-libs/tensorflow-1.14.0_rc0 already has unconditional dependency on dev-python/wrapt...

(In reply to Harris Landgarten from comment #0)
> ERROR: tensorflow 1.14.0rc0 requires
> tf-estimator-nightly<1.14.0.dev2019042302,>=1.14.0.dev2019042301, which is
> not installed.

Is sci-libs/tensorflow-estimator installed? If yes, which version?
Comment 2 Harris Landgarten 2019-06-07 12:30:30 UTC
I pip uninstalled the --user packages.

This is what I get when I run tensorboard after installing tensorflow-1.14_rc0 and tensorflow-estimator-1.14_rc0

$ tensorboard --logdir="./logs"
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (wrapt 1.10.11 (/usr/lib64/python3.6/site-packages), Requirement.parse('wrapt>=1.11.1'), {'tensorflow'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/tensorboard", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3241, in <module>
    @_call_aside
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3225, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3254, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'wrapt>=1.11.1' distribution was not found and is required by tensorflow
Comment 3 Arfrever Frehtes Taifersar Arahesis 2019-06-07 19:31:45 UTC
Possible fix:
([${PYTHON_USEDEP}] would be needed with USE="python")

--- sci-libs/tensorflow/tensorflow-1.14.0_rc0.ebuild
+++ sci-libs/tensorflow/tensorflow-1.14.0_rc0.ebuild
@@ -65,7 +65,7 @@ RDEPEND="
        >=net-libs/grpc-1.16.0
        net-misc/curl
        sys-libs/zlib
-       dev-python/wrapt
+       >=dev-python/wrapt-1.11.1
        >=sys-apps/hwloc-2
        cuda? (
                >=dev-util/nvidia-cuda-toolkit-9.1[profiler]
@@ -84,6 +84,7 @@ RDEPEND="
                dev-python/six[${PYTHON_USEDEP}]
                dev-python/termcolor[${PYTHON_USEDEP}]
                dev-python/grpcio[${PYTHON_USEDEP}]
+               >=dev-python/wrapt-1.11.1[${PYTHON_USEDEP}]
                >=net-libs/google-cloud-cpp-0.9.0
                >=sci-libs/keras-applications-1.0.6[${PYTHON_USEDEP}]
                >=sci-libs/keras-preprocessing-1.0.5[${PYTHON_USEDEP}]
Comment 4 Arfrever Frehtes Taifersar Arahesis 2019-06-19 16:14:04 UTC
Dependency on >=dev-python/wrapt-1.11.1[${PYTHON_USEDEP}] was added in:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d23ef3049aa6719ec03b3bcadff19d4772d28ee