I am trying to user tensorboard to visualize my model logs trained and saved by Python. Once I run "%tensorboard --logdir logs_1602_epoch2_batch8_for_tens1" on Jupyter notebook, I get the error:
ERROR: Failed to launch TensorBoard (exited with 1).
Contents of stderr:
Traceback (most recent call last):
File "c:\users\ozen002\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\ozen002\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\ozen002\Anaconda3\Scripts\tensorboard.exe\__main__.py", line 4, in <module>
File "c:\users\ozen002\anaconda3\lib\site-packages\tensorboard\main.py", line 43, in <module>
from tensorboard import default
File "c:\users\ozen002\anaconda3\lib\site-packages\tensorboard\default.py", line 38, in <module>
from tensorboard.plugins.audio import audio_plugin
File "c:\users\ozen002\anaconda3\lib\site-packages\tensorboard\plugins\audio\audio_plugin.py", line 29, in <module>
from tensorboard.plugins.audio import metadata
File "c:\users\ozen002\anaconda3\lib\site-packages\tensorboard\plugins\audio\metadata.py", line 21, in <module>
from tensorboard.compat.proto import summary_pb2
File "c:\users\ozen002\anaconda3\lib\site-packages\tensorboard\compat\proto\summary_pb2.py", line 17, in <module>
from tensorboard.compat.proto import tensor_pb2 as tensorboard_dot_compat_dot_proto_dot_tensor__pb2
File "c:\users\ozen002\anaconda3\lib\site-packages\tensorboard\compat\proto\tensor_pb2.py", line 16, in <module>
from tensorboard.compat.proto import resource_handle_pb2 as tensorboard_dot_compat_dot_proto_dot_resource__handle__pb2
File "c:\users\ozen002\anaconda3\lib\site-packages\tensorboard\compat\proto\resource_handle_pb2.py", line 16, in <module>
from tensorboard.compat.proto import tensor_shape_pb2 as tensorboard_dot_compat_dot_proto_dot_tensor__shape__pb2
File "c:\users\ozen002\anaconda3\lib\site-packages\tensorboard\compat\proto\tensor_shape_pb2.py", line 36, in <module>
_descriptor.FieldDescriptor(
File "c:\users\ozen002\anaconda3\lib\site-packages\google\protobuf\descriptor.py", line 560, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information:
https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updatesI had installed tensorboard with command "pip install tensorboard". Its version is 2.12.0.
I already downgraded protobuf to 3.20.1 and set the aforementioned environment variable to python. But the error persists. I would appreciate any help or suggestion.