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.

ModuleNotFoundError: No module named 'jupyter_tabnine'

See original GitHub issue

I tried to install jupyter tabnine extension like this:

pip3 install jupyter-tabnine
jupyter nbextension install

with the second command I have this error:

Installing /home/rouizi/.local/lib/python3.6/site-packages/jupyter_tabnine/static -> jupyter_tabnine
Traceback (most recent call last):
  File "/home/rouizi/.local/bin/jupyter-nbextension", line 11, in <module>
    sys.exit(main())
  File "/home/rouizi/.local/lib/python3.6/site-packages/jupyter_core/application.py", line 268, in 
launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/home/rouizi/.local/lib/python3.6/site-packages/traitlets/config/application.py", line 664, in 
launch_instance
    app.start()
  File "/home/rouizi/.local/lib/python3.6/site-packages/notebook/nbextensions.py", line 983, in start
    super(NBExtensionApp, self).start()
  File "/home/rouizi/.local/lib/python3.6/site-packages/jupyter_core/application.py", line 257, in start
    self.subapp.start()
  File "/home/rouizi/.local/lib/python3.6/site-packages/notebook/nbextensions.py", line 711, in start
    self.install_extensions()
  File "/home/rouizi/.local/lib/python3.6/site-packages/notebook/nbextensions.py", line 690, in 
install_extensions
    **kwargs
  File "/home/rouizi/.local/lib/python3.6/site-packages/notebook/nbextensions.py", line 220, in 
install_nbextension_python
    destination=dest, logger=logger
  File "/home/rouizi/.local/lib/python3.6/site-packages/notebook/nbextensions.py", line 121, in 
install_nbextension
    ensure_dir_exists(nbext)
  File "/home/rouizi/.local/lib/python3.6/site-packages/jupyter_core/utils/__init__.py", line 13, in 
ensure_dir_exists
    os.makedirs(path, mode=mode)
  File "/usr/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter'

So I tried with sudo:

sudo jupyter nbextension install --py jupyter_tabnine

Traceback (most recent call last):
  File "/snap/jupyter/6/bin/jupyter-nbextension", line 11, in <module>
    sys.exit(main())
  File "/snap/jupyter/6/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in 
launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/snap/jupyter/6/lib/python3.7/site-packages/traitlets/config/application.py", line 658, in 
launch_instance
    app.start()
  File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/nbextensions.py", line 988, in start
    super(NBExtensionApp, self).start()
  File "/snap/jupyter/6/lib/python3.7/site-packages/jupyter_core/application.py", line 255, in start
    self.subapp.start()
  File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/nbextensions.py", line 716, in start
    self.install_extensions()
  File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/nbextensions.py", line 695, in 
install_extensions
    **kwargs
  File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/nbextensions.py", line 211, in 
install_nbextension_python
    m, nbexts = _get_nbextension_metadata(module)
  File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/nbextensions.py", line 1122, in 
_get_nbextension_metadata
    m = import_item(module)
  File "/snap/jupyter/6/lib/python3.7/site-packages/traitlets/utils/importstring.py", line 42, in 
import_item
    return __import__(parts[0])
ModuleNotFoundError: No module named 'jupyter_tabnine'

How can I fix this ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wenmin-wucommented, Mar 27, 2020

Please try these commands, which will install jupyter-tabine under user dir.

pip3 install jupyter-tabnine --user
jupyter nbextension install --py jupyter_tabnine --user
jupyter nbextension enable --py jupyter_tabnine --user
jupyter serverextension enable --py jupyter_tabnine --user
0reactions
Betristorcommented, Nov 2, 2022

Yeah, I have encountered the same issue now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'jupyter_tabnine'
I got the same problem, but it seems solved by the following upgrade: pip3 install jupyter-tabnine --upgrade. If not work for you, ...
Read more >
ModuleNotFoundError: No module named 'jupyter-tabnine'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'jupyter-tabnine' How to remove the Mo.
Read more >
Can't uninstall tabnine · Issue #81 · codota/jupyter ... - GitHub
I'm assuming that last line "ModuleNotFoundError: No module named 'jupyter_tabnine' " is the core issue. For reference I use jupyterlab which I ...
Read more >
jupyter-tabnine - PyPI
Jupyter notebook extension which support coding auto-completion based on Deep Learning.
Read more >
Install Tabnine on Jupyter Notebook
Manual installation Enter these command lines in your terminal: 1 pip3 install jupyter-tabnine --user2 jupyter nbextension install...
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