iruby icon indicating copy to clipboard operation
iruby copied to clipboard

Unable to start kernal

Open Abhishek-sopho opened this issue 7 years ago • 3 comments

I'm getting following errors while running iruby notebook. The kernel doesn't seem to start and gives following errors:

[I 01:16:07.580 NotebookApp] Kernel started: 359b3824-4323-4ee4-b46e-c790146807ac
[I 01:16:10.577 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
/usr/bin/env: ‘ruby_executable_hooks’: No such file or directory
[I 01:16:13.586 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
/usr/bin/env: ‘ruby_executable_hooks’: No such file or directory
[I 01:16:16.599 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
/usr/bin/env: ‘ruby_executable_hooks’: No such file or directory
[I 01:16:19.612 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports

Abhishek-sopho avatar Feb 26 '18 19:02 Abhishek-sopho

This looks like an issue with your Ruby installation. What platform are you on? How did you instal ruby? What is the output of iruby --version?

kylekyle avatar Feb 28 '18 23:02 kylekyle

ruby_executable_hooks #109

kojix2 avatar Aug 12 '19 10:08 kojix2

I'm using rvm to manage my ruby installation and I faced the same issue, but only when I'm running jupyter via anaconda navigator started with following .desktop shortcut

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Comment=Scientific Python Development Environment - Python3
Exec=bash -c 'export PATH="/home/vladimir/anaconda3/bin:$PATH" && /home/vladimir/anaconda3/bin/anaconda-navigator'
Categories=Development;Science;IDE;Qt;Education;
Icon=/home/vladimir/anaconda3/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true
MimeType=text/x-python;

I've tried to run start navigator in terminal with command bash -c 'export PATH="/home/vladimir/anaconda3/bin:$PATH" && /home/vladimir/anaconda3/bin/anaconda-navigator' and everything worked fine. So I tried to add --login -i options into .desktop file, and it fixed the problem, but only when this file is placed in my home directory.

Hope it will help you if you're starting anaconda using one of solutions provided here.

uvlad7 avatar Sep 12 '21 21:09 uvlad7