Tensorboard TypeError:__init__() 得到了一个意外的关键字参数“serialized_options"
我使用的是 tensorflow 版本 1.3.0 和 tensorboard 版本 1.10.0 我刚刚更新了我的 tensorboard 版本,更新后当我尝试启动 tensorboard 时,我收到以下错误消息;
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;
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'
我尝试使用以下命令更改 tensorboards 日志目录:tensorboard --logdir=日志目录
I tried to change the tensorboards log directory with the following command: tensorboard --logdir=the log directory
您对如何解决此问题有任何想法吗?
Do you have any ideas how to fix this problem?
谢谢.
修正:
我刚刚将 TensorBoard 更新到 1.9.0 版,现在可以正常工作了!
I just updated my TensorBoard to version 1.9.0 and now its working!
tensorflow没有正确安装(缺少protobuf版本问题)
tensorflow is not installed properly (missing protobuf version issue)
请按照以下步骤操作
sudo pip install tensorflow
sudo apt update && sudo apt upgrade
最后
sudo pip install tensorflow