Python TypeError: __init__() got an unexpected keyword argument 'serialized_options'

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Python TypeError: __init__() got an unexpected keyword argument 'serialized_options'



I have a problem here which annoyed me for several days:(



I am new to python and tensorflow.



When I was practicing tensorflow and tried to use tensorboard, I met this question.



I wrote python in PyCharm and also my python version is 3.6.



part of my code is:


init = tf.global_variables_initializer()
sess = tf.Session()
writer = tf.summary.FileWriter("logs/",sess.graph)
sess.run(init)



then, I go to terminal and write the command:


cd /Users/Claire/Library/Preferences/PyCharmCE2018.2/scratches



then, I see a directory called "logs" which has "events.out.tfevents.1533570728.H-MacBook-Air.local" in it.



So, i write a command under



/Users/Claire/Library/Preferences/PyCharmCE2018.2/scratches


tensorboard --logdir='logs/'



then, I got this error:


Traceback (most recent call last):
File "/usr/local/bin/tensorboard", line 7, in <module>
from tensorboard.main import run_main
File "/usr/local/lib/python3.6/site-packages/tensorboard/main.py", line 40, in <module>
from tensorboard import default
File "/usr/local/lib/python3.6/site-packages/tensorboard/default.py", line 37, in <module>
from tensorboard.plugins.audio import audio_plugin
File "/usr/local/lib/python3.6/site-packages/tensorboard/plugins/audio/audio_plugin.py", line 30, in <module>
from tensorboard.plugins.audio import metadata
File "/usr/local/lib/python3.6/site-packages/tensorboard/plugins/audio/metadata.py", line 22, in <module>
from tensorboard.plugins.audio import plugin_data_pb2
File "/usr/local/lib/python3.6/site-packages/tensorboard/plugins/audio/plugin_data_pb2.py", line 22, in <module>
serialized_pb=_b('n+tensorboard/plugins/audio/plugin_data.protox12x0btensorboard"}nx0fx41udioPluginDatax12x0fnx07versionx18x01 x01(x05x12x37nx08x65ncodingx18x02 x01(x0ex32%.tensorboard.AudioPluginData.Encoding" nx08x45ncodingx12x0bnx07UNKNOWNx10x00x12x07nx03WAVx10x0bx62x06proto3')
TypeError: __init__() got an unexpected keyword argument 'serialized_options'



Can anyone help me??
Thank you.





Try installing tensorflow 1.9.0. pip install tensorflow==1.9.0
– jfleach
Aug 29 at 22:36


pip install tensorflow==1.9.0





@jfleach Hey, I just saw your comment. And I tried it. I install it and then I get this error.
– Claire
Sep 11 at 12:39





Command "/usr/local/opt/python@2/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/ld/_2dfh18s7cs2t5sj0r8bp_w40000gn/T/pip-install-DHnTY9/grpcio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('rn', 'n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/ld/_2dfh18s7cs2t5sj0r8bp_w40000gn/T/pip-record-wi71CR/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/ld/_2dfh18s7cs2t5sj0r8bp_w40000gn/T/pip-install-DHnTY9/grpcio/
– Claire
Sep 11 at 12:39









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS