tensorflow / tensorboard-plugin-example

Apache License 2.0
135 stars 59 forks source link

type error out of the box #30

Open silky opened 6 years ago

silky commented 6 years ago

when following the steps from the readme, after running the example i get:

E0521 15:46:04.173336 Thread-1 _internal.py:87] Error on request:
Traceback (most recent call last):
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_pocoo_werkzeug/werkzeug/serving.py", line 193, in run_wsgi
    execute(self.server.app)
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_pocoo_werkzeug/werkzeug/serving.py", line 181, in execute
    application_iter = app(environ, start_response)
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_tensorflow_tensorboard/tensorboard/backend/application.py", line 271, in __call__
    return self.data_applications[clean_path](environ, start_response)
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_pocoo_werkzeug/werkzeug/wrappers.py", line 291, in application
    return f(*args[:-2] + (request,))(*args[-2:])
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_tensorflow_tensorboard/tensorboard/plugins/core/core_plugin.py", line 136, in _serve_runs
    for run_name in run_names
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_tensorflow_tensorboard/tensorboard/plugins/core/core_plugin.py", line 136, in <dictcomp>
    for run_name in run_names
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_tensorflow_tensorboard/tensorboard/plugins/core/core_plugin.py", line 124, in get_first_event_timestamp
    return self._multiplexer.FirstEventTimestamp(run_name)
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_tensorflow_tensorboard/tensorboard/backend/event_processing/plugin_event_multiplexer.py", line 259, in FirstEventTimestamp
    return accumulator.FirstEventTimestamp()
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_tensorflow_tensorboard/tensorboard/backend/event_processing/plugin_event_accumulator.py", line 235, in FirstEventTimestamp
    event = next(self._generator.Load())
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_tensorflow_tensorboard/tensorboard/backend/event_processing/directory_watcher.py", line 88, in Load
    for event in self._LoadInternal():
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_tensorflow_tensorboard/tensorboard/backend/event_processing/directory_watcher.py", line 112, in _LoadInternal
    for event in self._loader.Load():
  File "/home/noon/.cache/bazel/_bazel_noon/eb88fb0202132c299042995127b729f9/external/org_tensorflow_tensorboard/tensorboard/backend/event_processing/event_file_loader.py", line 53, in Load
    self._reader.GetNext(status)
TypeError: GetNext() takes 1 positional argument but 2 were given

i'm using the tf-nightly package for tensorflow, as recommended by the tensorboard repo itself:

> pip freeze
absl-py==0.2.1
astor==0.6.2
certifi==2016.2.28
gast==0.2.0
grpcio==1.12.0
Markdown==2.6.11
numpy==1.14.3
protobuf==3.5.2.post1
six==1.11.0
tb-nightly==1.9.0a20180520
termcolor==1.1.0
tf-nightly==1.9.0.dev20180520
Werkzeug==0.14.1
nfelt commented 6 years ago

This is fixed in TensorBoard 1.8.0, see tensorflow/tensorboard#1111, so we just need to update the WORKSPACE dep on TensorBoard to 1.8.0.

johndpope commented 6 years ago

I'm still seeing this. Using latest bazel + 1.8.0

I force the install of tensorflow to 1.8.0 - but can't shake the workspace dependency.

screen shot 2018-07-05 at 12 34 38 pm

tried this to no avail.

For some reason - it comes up with TensorBoard 1.6.0a0. TensorBoard 1.6.0a0 at http://MAC-MBP161437.local:6006 (Press CTRL+C to quit)


http_archive(
    name = "org_tensorflow_tensorboard",
    sha256 = "a943c0242a07da4d445135ffc9a7c7cb987d9bd948ae733695bc16095dceec20",
    strip_prefix = "tensorboard-2fdb2199553729a6c5b42b7eb0305a101b454add",
    urls = ["https://github.com/tensorflow/tensorboard/archive/2fdb2199553729a6c5b42b7eb0305a101b454add.zip"],
)
johndpope commented 6 years ago

digging deeper - solved this by dropping in the source code for tensorboard-1.8.0 into directory.

then switching the line in WORKSPACE file DELETE THIS _http_archive( name = "org_tensorflowtensorboard", sha256 = "....." )

to use the antipattern ADD THIS local_repository( name = "org_tensorflow_tensorboard", path = "tensorboard-1.8.0" )

johndpope commented 6 years ago

screen shot 2018-07-05 at 1 26 09 pm screen shot 2018-07-05 at 1 22 49 pm