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.

Elyra container image that was built from master fails with `webbrowser.Error: could not locate runnable browser`

See original GitHub issue

Describe the issue See error message

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/elyra-ai/elyra.git
  2. cd elyra
  3. make container-image
  4. docker run -it -p 8888:8888 elyra/elyra:dev jupyter lab

Screenshots or log output If applicable, add screenshots or log output to help explain your problem.

Log Output
**Note: Removing dead /tmp/elyra/packages/python-editor "@elyra/theme-extension"
**Note: Removing dead /tmp/elyra/packages/python-editor "@elyra/code-snippet-extension"
**Note: Removing dead /tmp/elyra/packages/python-editor "@elyra/metadata-extension"
**Note: Removing dead /tmp/elyra/packages/python-editor "@elyra/pipeline-editor-extension"
**Note: Removing dead /tmp/elyra/packages/python-editor "@elyra/python-editor-extension"
**Note: Removing dead /tmp/elyra/packages/metadata-common "@elyra/services"
**Note: Removing dead /tmp/elyra/packages/metadata-common "@elyra/ui-components"
**Note: Removing dead /tmp/elyra/packages/metadata-common "@elyra/metadata-common"
Removing orphaned linked package @elyra/services
Removing orphaned linked package @elyra/metadata-common
Removing orphaned linked package @elyra/ui-components
Generating grammar tables from /opt/conda/lib/python3.8/site-packages/blib2to3/Grammar.txt
Writing grammar tables to /home/jovyan/.cache/black/20.8b1/Grammar3.8.6.final.0.pickle
Writing failed: [Errno 2] No such file or directory: '/home/jovyan/.cache/black/20.8b1/tmprft725mx'
Generating grammar tables from /opt/conda/lib/python3.8/site-packages/blib2to3/PatternGrammar.txt
Writing grammar tables to /home/jovyan/.cache/black/20.8b1/PatternGrammar3.8.6.final.0.pickle
Writing failed: [Errno 2] No such file or directory: '/home/jovyan/.cache/black/20.8b1/tmpj2jpmoq0'
[I 2021-02-22 16:37:21.296 ServerApp] elyra | extension was successfully linked.
[I 2021-02-22 16:37:21.296 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2021-02-22 16:37:21.296 ServerApp] jupyter_resource_usage | extension was successfully linked.
[I 2021-02-22 16:37:21.314 ServerApp] jupyterlab | extension was successfully linked.
[I 2021-02-22 16:37:21.314 ServerApp] jupyterlab_git | extension was successfully linked.
[W 2021-02-22 16:37:21.321 NotebookApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-02-22 16:37:21.321 NotebookApp] 'port' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-02-22 16:37:21.322 NotebookApp] 'port' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[I 2021-02-22 16:37:21.330 ServerApp] Writing notebook server cookie secret to /home/jovyan/.local/share/jupyter/runtime/jupyter_cookie_secret
[I 2021-02-22 16:37:21.776 ServerApp] nbgitpuller | extension was found and enabled by nbclassic. Consider moving the extension to Jupyter Server's extension paths.
[I 2021-02-22 16:37:21.776 ServerApp] nbgitpuller | extension was successfully linked.
[I 2021-02-22 16:37:21.776 ServerApp] nbclassic | extension was successfully linked.
[I 2021-02-22 16:37:21.776 ServerApp] nbdime | extension was successfully linked.
[I 2021-02-22 16:37:21.879 ServerApp] Registering processor "EntryPoint('airflow', 'elyra.pipeline.processor_airflow', 'AirflowPipelineProcessor', Distribution('elyra', '2.1.0.dev0'))" with type -> airflow
[I 2021-02-22 16:37:21.880 ServerApp] Registering processor "EntryPoint('kfp', 'elyra.pipeline.processor_kfp', 'KfpPipelineProcessor', Distribution('elyra', '2.1.0.dev0'))" with type -> kfp
[I 2021-02-22 16:37:21.880 ServerApp] Registering processor "EntryPoint('local', 'elyra.pipeline.processor_local', 'LocalPipelineProcessor', Distribution('elyra', '2.1.0.dev0'))" with type -> local
[I 2021-02-22 16:37:21.881 ServerApp] elyra | extension was successfully loaded.
[I 2021-02-22 16:37:22.015 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2021-02-22 16:37:22.016 ServerApp] jupyter_resource_usage | extension was successfully loaded.
[I 2021-02-22 16:37:22.018 LabApp] JupyterLab extension loaded from /opt/conda/lib/python3.8/site-packages/jupyterlab
[I 2021-02-22 16:37:22.018 LabApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2021-02-22 16:37:22.022 ServerApp] jupyterlab | extension was successfully loaded.
[I 2021-02-22 16:37:22.025 ServerApp] jupyterlab_git | extension was successfully loaded.
[I 2021-02-22 16:37:22.031 ServerApp] nbclassic | extension was successfully loaded.
[I 2021-02-22 16:37:22.148 ServerApp] nbdime | extension was successfully loaded.
[I 2021-02-22 16:37:22.150 ServerApp] nbgitpuller | extension was successfully loaded.
[I 2021-02-22 16:37:22.150 ServerApp] Serving notebooks from local directory: /home/jovyan
[I 2021-02-22 16:37:22.150 ServerApp] Jupyter Server 1.4.0 is running at:
[I 2021-02-22 16:37:22.150 ServerApp] http://1e2862c63702:8888/lab?token=fb52cde7485ba71eb37faa862296b58e7a0d0dc17ff56020
[I 2021-02-22 16:37:22.151 ServerApp]  or http://127.0.0.1:8888/lab?token=fb52cde7485ba71eb37faa862296b58e7a0d0dc17ff56020
[I 2021-02-22 16:37:22.151 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/site-packages/jupyter_server/serverapp.py", line 2018, in launch_browser
    browser = webbrowser.get(self.browser or None)
  File "/opt/conda/lib/python3.8/webbrowser.py", line 65, in get
    raise Error("could not locate runnable browser")
webbrowser.Error: could not locate runnable browser

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/opt/conda/bin/jupyter-lab”, line 8, in <module> sys.exit(main()) File “/opt/conda/lib/python3.8/site-packages/jupyter_server/extension/application.py”, line 520, in launch_instance serverapp.start() File “/opt/conda/lib/python3.8/site-packages/jupyter_server/serverapp.py”, line 2100, in start self.start_app() File “/opt/conda/lib/python3.8/site-packages/jupyter_server/serverapp.py”, line 2059, in start_app self.launch_browser() File “/opt/conda/lib/python3.8/site-packages/jupyter_server/serverapp.py”, line 2020, in launch_browser self.log.warning((‘No web browser found: %s.’) % e) UnboundLocalError: local variable '’ referenced before assignment

Expected behavior A clear and concise description of what you expected to happen.

Deployment information Describe what you’ve deployed and how:

  • Elyra version: 2.1 (master branch)
  • Operating system: macos
  • Installation source: custom container image built from master
  • Deployment type: Docker, Kubernetes

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kevin-batescommented, Feb 22, 2021

This is due to a recent issue in Jupyter Server. A patch release is being cut today.

1reaction
ptitzlercommented, Feb 23, 2021

I am running with Jupyter server 1.2.2 and git 0.30.0b1 and am observing the same error message., which appears to be a known problem: https://github.com/jupyterlab/jupyterlab-git/issues/842.

I think we can go ahead and close this issue. Thanks for verifying Kevin!

Read more comments on GitHub >

github_iconTop Results From Across the Web

webbrowser.get — could not locate runnable browser
I am trying to access the internet with Google Chrome but every time I use webbrowser.open(url) ...
Read more >
webbrowser.Error: could not locate runnable browser · Issue #2
Now this plugin automatically wraps option values by quotations. So you can simply define option like g:livemark_browser = 'open %' .
Read more >
issues running image in docker to see jupyter notebook
I'm happy it isn't a docker issue, I can run the image and login via bash. ... NotebookApp] No web browser found: could...
Read more >
Creating a custom runtime container image
A runtime image provides the execution environment in which nodes are executed when a Jupyter notebook is processed as part of a pipeline....
Read more >
No web browser found: could not locate runnable browser
I am using Nvidia's transfer learning toolkit. The installation was successful. But running jupyter notebook as follow
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