[英]Tensorboard TypeError: __init__() got an unexpected keyword argument 'serialized_options'
I am using tensorflow version 1.3.0 and tensorboard version 1.10.0 I just updated my tensorboard version and after the update when I am trying to start tensorboard i got the following error message;我正在使用 tensorflow 版本 1.3.0 和 tensorboard 版本 1.10.0 我刚刚更新了我的 tensorboard 版本,更新后当我尝试启动 tensorboard 时,我收到以下错误消息;
Traceback (most recent call last):
File "c:\users\sztaki_user\anaconda3\envs\tensorflow\lib\runpy.py", line 193,
in _run_module_as_main
"__main__", mod_spec)
File "c:\users\sztaki_user\anaconda3\envs\tensorflow\lib\runpy.py", line 85, i
n _run_code
exec(code, run_globals)
File "C:\Users\Sztaki_user\Anaconda3\envs\tensorflow\Scripts\tensorboard.exe\_
_main__.py", line 5, in <module>
File "c:\users\sztaki_user\anaconda3\envs\tensorflow\lib\site-packages\tensorb
oard\main.py", line 40, in <module>
from tensorboard import default
File "c:\users\sztaki_user\anaconda3\envs\tensorflow\lib\site-packages\tensorb
oard\default.py", line 37, in <module>
from tensorboard.plugins.audio import audio_plugin
File "c:\users\sztaki_user\anaconda3\envs\tensorflow\lib\site-packages\tensorb
oard\plugins\audio\audio_plugin.py", line 30, in <module>
from tensorboard.plugins.audio import metadata
File "c:\users\sztaki_user\anaconda3\envs\tensorflow\lib\site-packages\tensorb
oard\plugins\audio\metadata.py", line 22, in <module>
from tensorboard.plugins.audio import plugin_data_pb2
File "c:\users\sztaki_user\anaconda3\envs\tensorflow\lib\site-packages\tensorb
oard\plugins\audio\plugin_data_pb2.py", line 22, in <module>
serialized_pb=_b('\n+tensorboard/plugins/audio/plugin_data.proto\x12\x0btens
orboard\"}\n\x0f\x41udioPluginData\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12\x3
7\n\x08\x65ncoding\x18\x02 \x01(\x0e\x32%.tensorboard.AudioPluginData.Encoding\"
\n\x08\x45ncoding\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03WAV\x10\x0b\x62\x06
proto3')
TypeError: __init__() got an unexpected keyword argument 'serialized_options'
I tried to change the tensorboards log directory with the following command: tensorboard --logdir= the log directory我尝试使用以下命令更改 tensorboards 日志目录: tensorboard --logdir=日志目录
Do you have any ideas how to fix this problem?你有什么想法如何解决这个问题吗?
Thanks.谢谢。
FIX:使固定:
I just updated my TensorBoard to version 1.9.0 and now its working!我刚刚将 TensorBoard 更新到 1.9.0 版,现在可以正常工作了!
tensorflow is not installed properly (missing protobuf version issue) tensorflow 安装不正确(缺少 protobuf 版本问题)
follow the below steps,按照以下步骤,
sudo pip install tensorflow
sudo apt update && sudo apt upgrade
then finally然后最后
sudo pip install tensorflow
您可以尝试执行此命令
pip install -U protobuf
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.