jupyter_tensorboard icon indicating copy to clipboard operation
jupyter_tensorboard copied to clipboard

Extension error on launch

Open SpontaneousDuck opened this issue 5 years ago • 6 comments
trafficstars

I am using my own jupyter notebook container and think I have installed everything as requested by the instructions for jupyter_tensorboard. When trying to open Tensorboard I get the extension error. My Chrome console shows the below error: image The versions for relevant packages are shown below: image

Thanks for the help!

SpontaneousDuck avatar Aug 05 '20 15:08 SpontaneousDuck

Can you post the server logs from the jupyter server, it seems like the issue is related to tensorboard moving to 0.2.3.

rahulpshah avatar Aug 10 '20 23:08 rahulpshah

tensorboard 2.3.0 doesn't have application.standard_tensorboard_wsgi anymore:

[E 14:04:39.551 NotebookApp] 500 POST /api/tensorboard?1597493079364 (10.84.160.17) 117.26ms referer=http://z97mx.local:9996/lab [E 14:07:23.942 NotebookApp] Uncaught exception POST /api/tensorboard?1597493243873 (10.84.160.17) HTTPServerRequest(protocol='http', host='z97mx.local:9996', method='POST', uri='/api/tensorboard?1597493243873', version='HTTP/1.1', remote_ip='10.84.160.17') Traceback (most recent call last): File "/packages/tornado/web.py", line 1701, in _execute result = method(*self.path_args, **self.path_kwargs) File "/packages/tornado/web.py", line 3178, in wrapper return method(self, *args, **kwargs) File "/packages/jupyter_tensorboard/api_handlers.py", line 40, in post .new_instance(data["logdir"], reload_interval=reload_interval) File "/packages/jupyter_tensorboard/tensorboard_manager.py", line 223, in new_instance create_tb_app( File "/packages/jupyter_tensorboard/tensorboard_manager.py", line 45, in create_tb_app # return application.standard_tensorboard_wsgi( AttributeError: module 'tensorboard.backend.application' has no attribute 'standard_tensorboard_wsgi'

The new function is application.TensorBoardWSGIApp but compatibility is uncertain. I have renamed the calls and the error disappears, but I still cannot manage to get it working in a docker container

victor-moreno avatar Aug 15 '20 12:08 victor-moreno

Same issue here. Doesn't seem entirely straight-forward to just replace tensorboard.backend.application.standard_tensorboard_wsgi with TensorBoardWSGI. Downgrading tensorboard may be an option but not sure which version that change happened in

andreasfragner avatar Sep 02 '20 18:09 andreasfragner

Hi @andreasfragner and those reading , I got this error when trying to use jupyterlab_tensorboard (frontend of this repo for jupyterlab) https://github.com/chaoleili/jupyterlab_tensorboard/issues/25#issue-684139674 . I fixed it by the following.

Simple solution would be to tell users to pip install tensorboard==2.2.

NanoCode012 avatar Sep 05 '20 14:09 NanoCode012

If you want to use TB 2.3 or later, can you please try with https://github.com/lspvic/jupyter_tensorboard/pull/63 ?

cliffwoolley avatar Feb 05 '21 02:02 cliffwoolley

Thanks @NanoCode012 pip install tensorboard==2.2 solved my problem too.

kuldip-barot avatar May 01 '22 09:05 kuldip-barot