Closed elliotwaite closed 7 years ago
The same bug is probably the cause of a second exception.
I used fix proposed byb @elliotwaite and the first bazel command bazel run //greeter_plugin:greeter_demo
executed without further errors.
The second command bazel run //greeter_tensorboard -- --logdir=/tmp/greeter_demo
caused a another error probably due to the same bug:
Exception in thread Reloader:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/private/var/tmp/_bazel_root/73e68435275d047f49371c8b74f92018/execroot/io_github_tensorflow_tensorboard_plugin_example/bazel-out/darwin_x86_64-fastbuild/bin/greeter_tensorboard/greeter_tensorboard.runfiles/org_tensorflow_tensorboard/tensorboard/backend/application.py", line 316, in _reload_forever
reload_multiplexer(multiplexer, path_to_run)
File "/private/var/tmp/_bazel_root/73e68435275d047f49371c8b74f92018/execroot/io_github_tensorflow_tensorboard_plugin_example/bazel-out/darwin_x86_64-fastbuild/bin/greeter_tensorboard/greeter_tensorboard.runfiles/org_tensorflow_tensorboard/tensorboard/backend/application.py", line 290, in reload_multiplexer
multiplexer.Reload()
File "/private/var/tmp/_bazel_root/73e68435275d047f49371c8b74f92018/execroot/io_github_tensorflow_tensorboard_plugin_example/bazel-out/darwin_x86_64-fastbuild/bin/greeter_tensorboard/greeter_tensorboard.runfiles/org_tensorflow_tensorboard/tensorboard/backend/event_processing/event_multiplexer.py", line 189, in Reload
accumulator.Reload()
File "/private/var/tmp/_bazel_root/73e68435275d047f49371c8b74f92018/execroot/io_github_tensorflow_tensorboard_plugin_example/bazel-out/darwin_x86_64-fastbuild/bin/greeter_tensorboard/greeter_tensorboard.runfiles/org_tensorflow_tensorboard/tensorboard/backend/event_processing/event_accumulator.py", line 239, in Reload
self._ProcessEvent(event)
File "/private/var/tmp/_bazel_root/73e68435275d047f49371c8b74f92018/execroot/io_github_tensorflow_tensorboard_plugin_example/bazel-out/darwin_x86_64-fastbuild/bin/greeter_tensorboard/greeter_tensorboard.runfiles/org_tensorflow_tensorboard/tensorboard/backend/event_processing/event_accumulator.py", line 372, in _ProcessEvent
for plugin_data in value.metadata.plugin_data:
TypeError: 'PluginData' object is not iterable'
Comparing the code in 'event_accumulator.py' with the version in the tensorboard repository, I think it should be updated. I don't know bazel enough to include a newer version of the tensorboard package.
@axelv, #9 fixes this. Thank you for noting!
Received the following error when running: bazel run //greeter_plugin:greeter_demo
Proposed fix here: https://github.com/tensorflow/tensorboard-plugin-example/pull/6