can't upload log to Tensorboard.dev with google colab :EOFError: EOF when reading a line
See original GitHub issueEnvironment information (required)
Please run diagnose_tensorboard.py
(link below) in the same
environment from which you normally run TensorFlow/TensorBoard, and
paste the output here:
For browser-related issues, please additionally specify:
- Browser type and version (e.g., Chrome 64.0.3282.140):
- Screenshot, if it’s a visual issue:
Environment information log: https://pastebin.com/qRneuxFq
Issue description
Please describe the bug as clearly as possible. How can we reproduce the problem without additional resources (including external data files and proprietary Python modules)? i cant upload log to tensorboard.dev then using colab, executing tensorboard with ‘%’ symbol will give you “EOF when reading a line error”, while running tensorboard with ‘!’ symbol wont allow you to run python script, example code:
%tensorflow_version 2.x
%load_ext tensorboard
%tensorboard dev upload --logdir logs/gradient_tape --name "wgan-weightclipiing-1" --description "just testting tensorboard.dev"
error log:
ERROR: Failed to launch TensorBoard (exited with 1).
Contents of stderr:
***** TensorBoard Uploader *****
This will upload your TensorBoard logs to https://tensorboard.dev/ from
the following directory:
logs/gradient_tape
This TensorBoard will be visible to everyone. Do not upload sensitive
data.
Your use of this service is subject to Google's Terms of Service
<https://policies.google.com/terms> and Privacy Policy
<https://policies.google.com/privacy>, and TensorBoard.dev's Terms of Service
<https://tensorboard.dev/policy/terms/>.
This notice will not be shown again while you are logged into the uploader.
To log out, run `tensorboard dev auth revoke`.
Traceback (most recent call last):
File "/usr/local/bin/tensorboard", line 8, in <module>
sys.exit(run_main())
File "/usr/local/lib/python3.6/dist-packages/tensorboard/main.py", line 66, in run_main
app.run(tensorboard.main, flags_parser=tensorboard.configure)
File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "/usr/local/lib/python3.6/dist-packages/tensorboard/program.py", line 268, in main
return runner(self.flags) or 0
File "/usr/local/lib/python3.6/dist-packages/tensorboard/uploader/uploader_main.py", line 788, in run
return _run(flags)
File "/usr/local/lib/python3.6/dist-packages/tensorboard/uploader/uploader_main.py", line 282, in _run
_prompt_for_user_ack(intent)
File "/usr/local/lib/python3.6/dist-packages/tensorboard/uploader/uploader_main.py", line 89, in _prompt_for_user_ack
response = six.moves.input("Continue? (yes/NO) ")
EOFError: EOF when reading a line
Contents of stdout:
Continue? (yes/NO)
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Why do I get "Pickle - EOFError: Ran out of input" reading an ...
A typical construct for reading from an Unpickler object would be like this .. try: data = unpickler.load() except EOFError: data = list()...
Read more >Getting started with TensorBoard.dev - Google Colab
Uploading the TensorBoard logs will give you a URL that can be shared with anyone. Uploaded TensorBoards are public, so do not upload...
Read more >EOFError: EOF when reading a line - DEV Community
In Python, an EOFError is an exception that gets raised when functions such as input() or raw_input() in case of python2 return end-of-file...
Read more >python exception find line number Code Example - Code Grepper
import traceback try: print(4/0) except ZeroDivisionError: print(traceback.format_exc())
Read more >[Example code]-How slicing works when step is given separately?
Python file i/0: error -- How to write to a file when the filename given is a string? ... How to extract meaningful...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m going to close this issue : it is currently possible to upload to TensorBoard.dev from Colab. See, e.g., https://www.tensorflow.org/tensorboard/get_started
Hi I’m start using Tensorboard Dev, but I’m not using Collab, I did what @GalOshri propose and seems to work but the cell now is freeze because continues running because is waiting for a “yes/no” to continue, any idea on how to solve this? I’m working locally with Docker Containers and Jupyter Lab. `2020-03-27 02:27:41.813833: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libnvinfer.so.6 2020-03-27 02:27:41.814968: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libnvinfer_plugin.so.6
***** TensorBoard Uploader *****
This will upload your TensorBoard logs to https://tensorboard.dev/ from the following directory:
/tmp/tmpwj0tm67_
This TensorBoard will be visible to everyone. Do not upload sensitive data.
Your use of this service is subject to Google’s Terms of Service https://policies.google.com/terms and Privacy Policy https://policies.google.com/privacy, and TensorBoard.dev’s Terms of Service https://tensorboard.dev/policy/terms/.
This notice will not be shown again while you are logged into the uploader. To log out, run
tensorboard dev auth revoke
.Continue? (yes/NO) `