You are not logged in.

#1 2017-10-27 00:39:27

mynameiscow
Member
Registered: 2014-09-29
Posts: 2

[Solved] tensorboard: A python package with a python2 dependency

I'm trying to jump into tensorflow on my Arch system, but I'm having some problems running tensorboard.  I've installed tensorflow, tensorboard, and python-tensorflow from pacman (not pip or some other package manager).  Has anyone else seen the following error:

$ 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 3049, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3033, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3062, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 658, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 972, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 858, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'futures>=3.1.1' distribution was not found and is required by tensorflow-tensorboard

tensorboard is a python3 package, but futures is a python2 package.  The pypi page for tensorboard lists futures as a dependency without mention of python version.  So, it could be an issue further upstream.

Short of editing the package or switching package managers, I'm not sure what is the best solution.  Any advice would be helpful.

Thanks,
C

Last edited by mynameiscow (2017-10-28 00:09:21)

Offline

#2 2017-10-27 00:44:37

headkase
Member
Registered: 2011-12-06
Posts: 1,994

Re: [Solved] tensorboard: A python package with a python2 dependency

If you don't want to muck up your system while trying various solutions then look into Python Virtual Environments.  Those allow you to royally screw things up AND get rid of the screw up in a trivial way.  Virtual Environments are isolated in your home folder so they don't muck with the rest of your file-system.

https://wiki.archlinux.org/index.php/Py … nvironment

Offline

#3 2017-10-27 01:49:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] tensorboard: A python package with a python2 dependency

Offline

#4 2017-10-27 02:15:09

jart
Member
From: Bay Area, CA, USA
Registered: 2017-10-27
Posts: 1
Website

Re: [Solved] tensorboard: A python package with a python2 dependency

Hi I work on TensorBoard. We're in the process of seeing what we can do to improve this on our end. But it looks like the Arch community already has a sed fix out.

Offline

#5 2017-10-28 00:06:59

mynameiscow
Member
Registered: 2014-09-29
Posts: 2

Re: [Solved] tensorboard: A python package with a python2 dependency

Yeah, it's included in the latest pacman package.  I have it working now.

Thanks everyone,
C

Offline

#6 2017-10-29 02:28:49

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [Solved] tensorboard: A python package with a python2 dependency

And this pull request of mine has been merged: https://github.com/agronholm/pythonfutures/pull/67

So now this will *have* to be fixed upstream by all projects. big_smile


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB