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.

Jupyter Server Not Found with Python 3.6.4 through pyenv

See original GitHub issue

Hi, I am able to launch jupyterlab from the command line but unable to do it through the app. I receive:

We were unable to launch a Jupyter server, which is a prerequisite for JupyterLab Native. If Jupyter is already installed, but it is not in your PATH, specify its location below. Otherwise, try installing or updating Jupyter. The Jupyter notebook version must be 4.3.0 or greater.

My package versions are the following:

jupyter==1.0.0
jupyter-client==5.2.2
jupyter-console==5.2.0
jupyter-core==4.4.0
jupyterlab==0.31.5
jupyterlab-launcher==0.10.3
notebook==5.4.0

I use pyenv and jupyterlab is available through the PATH variable (I checked on the cli).

I am on MacOS 10.13.2 (17C205).

Thanks, Francesco

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:31 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
declanvkcommented, Mar 19, 2018

@klonuo We don’t yet have a new version of the binary for the latest release of jupyterlab, so in the meantime the old binary will be broken. I would recommend build the development version in the meantime.

I’m closing this issue, but feel free to reopen if the development version is broken for you or for any other related reason.

0reactions
olgabotcommented, Aug 9, 2019

Hello, I’m having a similar issue where neither Notebook nor Lab will load. Lab will give the below error, and a fix is below for people who are running into the same problems:

 Fri  9 Aug - 06:02  ~ 
  /home/olga/anaconda/bin/jupyter lab --port 8877 --no-browser
[I 06:03:00.343 LabApp] [nb_conda_kernels] enabled, 8 kernels found
[I 06:03:00.522 LabApp] JupyterLab extension loaded from /home/olga/miniconda3/lib/python3.6/site-packages/jupyterlab
[I 06:03:00.522 LabApp] JupyterLab application directory is /home/olga/miniconda3/share/jupyter/lab
[I 06:03:00.524 LabApp] Serving notebooks from local directory: /home/olga
[I 06:03:00.524 LabApp] The Jupyter Notebook is running at:
[I 06:03:00.524 LabApp] http://localhost:8877/?token=c1212a5cea7d8dfc841ac45c01efb9d2fd644466e1ddc381
[I 06:03:00.524 LabApp]  or http://127.0.0.1:8877/?token=c1212a5cea7d8dfc841ac45c01efb9d2fd644466e1ddc381
[I 06:03:00.524 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 06:03:00.528 LabApp]

        file:///run/user/1004/jupyter/nbserver-111683-open.html
    Or copy and paste one of these URLs:
        http://localhost:8877/?token=c1212a5cea7d8dfc841ac45c01efb9d2fd644466e1ddc381
     or http://127.0.0.1:8877/?token=c1212a5cea7d8dfc841ac45c01efb9d2fd644466e1ddc381

The loading screen is taking a long time. Would you like to clear the workspace or keep waiting?

For some reason, I’m not able to Ctrl-C either of these processes and have to kill -9 them.

The fix!

FYI the fix was uninstalling everything related to Jupyter and reinstalling…

pip uninstall juptyer jupyterlab
conda uninstall --yes jupyter jupyterlab
conda install --yes jupyter jupyterlab
===
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get the error “pyenv: jupyter: command not found, the ...
When you see this jupyter: command not found error, it's pyenv doing its best to keep you from using a Jupyter attached to...
Read more >
jupyter not using version set by pyenv
I found this gist which is pretty simple: #!/bin/sh if [ "$PYENV_VERSION" -ne "" ] then name=`pyenv version-name` python=`pyenv which ...
Read more >
Installing the IPython kernel — IPython 8.7.0 documentation
The IPython kernel is the Python execution backend for Jupyter. The Jupyter Notebook and other frontends automatically ensure that the IPython kernel is ......
Read more >
What's New In Python 3.9 — Python 3.11.1 documentation
a number of Python builtins (range, tuple, set, frozenset, list, dict) are now sped up using PEP 590 vectorcall;. garbage collection does not...
Read more >
pyenv init not working - You.com | The AI Search Engine ...
It sounds like, because of which python not saying it's the shim, you don't have the bin/shims path first in your PATH envvar....
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