FS#60585 - [tensorboard][protobuf] Tensorboard 1.12 is not compatible with Tensorflow 1.11

Attached to Project: Community Packages
Opened by André (aandre) - Thursday, 25 October 2018, 18:24 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 01 January 2019, 18:58 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Lukas Fleischer (lfleischer)
Konstantin Gizdov (kgizdov)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

The update to version 1.12 breaks tensorboard. I get the following error, when trying to run tensorboard

$ tensorboard
Traceback (most recent call last):
File "/usr/bin/tensorboard", line 11, in <module>
load_entry_point('tensorboard==1.12.0', 'console_scripts', 'tensorboard')()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 484, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2714, in load_entry_point
return ep.load()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2332, in load
return self.resolve()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2338, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.7/site-packages/tensorboard/main.py", line 45, in <module>
from tensorboard import default
File "/usr/lib/python3.7/site-packages/tensorboard/default.py", line 34, in <module>
import tensorflow as tf
File "/usr/lib/python3.7/site-packages/tensorflow/__init__.py", line 22, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/usr/lib/python3.7/site-packages/tensorflow/python/__init__.py", line 52, in <module>
from tensorflow.core.framework.graph_pb2 import *
File "/usr/lib/python3.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 6, in <module>
from google.protobuf import descriptor as _descriptor
File "/usr/lib/python3.7/site-packages/google/protobuf/descriptor.py", line 47, in <module>
from google.protobuf.pyext import _message
ImportError: cannot import name '_message' from 'google.protobuf.pyext' (/usr/lib/python3.7/site-packages/google/protobuf/pyext/__init__.py)


See also https://github.com/tensorflow/tensorboard/releases/tag/1.12.0, where Tensorflow 1.12 is mentioned.

Rollback to Tensorboard 1.11 fixes the issue.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Tuesday, 01 January 2019, 18:58 GMT
Reason for closing:  Fixed
Comment by bob (getzze) - Monday, 12 November 2018, 11:51 GMT
The problem is with python-protobuf that does not include the cpp implementation:
https://bugs.archlinux.org/task/54959
Comment by Konstantin Gizdov (kgizdov) - Tuesday, 13 November 2018, 09:55 GMT
Relevant - https://github.com/tensorflow/tensorboard/issues/1566

I think we have to make sure cpp implementation is built and probably also apply the same patches we apply in tensorflow for protobuf.
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 19 November 2018, 20:38 GMT
Konstantin, can you try to fix this?
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 26 December 2018, 10:59 GMT
Hey Lukas, I'd like to take a stab at this by updating protobuf and building it with CPP support.
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 26 December 2018, 12:53 GMT
Ok, rel -2 should work. Please test.

Loading...