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.

Fails to install, can't find `jupyter` on 18.04

See original GitHub issue

Hi all, I’m having trouble installing on Ubuntu 18.04.1 LTS. The installer can’t find the jupyter script in the install location—any thoughts?

Here’s the output from the installer (n.b., this is me rerunning the installer, as a result it says TLJH already installed).

Checking if TLJH is already installed...
TLJH already installed, upgrading...
Upgrading TLJH installer...
Setup tljh package
Starting TLJH installer...


==> WARNING: A newer version of conda exists. <==
  current version: 4.5.8
  latest version: 4.5.11

Please update conda by running

    $ conda update -n base conda


Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 445, in <module>
    main()
  File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 433, in main
    ensure_jupyterlab_extensions()
  File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 172, in ensure_jupyterlab_extensions
    ] + extensions)
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/opt/tljh/user/bin/jupyter': '/opt/tljh/user/bin/jupyter'

Issue Analytics

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

github_iconTop GitHub Comments

7reactions
hMED22commented, Aug 6, 2019

I had this problem and solved it like @dgot said but than had another problem launching the server, using sudo journalctl -u jupyter-<name-of-user> I found that an Import error was raised for a package that I had installed in my local python environment but not in /opt/tljh/user/ environment. but when I tried to install it:

source /opt/tljh/user/bin/activate 
sudo -E /opt/tljh/user/bin/pip install package

I got Requirement already satisfied: package in /home/username/.local/lib/python3.6/site-packages I believe that that’s what happened when the tljh installer called conda.ensure_pip_packages. Finally the thing that fixed it is using -H flag with sudo, so to fix this issue one could use:

source /opt/tljh/user/bin/activate 
sudo -EH /opt/tljh/user/bin/pip install jupyter
1reaction
jhadjarcommented, Apr 22, 2020

Thank you, dear colleague : ) This should teach me to read the README.md

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install and execute Jupyter Notebook on Ubuntu 18.04
How to install and execute Jupyter Notebook on Ubuntu 18.04 ... To see the installed version, you can run the following command:
Read more >
How To Set Up Jupyter Notebook with Python 3 on Ubuntu ...
Step 1 — Setting Up Python. To begin the process, install the dependencies for your Python programming environment from the Ubuntu repositories.
Read more >
Jupyter can't connect to local kernel (ubuntu 18.04)
Now, I install jupyter (venv) $ pip install jupyter Collecting jupyter Cache entry deserialization failed, entry ignored Using cached ...
Read more >
Error executing Jupyter command 'notebook': [Errno 2] No ...
I am trying to run jupyter notebook on Ubuntu 18.04. After its installation by: sudo apt-get install python3-notebook jupyter-core ...
Read more >
What to do when things go wrong - The Jupyter Notebook
Jupyter fails to start · Have you installed it? ;-) · If you're using a menu shortcut or Anaconda launcher to...
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