Rise: Installation (5.4.1) fail on jupyter-nbextension

Created on 27 Sep 2018  路  8Comments  路  Source: damianavila/RISE

I'm getting an error on the Jupyter-nbextension install rise --py --sys-prefix command. The error is:
PermissionError: [Errno 13] Permission denied: '/usr/share/jupyter'

That directory doesn't exist. I do have the directory '/usr/local/share/jupyter'

The full traceback (username redacted) is:
Could not figure out RISE version - using 0.0.0 (package.json not found)
Installing /home/-----/.local/lib/python3.5/site-packages/rise/static -> rise
Traceback (most recent call last):
File "/usr/local/bin/jupyter-nbextension", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, *kwargs)
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py", line 988, in start
super(NBExtensionApp, self).start()
File "/usr/local/lib/python3.5/dist-packages/jupyter_core/application.py", line 255, in start
self.subapp.start()
File "/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py", line 716, in start
self.install_extensions()
File "/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py", line 695, in install_extensions
*
kwargs
File "/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py", line 225, in install_nbextension_python
destination=dest, logger=logger
File "/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py", line 126, in install_nbextension
ensure_dir_exists(nbext)
File "/usr/local/lib/python3.5/dist-packages/jupyter_core/utils/__init__.py", line 13, in ensure_dir_exists
os.makedirs(path, mode=mode)
File "/usr/lib/python3.5/os.py", line 231, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.5/os.py", line 241, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/share/jupyter'

I used pip to install, the full command was:
python3 -m pip install --user RISE

check question

Most helpful comment

The following commands installed for me from the RISE directory after cloning from git

sudo python3 setup.py install
sudo jupyter-nbextension install rise --py --sys-prefix
sudo jupyter nbextension enable rise --py --sys-prefix

All 8 comments

I have a similar problem, where the installation fails due to a ModuleNotFoundError.
Here is the full error trace:

PS C:\Users\jdestefani> jupyter-nbextension install rise --py --sys-prefix                                            
Traceback (most recent call last):                                                                                    
  File "D:\ProgramData\Anaconda3\Scripts\jupyter-nbextension-script.py", line 5, in <module>                          
    sys.exit(notebook.nbextensions.main())                                                                            
  File "D:\ProgramData\Anaconda3\lib\site-packages\jupyter_core\application.py", line 267, in launch_instance         
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)                                                
  File "D:\ProgramData\Anaconda3\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance     
    app.start()                                                                                                       
  File "D:\ProgramData\Anaconda3\lib\site-packages\notebook\nbextensions.py", line 900, in start                      
    super(NBExtensionApp, self).start()                                                                               
  File "D:\ProgramData\Anaconda3\lib\site-packages\jupyter_core\application.py", line 256, in start                   
    self.subapp.start()                                                                                               
  File "D:\ProgramData\Anaconda3\lib\site-packages\notebook\nbextensions.py", line 678, in start                      
    self.install_extensions()                                                                                         
  File "D:\ProgramData\Anaconda3\lib\site-packages\notebook\nbextensions.py", line 657, in install_extensions         
    **kwargs                                                                                                          
  File "D:\ProgramData\Anaconda3\lib\site-packages\notebook\nbextensions.py", line 211, in install_nbextension_python 
    m, nbexts = _get_nbextension_metadata(module)                                                                     
  File "D:\ProgramData\Anaconda3\lib\site-packages\notebook\nbextensions.py", line 1034, in _get_nbextension_metadata 
    m = import_item(module)                                                                                           
  File "D:\ProgramData\Anaconda3\lib\site-packages\traitlets\utils\importstring.py", line 42, in import_item          
    return __import__(parts[0])                                                                                       
ModuleNotFoundError: No module named 'rise'                                                                           

I am running Python 3.5.2, Jupyter 4.4.0, Jupyter Notebook 5.7.0 on Windows 10.

If I try to import rise from a Python prompt, I obtain the following result:
```>>> import rise
Could not figure out RISE version - using 0.0.0 (package.json not found)

rise.__version__
'0.0.0'

```
Could you give me some pointers on how to solve this issue?

mmm... did you both install from pip? Or it is a development installation?
Wondering if it is related to this: https://github.com/damianavila/RISE/issues/409

Indeed, no development installation.
I installed from pip (version 18.0) using python -m pip install RISE.

OK, I will try to reproduce as soon as I can. Thanks for the additional info.

Yes, I installed from pip, using python3 -m pip install --user RISE.

I wonder if it has to do with how jupyter is installed. I don't have the directory /usr/share/jupyter, but I do have /usr/local/share/jupyter

Sorry, didn't mean to close

I'm seeing the same ModuleNotFoundError: No module named 'rise' after jupyter-nbextension install rise --py --sys-prefix

Installations I've tried that produce this error:

I also tried

  • python3 -m pip install --user RISE

in which case I see PermissionError: [Errno 13] Permission denied: '/usr/share/jupyter' after jupyter-nbextension install rise --py --sys-prefix.

Best,
-Colton

The following commands installed for me from the RISE directory after cloning from git

sudo python3 setup.py install
sudo jupyter-nbextension install rise --py --sys-prefix
sudo jupyter nbextension enable rise --py --sys-prefix
Was this page helpful?
0 / 5 - 0 ratings

Related issues

IanSudbery picture IanSudbery  路  5Comments

ChrisRackauckas picture ChrisRackauckas  路  6Comments

rzuritamilla picture rzuritamilla  路  4Comments

kelmouloudi picture kelmouloudi  路  3Comments

srcoulombe picture srcoulombe  路  4Comments