无法从Jupyter启动Tensorboard [英] Failing to launch tensorboard from jupyter

查看:481
本文介绍了无法从Jupyter启动Tensorboard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从我的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来解决.因此,基本上卸载tensorflowprotobuf并用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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆