jupyter - Juypter notebook can't find R kernel on El Capitan public beta -


i installed el capitan beta on spare computer test purposes try identify potential issues before others in our data science team upgrade day day machines once final release out sometime fall (note: can navigate around unix far mac programmer). kernels python 2 , 3 work fine, when try load r kernel following messages:

from within jupyter notebook get:

traceback (most recent call last):   file "/users/test/anaconda/lib/python3.4/site-packages/ipython/html/base/handlers.py", line 365, in wrapper     result = yield gen.maybe_future(method(self, *args, **kwargs))   file "/users/test/anaconda/lib/python3.4/site-packages/ipython/html/services/sessions/handlers.py", line 53, in post     model = sm.create_session(path=path, kernel_name=kernel_name)   file "/users/test/anaconda/lib/python3.4/site-packages/ipython/html/services/sessions/sessionmanager.py", line 66, in create_session     kernel_name=kernel_name)   file "/users/test/anaconda/lib/python3.4/site-packages/ipython/html/services/kernels/kernelmanager.py", line 84, in start_kernel     kernel_name=kernel_name, **kwargs)   file "/users/test/anaconda/lib/python3.4/site-packages/ipython/kernel/multikernelmanager.py", line 112, in start_kernel     km.start_kernel(**kwargs)   file "/users/test/anaconda/lib/python3.4/site-packages/ipython/kernel/manager.py", line 240, in start_kernel     **kw)   file "/users/test/anaconda/lib/python3.4/site-packages/ipython/kernel/manager.py", line 189, in _launch_kernel     return launch_kernel(kernel_cmd, **kw)   file "/users/test/anaconda/lib/python3.4/site-packages/ipython/kernel/launcher.py", line 213, in launch_kernel     proc = popen(cmd, **kwargs)   file "/users/test/anaconda/lib/python3.4/subprocess.py", line 859, in __init__     restore_signals, start_new_session)   file "/users/test/anaconda/lib/python3.4/subprocess.py", line 1457, in _execute_child     raise child_exception_type(errno_num, err_msg) filenotfounderror: [errno 2] no such file or directory: 'r' 

and following error messages in terminal.

[e 19:44:58.862 notebookapp] unhandled error in api request     traceback (most recent call last):       file "/users/test/anaconda/lib/python3.4/site-packages/ipython/html/base/handlers.py", line 365, in wrapper         result = yield gen.maybe_future(method(self, *args, **kwargs))       file "/users/test/anaconda/lib/python3.4/site-packages/ipython/html/services/sessions/handlers.py", line 53, in post         model = sm.create_session(path=path, kernel_name=kernel_name)       file "/users/test/anaconda/lib/python3.4/site-packages/ipython/html/services/sessions/sessionmanager.py", line 66, in create_session         kernel_name=kernel_name)       file "/users/test/anaconda/lib/python3.4/site-packages/ipython/html/services/kernels/kernelmanager.py", line 84, in start_kernel         kernel_name=kernel_name, **kwargs)       file "/users/test/anaconda/lib/python3.4/site-packages/ipython/kernel/multikernelmanager.py", line 112, in start_kernel         km.start_kernel(**kwargs)       file "/users/test/anaconda/lib/python3.4/site-packages/ipython/kernel/manager.py", line 240, in start_kernel         **kw)       file "/users/test/anaconda/lib/python3.4/site-packages/ipython/kernel/manager.py", line 189, in _launch_kernel         return launch_kernel(kernel_cmd, **kw)       file "/users/test/anaconda/lib/python3.4/site-packages/ipython/kernel/launcher.py", line 213, in launch_kernel         proc = popen(cmd, **kwargs)       file "/users/test/anaconda/lib/python3.4/subprocess.py", line 859, in __init__         restore_signals, start_new_session)       file "/users/test/anaconda/lib/python3.4/subprocess.py", line 1457, in _execute_child         raise child_exception_type(errno_num, err_msg)     filenotfounderror: [errno 2] no such file or directory: 'r' [e 19:44:58.870 notebookapp] {       "accept-language": "en-us,en;q=0.8",       "content-length": "72",       "accept": "application/json, text/javascript, */*; q=0.01",       "dnt": "1",       "x-requested-with": "xmlhttprequest",       "content-type": "application/x-www-form-urlencoded; charset=utf-8",       "origin": "http://localhost:8888",       "referer": "http://localhost:8888/notebooks/untitled4.ipynb?kernel_name=ir",       "accept-encoding": "gzip, deflate",       "connection": "keep-alive",       "host": "localhost:8888",       "user-agent": "mozilla/5.0 (macintosh; intel mac os x 10_11_0) applewebkit/537.36 (khtml, gecko) chrome/43.0.2357.132 safari/537.36"     } [e 19:44:58.870 notebookapp] 500 post /api/sessions (::1) 25.54ms referer=http://localhost:8888/notebooks/untitled4.ipynb?kernel_name=ir [i 20:04:04.914 notebookapp] creating new notebook in [i 20:04:05.707 notebookapp] kernel started: 75ef1aa5-453d-4a18-94df-eae30238c688 

my first thought try reinstall r kernel (and dependencies), dependencies must compiled binaries , require xcode (for there not public beta). know of potential work around (or have ideas start looking)? i'm trying figure out if can fix on our own or if need wait on official fix jupyter group. in advance.

was able working. updating beta messed r $path homebrew , dependencies. taking following steps has fixed of issues experiencing.

1) reinstall revolution r open (or preferred r install. rro because includes intel mkl - math kernel library)

2) fix homebrew permissions:

$ sudo chown -r "$user":admin /usr/local 

3) cleanup homebrew install:

$ rm -rf /usr/local/cellar /usr/local/.git && brew cleanup 

4) reinstall homebew:

$ ruby -e "$(curl -fssl https://raw.githubusercontent.com/homebrew/install/master/install)" 

5) install os x command line tools (if not installed):

$ xcode-select --install 

6) install zqm:

$ brew install zmq 

7) launch r in terminal

$r 

8) run following:

install.packages(c('rzmq','repr','irkernel','irdisplay'),                  repos = c('http://irkernel.github.io/', getoption('repos')),                  type = 'source') irkernel::installspec() 

opening new terminal window , launching jupyter should work.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -