简体   繁体   English

Tensorboard TypeError:__ init __()得到一个意外的关键字参数'file'

[英]Tensorboard TypeError: __init__() got an unexpected keyword argument 'file'

I'm starting tensorboard 1.8.0 in cmd using tensorboard --logdir=I:\\logs . 我使用tensorboard --logdir=I:\\logs在cmd中启动tensorboard 1.8.0。 The error: 错误:

I:\> tensorboard --logdir=I:\logs
Traceback (most recent call last):
  File "c:\python35\lib\runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python35\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Administrator\AppData\Roaming\Python\Python35\Scripts\tensorboard.exe\__main__.py", line 5, in <module>
  File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\tensorboard\main.py", line 30, in <module>
    from tensorboard import default
  File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\tensorboard\default.py", line 35, in <module>
    from tensorboard.plugins.audio import audio_plugin
  File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\tensorboard\plugins\audio\audio_plugin.py", line 30, in <module>
    from tensorboard.plugins.audio import metadata
  File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\tensorboard\plugins\audio\metadata.py", line 22, in <module>
    from tensorboard.plugins.audio import plugin_data_pb2
  File "C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages\tensorboard\plugins\audio\plugin_data_pb2.py", line 63, in <module>
    options=None, file=DESCRIPTOR),
TypeError: __init__() got an unexpected keyword argument 'file'

尝试升级protobuf

pip install --upgrade protobuf

I have had the same error. 我有同样的错误。 Installing tensorflow==1.8.0 into the same env helps me. 将tensorflow == 1.8.0安装到同一个环境中对我有帮助。 Now this works for me on Windows 10. And training on GPU still works. 现在这适用于Windows 10.而GPU上的训练仍然有效。

pip freeze

absl-py==0.2.0                                                                                                                      
astor==0.6.2                                                                                                            
bleach==1.5.0                                                                                                           
certifi==2018.4.16                                                                                                      
gast==0.2.0                                                                                                             
grpcio==1.11.0                                                                                                          
h5py==2.7.1                                                                                                             
html5lib==0.9999999                                                                                                     
Keras==2.1.6                                                                                                            
Markdown==2.6.11                                                                                                        
numpy==1.14.3                                                                                                           
olefile==0.45.1                                                                                                         
Pillow==4.2.1                                                                                                           
protobuf==3.5.2.post1                                                                                                   
PyYAML==3.12                                                                                                            
scipy==1.0.0                                                                                                            
Shapely==1.6.2                                                                                                          
six==1.11.0                                                                                                             
tensorboard==1.8.0                                                                                                      
tensorflow==1.8.0                                                                                                       
tensorflow-gpu==1.8.0                                                                                                   
termcolor==1.1.0                                                                                                        
Werkzeug==0.14.1                                                                                                        
wincertstore==0.2    

Sorry for redundant modules... 对不起冗余模块......

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TypeError at &#39;&#39; __init__() 得到一个意外的关键字参数 &#39;&#39; - TypeError at '' __init__() got an unexpected keyword argument '' TypeError: __init__() 得到了一个意外的关键字参数“文件” - TypeError: __init__() got an unexpected keyword argument 'file' Tensorboard TypeError:__init__() 得到了一个意外的关键字参数“serialized_options” - Tensorboard TypeError: __init__() got an unexpected keyword argument 'serialized_options' Scrapy错误:TypeError:__ init __()得到一个意外的关键字参数&#39;deny&#39; - Scrapy Error: TypeError: __init__() got an unexpected keyword argument 'deny' TypeError:__init __()得到了意外的关键字参数错误 - TypeError: __init__() got an unexpected keyword argument error TypeError:__ init __()在argparse中有一个意外的关键字参数&#39;type&#39; - TypeError: __init__() got an unexpected keyword argument 'type' in argparse 图片/创建时发生TypeError-__init __()得到了意外的关键字参数&#39;save&#39; - TypeError at images/create - __init__() got an unexpected keyword argument 'save' TypeError:__init __()获得了意外的关键字参数&#39;n_components&#39; - TypeError: __init__() got an unexpected keyword argument 'n_components' TypeError:__init __()获得了意外的关键字参数&#39;cv&#39; - TypeError: __init__() got an unexpected keyword argument 'cv' TypeError:__ init __()得到一个意外的关键字参数&#39;delay&#39; - TypeError:__init__() got an unexpected keyword argument 'delay'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM