FS#56041 - [tensorboard] Missing Dependency

Attached to Project: Community Packages
Opened by Stefano (senden9) - Thursday, 19 October 2017, 06:30 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 26 October 2017, 20:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Missing dependency for tensorboard. futures>=3.1.1 is required.

Additional info:
* package version(s)
$ pacman -Q tensorboard tensorflow
tensorboard 0.4.0rc1-1
tensorflow 1.4.0rc0-3

Steps to reproduce:

$ whereis tensorboard
tensorboard: /usr/bin/tensorboard

$ /usr/bin/tensorboard
Traceback (most recent call last):
File "/usr/bin/tensorboard", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3142, in <module>
@_call_aside
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3126, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3155, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 664, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 981, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 867, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'futures>=3.1.1' distribution was not found and is required by tensorflow-tensorboard
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Thursday, 26 October 2017, 20:16 GMT
Reason for closing:  Fixed
Comment by Doug Newgard (Scimmia) - Sunday, 22 October 2017, 16:16 GMT
Not really a missing dep, that entry should not be there for python 3 AFAIK.
Comment by Jonas Natzer (Jonasss) - Tuesday, 24 October 2017, 09:41 GMT
I get the same error message. Is there any way to fix this?
Comment by Stefano (senden9) - Tuesday, 24 October 2017, 13:18 GMT
@Jonasss: I did"t dig deeper into that problem. I just installed tensorflow + tensorboard via virtualenv & pip. There I don't have such a problem.
Comment by Stefano (senden9) - Tuesday, 24 October 2017, 13:48 GMT
Quick fix without remove the root of this issue:
Remove "futures>=3.1.1" from the file /usr/lib/python3.6/site-packages/tensorflow_tensorboard-0.4.0rc1-py3.6.egg-info/requires.txt. I don't know why this dependency is listed here but removing it helps :)

Edit: Maybe a upstream bug: https://github.com/tensorflow/tensorboard/issues/650
Edit 2: Maybe we can include this patch in the PACBUILD-file until this bug is fixed upstream? https://github.com/tensorflow/tensorboard/pull/667/files
Comment by Stefano (senden9) - Wednesday, 25 October 2017, 08:53 GMT
Modified PKGBUILD for tensorboard that include a sed workaround: https://gist.github.com/senden9/efd3cd2d55806c1a680f8b9e4c02a088
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 26 October 2017, 20:01 GMT
Thanks Stefano, using your sed line.

Loading...