问题描述
当我尝试从我的jupyter notebook
启动tensorboard
时,出现以下错误.我正在使用conda environment
并使用特定于env的内核,因为tensorflow
仅安装在我的环境中.我在做什么错了?
I get the error below when I try launching tensorboard
from my jupyter notebook
. I am using a conda environment
and using the env-specific kernel since tensorflow
is only installed in my environment. What am I doing wrong?
错误:
%tensorboard --logdir logs
ERROR: Failed to launch TensorBoard (exited with -6).
Contents of stderr:
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/descriptor_database.cc:393] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
[libprotobuf FATAL external/com_google_protobuf/src/google/protobuf/descriptor.cc:1367] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
编辑
即使我尝试从终端(在我的conda env
内部)启动,我仍然遇到问题:
I have the problem even when I try launching from the terminal (inside my conda env
):
tensorboard --logdir = 'logs/'
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/descriptor_database.cc:393] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
[libprotobuf FATAL external/com_google_protobuf/src/google/protobuf/descriptor.cc:1367] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
Abort trap: 6
推荐答案
我找到了以下解决方案.显然,这是运行macOS Catalina
时发生的特定问题,可以通过切换到protobuf version 3.8.0
来解决.因此,基本上卸载tensorflow
和protobuf
并用protobuf = 3.8.0
重新安装.我在此处找到了答案,请查看该信息以获取更多信息.
I found the following solution. Apparently this is a specific issue that occurs when running macOS Catalina
, and can be solved by switching to protobuf version 3.8.0
. So basically uninstalling tensorflow
and protobuf
and re-installing with protobuf = 3.8.0
. I found this answer here, check it out for further info.
这篇关于无法从Jupyter启动Tensorboard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!