{"action":"created","issue":{"url":"https://api.github.com/repos/root-mirror/cling/issues/1","repository_url":"https://api.github.com/repos/root-mirror/cling","labels_url":"https://api.github.com/repos/root-mirror/cling/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/root-mirror/cling/issues/1/comments","events_url":"https://api.github.com/repos/root-mirror/cling/issues/1/events","html_url":"https://github.com/root-mirror/cling/issues/1","id":130648934,"number":1,"title":"Cannot install Cling kernel into a virtualenv Jupyter application","user":{"login":"ulf1","id":8018044,"avatar_url":"https://avatars.githubusercontent.com/u/8018044?v=3","gravatar_id":"","url":"https://api.github.com/users/ulf1","html_url":"https://github.com/ulf1","followers_url":"https://api.github.com/users/ulf1/followers","following_url":"https://api.github.com/users/ulf1/following{/other_user}","gists_url":"https://api.github.com/users/ulf1/gists{/gist_id}","starred_url":"https://api.github.com/users/ulf1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulf1/subscriptions","organizations_url":"https://api.github.com/users/ulf1/orgs","repos_url":"https://api.github.com/users/ulf1/repos","events_url":"https://api.github.com/users/ulf1/events{/privacy}","received_events_url":"https://api.github.com/users/ulf1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-02T11:06:03Z","updated_at":"2016-02-02T19:08:59Z","closed_at":null,"body":"Hello, i hope someone can help. \r\n\r\nI installed Cling using simply this script\r\n\r\nhttps://raw.github.com/karies/cling-all-in-one/master/clone.sh\r\n\r\nI also added Cling to my PATH variable (in .bashrc), and can run stuff like this\r\n\r\n`cling '#include <stdio.h>' 'printf(\"Hello World!\\n\")'`\r\n\r\nNext I open my activate my virtualenv with Python 3.5.0 where Jupyter is installed (There is no Jupyter in my operating systems python3). There is no problem with Jupyter/Python3 within a virtualenv bcoz I am using it everyday. There is also not a problem with PATH and cling within the virtualenv (I can call call \"cling\" within the virtualenv).\r\n\r\nIf i am trying to install cling in jupyter\r\n`source /locationofmyvirtualenv/bin/activate`\r\n`jupyter kernelspec install cling`\r\n\r\nI get the following error message\r\n\r\n<pre>\r\n...\r\n(venv-3.5.0)username@hostname:~$ jupyter kernelspec install cling\r\nTraceback (most recent call last):\r\n  File \"/locationofmyvirtualenv/bin/jupyter-kernelspec\", line 11, in <module>\r\n    sys.exit(KernelSpecApp.launch_instance())\r\n  File \"/locationofmyvirtualenv/lib/python3.5/site-packages/traitlets/config/application.py\", line 589, in launch_instance\r\n    app.start()\r\n  File \"/locationofmyvirtualenv/lib/python3.5/site-packages/jupyter_client/kernelspecapp.py\", line 209, in start\r\n    return self.subapp.start()\r\n  File \"/locationofmyvirtualenv/lib/python3.5/site-packages/jupyter_client/kernelspecapp.py\", line 138, in start\r\n    replace=self.replace,\r\n  File \"/locationofmyvirtualenv/lib/python3.5/site-packages/jupyter_client/kernelspec.py\", line 208, in install_kernel_spec\r\n    shutil.copytree(source_dir, destination)\r\n  File \"/locationofmyvirtualenv/lib/python3.5/shutil.py\", line 303, in copytree\r\n    names = os.listdir(src)\r\nFileNotFoundError: [Errno 2] No such file or directory: 'cling'\r\n... \r\n</pre>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/root-mirror/cling/issues/comments/178763601","html_url":"https://github.com/root-mirror/cling/issues/1#issuecomment-178763601","issue_url":"https://api.github.com/repos/root-mirror/cling/issues/1","id":178763601,"user":{"login":"karies","id":144675,"avatar_url":"https://avatars.githubusercontent.com/u/144675?v=3","gravatar_id":"","url":"https://api.github.com/users/karies","html_url":"https://github.com/karies","followers_url":"https://api.github.com/users/karies/followers","following_url":"https://api.github.com/users/karies/following{/other_user}","gists_url":"https://api.github.com/users/karies/gists{/gist_id}","starred_url":"https://api.github.com/users/karies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karies/subscriptions","organizations_url":"https://api.github.com/users/karies/orgs","repos_url":"https://api.github.com/users/karies/repos","events_url":"https://api.github.com/users/karies/events{/privacy}","received_events_url":"https://api.github.com/users/karies/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T19:08:59Z","updated_at":"2016-02-02T19:08:59Z","body":"Yup, indeed - the doc was not clear. I /believe/ that this is the correct procedure:\r\n```\r\nTo install the kernel with sources in cling/src:\r\n\r\n    cd cling/src/tools/Jupyter/kernel/\r\n     pip install -e .\r\n     # register the kernelspec:\r\n     jupyter kernelspec install [--user] cling\r\n```\r\nCould you confirm?"}}