簡體   English   中英

無法從 jupyter 啟動張量板

[英]Failing to launch tensorboard from jupyter

當我嘗試從jupyter notebook啟動tensorboard時,出現以下錯誤。 我正在使用conda environment並使用特定於 env 的內核,因為tensorflow僅安裝在我的環境中。 我究竟做錯了什么?

錯誤:

%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 ),我也遇到了問題:

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重新安裝。 我在這里找到了這個答案,查看更多信息。

conda update protobuf為我解決了這個問題。 我假設您也可以使用 pip 升級,但我沒有嘗試

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM