You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@toree.apache.org by "Shubhanshu Mishra (JIRA)" <ji...@apache.org> on 2017/09/26 17:54:00 UTC

[jira] [Created] (TOREE-441) Pip install toree on anaconda causes issues

Shubhanshu Mishra created TOREE-441:
---------------------------------------

             Summary: Pip install toree on anaconda causes issues
                 Key: TOREE-441
                 URL: https://issues.apache.org/jira/browse/TOREE-441
             Project: TOREE
          Issue Type: Bug
          Components: Build
    Affects Versions: 0.1.0
         Environment: Python 3.6 via anaconda
Ubuntu 16.04 LTS
            Reporter: Shubhanshu Mishra


I installed toree into my anaconda environment using `pip install toree`

First of all, the installation gave the following warning and replaced the jupyter-client 5.0.1 with jupyter-client 4.4.0, without asking for permissions to do so. 

Details:

{code:bash}
$ pip install toree
Collecting toree
  Downloading toree-0.1.0.tar.gz (23.9MB)
    100% |################################| 23.9MB 53kB/s 
Requirement already satisfied: jupyter_core<5.0,>=4.0 in /home/content/anaconda3/lib/python3.6/site-packages (from toree)
Collecting jupyter_client<5.0,>=4.0 (from toree)
  Downloading jupyter_client-4.4.0-py2.py3-none-any.whl (76kB)
    100% |################################| 81kB 6.6MB/s 
Requirement already satisfied: traitlets<5.0,>=4.0 in /home/content/anaconda3/lib/python3.6/site-packages (from toree)
Requirement already satisfied: pyzmq>=13 in /home/content/anaconda3/lib/python3.6/site-packages (from jupyter_client<5.0,>=4.0->toree)
Building wheels for collected packages: toree
  Running setup.py bdist_wheel for toree ... done
  Stored in directory: /homed/smishra8/.cache/pip/wheels/a1/71/9b/6d31291a34f4e8a9b392e7507b20ff405e761ede585d6139dc
Successfully built toree
Installing collected packages: jupyter-client, toree
  Found existing installation: jupyter-client 5.0.1
    DEPRECATION: Uninstalling a distutils installed project (jupyter-client) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling jupyter-client-5.0.1:
      Successfully uninstalled jupyter-client-5.0.1
Successfully installed jupyter-client-4.4.0 toree-0.1.0
{code}


Next, when I tried to run jupyter toree install, I get the following error:


{code:bash}
$ jupyter toree install
[ToreeInstall] Installing Apache Toree version 0.1.0
[ToreeInstall] 
Apache Toree is an effort undergoing incubation at the Apache Software
Foundation (ASF), sponsored by the Apache Incubator PMC.

Incubation is required of all newly accepted projects until a further review
indicates that the infrastructure, communications, and decision making process
have stabilized in a manner consistent with other successful ASF projects.

While incubation status is not necessarily a reflection of the completeness
or stability of the code, it does indicate that the project has yet to be
fully endorsed by the ASF.
[ToreeInstall] Creating kernel Scala
Traceback (most recent call last):
  File "/homed/content/anaconda3/bin/jupyter-toree", line 11, in <module>
    sys.exit(main())
  File "/homed/content/anaconda3/lib/python3.6/site-packages/toree/toreeapp.py", line 167, in main
    ToreeApp.launch_instance()
  File "/homed/content/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 658, in launch_instance
    app.start()
  File "/homed/content/anaconda3/lib/python3.6/site-packages/toree/toreeapp.py", line 164, in start
    return self.subapp.start()
  File "/homed/content/anaconda3/lib/python3.6/site-packages/toree/toreeapp.py", line 131, in start
    replace=self.replace
  File "/homed/content/anaconda3/lib/python3.6/site-packages/jupyter_client/kernelspec.py", line 269, in install_kernel_spec
    shutil.copytree(source_dir, destination)
  File "/homed/content/anaconda3/lib/python3.6/shutil.py", line 315, in copytree
    os.makedirs(dst)
  File "/homed/content/anaconda3/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/homed/content/anaconda3/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/homed/content/anaconda3/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter'

{code}


Why does toree need to access the `/usr/local/share/jupyter`  ? 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)