question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can't run Tensorboard in Ubuntu: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)

See original GitHub issue

Tensorflow and Tensorboard ver. 2. ubuntu:16.04 Pre-trained model: ssd_mobilenet_v1_pets.config I have not written any custom code.

Hi everyone, a couple of days ago I ran Tensorboard in Ubuntu and I got results without any problem. I used a pre-trained model and I want to put the results into Tensorboard.

I have a remote session and I do the same yesterday, from models / object_detection folder, I run the command:

tensorboard --bind_all --port 6006 --logdir='training'

but I received the errors: TensorBoard 2.0.2 at http://ubuntu:6006/ (Press CTRL+C to quit) Traceback (most recent call last): File "/usr/local/bin/tensorboard", line 8, in <module> sys.exit(run_main()) File "/usr/local/lib/python2.7/dist-packages/tensorboard/main.py", line 66, in run_main app.run(tensorboard.main, flags_parser=tensorboard.configure) File "/usr/local/lib/python2.7/dist-packages/absl/app.py", line 299, in run _run_main(main, args) File "/usr/local/lib/python2.7/dist-packages/absl/app.py", line 250, in _run_main sys.exit(main(argv)) File "/usr/local/lib/python2.7/dist-packages/tensorboard/program.py", line 267, in main return runner(self.flags) or 0 File "/usr/local/lib/python2.7/dist-packages/tensorboard/program.py", line 283, in _run_serve_subcommand self._register_info(server) File "/usr/local/lib/python2.7/dist-packages/tensorboard/program.py", line 329, in _register_info manager.write_info_file(info) File "/usr/local/lib/python2.7/dist-packages/tensorboard/manager.py", line 267, in write_info_file payload = "%s\n" % _info_to_string(tensorboard_info) File "/usr/local/lib/python2.7/dist-packages/tensorboard/manager.py", line 126, in _info_to_string for k in _TENSORBOARD_INFO_FIELDS File "/usr/local/lib/python2.7/dist-packages/tensorboard/manager.py", line 126, in <dictcomp> for k in _TENSORBOARD_INFO_FIELDS UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe2 in position 0: ordinal not in range(128)

I uninstall and install the Tesnorboard but the same errors. I would appreciate any help. Thank U

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
gowthamkprcommented, Apr 14, 2020

@Anatolist his is caused by the default encoding difference between python 2.7 (ascii) and 3.x (utf-8). Try using python 3.x and let me know if the error still persists

0reactions
rithiksachdevcommented, Apr 15, 2020

Hi @Anatolist, I was asking you to run this diagnose_tensorboard.py file. We only need to specify the path from our working directory to the logs generated by tensorflow. If you face any error in your virtualenv then read the output and follow the directions. I hope this helps 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't run Tensorboard in Ubuntu
1 Answer 1 ... caused by the default encoding difference between python 2.7 (ascii) and 3.x (utf-8). I install python 3.5 and it's...
Read more >
Python: UnicodeDecodeError: 'ascii' codec can't decode byte ...
Python: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128).
Read more >
'ascii' codec can't decode byte 0x* in position *: ordinal not ...
The locale -a output suggests that you have no enabled utf-8 locales. Try running: sudo locale-gen en_US.UTF-8 export LANG=en_US.UTF-8.
Read more >
【解决】UnicodeDecodeError: 'ascii' codec can't decode byte ...
UnicodeDecodeError : 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128). 于是,我找了一些网上的方案:
Read more >
Python, UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 ...
UnicodeDecodeError : 'ascii' codec can't decode byte 0xe2 in position 14: ordinal not in range(128) error. "BTTR – oct 01 2014 10:00 AM...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found