Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to related iruby with ruby_executable_hooks? #109

Open
bevokactp opened this issue Dec 2, 2016 · 0 comments
Open

How to related iruby with ruby_executable_hooks? #109

bevokactp opened this issue Dec 2, 2016 · 0 comments

Comments

@bevokactp
Copy link

My current environment

wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ irb --version
irb 0.9.6(09/06/30)
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ ruby --version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux-gnu]
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ uname -a
Linux wlysenko-Aspire 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ ipython --version
5.0.0
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ which ipython
/usr/local/bin/ipython
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ python --version
Python 2.7.6
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ python3 --version
Python 3.4.3
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ ruby2.3 --version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux-gnu]
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ ruby1.9.1 --version
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ iruby --version
IRuby 0.2.9, Ruby 2.3.1

I am try make 'import' needed modules and after install again ruby_executable_hooks

wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ irb
irb(main):001:0> require('rbczmq')
=> true
irb(main):002:0> require('iruby')
=> true
irb(main):003:0> require('executable_hooks')
LoadError: cannot load such file -- executable_hooks
	from /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from (irb):3
	from /usr/bin/irb:11:in `<main>'
irb(main):004:0> require('executable_hooks')
[5]+  Stopped                 irb
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ sudo gem install executable-hooks
Building native extensions.  This could take a while...
# In case of problems run the following command to update binstubs:
gem regenerate_binstubs
Successfully installed executable-hooks-1.3.2
Parsing documentation for executable-hooks-1.3.2
Done installing documentation for executable-hooks after 0 seconds
1 gem installed
wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ irb
irb(main):001:0> require('executable_hooks')
LoadError: cannot load such file -- executable_hooks
	from /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from (irb):1
	from /usr/bin/irb:11:in `<main>'
irb(main):002:0> require('executable-hooks')
LoadError: cannot load such file -- executable-hooks
	from /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from (irb):2
	from /usr/bin/irb:11:in `<main>'
irb(main):003:0> 
[6]+  Stopped                 irb

Installed gems for ruby2

wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ gem query --local

*** LOCAL GEMS ***

bigdecimal (default: 1.2.8)
bond (0.5.1)
data_uri (0.1.0)
executable-hooks (1.3.2)
io-console (default: 0.4.5)
iruby (0.2.9)
json (default: 1.8.3)
mimemagic (0.3.2)
multi_json (1.12.1)
psych (default: 2.0.17)
rbczmq (1.7.9)
rdoc (default: 4.2.1)
rubygems-update (2.6.8)

Run iruby
see logs (key words is /usr/bin/env: ruby_executable_hooks: No such file or directory)

wlysenko@wlysenko-Aspire ~/anaconda3/envs/ComputerHelper/project $ iruby notebook
/usr/local/bin/iruby differs from registered path /home/wlysenko/.rvm/gems/ruby-2.3.0/bin/iruby.
This might not work. Run 'iruby register --force' to fix it.
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future
[I 21:00:55.614 NotebookApp] Serving notebooks from local directory: /home/wlysenko/anaconda3/envs/ComputerHelper/project
[I 21:00:55.615 NotebookApp] 0 active kernels 
[I 21:00:55.615 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 21:00:55.615 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Created new window in existing browser session.
[W 21:00:57.869 NotebookApp] 404 GET /custom/fonts/exo-II-regular.ttf (127.0.0.1) 22.92ms referer=http://localhost:8888/custom/custom.css
[W 21:01:03.694 NotebookApp] 404 GET /custom/fonts/exo-II-regular.ttf (127.0.0.1) 2.86ms referer=http://localhost:8888/custom/custom.css
[W 21:01:04.520 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20161202210055 (127.0.0.1) 2.35ms referer=http://localhost:8888/notebooks/Untitled.ipynb
[W 21:01:04.594 NotebookApp] 404 GET /custom/fonts/firacode.otf (127.0.0.1) 1.57ms referer=http://localhost:8888/custom/custom.css
[E 21:01:07.366 NotebookApp] 500 POST /api/sessions (127.0.0.1) 191.94ms referer=http://localhost:8888/notebooks/Untitled.ipynb
[I 21:01:14.141 NotebookApp] Creating new notebook in 
[W 21:01:16.491 NotebookApp] 404 GET /custom/fonts/exo-II-regular.ttf (127.0.0.1) 1.51ms referer=http://localhost:8888/custom/custom.css
[W 21:01:17.055 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20161202210055 (127.0.0.1) 1.68ms referer=http://localhost:8888/notebooks/Untitled1.ipynb?kernel_name=ruby
[W 21:01:17.098 NotebookApp] 404 GET /custom/fonts/firacode.otf (127.0.0.1) 1.52ms referer=http://localhost:8888/custom/custom.css
/usr/bin/env: ruby_executable_hooks: No such file or directory
[I 21:01:17.255 NotebookApp] Kernel started: 2faf4ca2-dca3-47b8-b174-fd7ea15a76d2
[I 21:01:20.211 NotebookApp] KernelRestarter: restarting kernel (1/5)
/usr/bin/env: ruby_executable_hooks: No such file or directory
[I 21:01:23.220 NotebookApp] KernelRestarter: restarting kernel (2/5)
/usr/bin/env: ruby_executable_hooks: No such file or directory
[I 21:01:26.232 NotebookApp] KernelRestarter: restarting kernel (3/5)
/usr/bin/env: ruby_executable_hooks: No such file or directory
[W 21:01:27.294 NotebookApp] Timeout waiting for kernel_info reply from 2faf4ca2-dca3-47b8-b174-fd7ea15a76d2
[I 21:01:29.242 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel 2faf4ca2-dca3-47b8-b174-fd7ea15a76d2 restarted
/usr/bin/env: ruby_executable_hooks: No such file or directory
[W 21:01:32.257 NotebookApp] KernelRestarter: restart failed
[W 21:01:32.258 NotebookApp] Kernel 2faf4ca2-dca3-47b8-b174-fd7ea15a76d2 died, removing from map.
ERROR:root:kernel 2faf4ca2-dca3-47b8-b174-fd7ea15a76d2 restarted failed!
[W 21:01:32.285 NotebookApp] Kernel deleted before session
[W 21:01:32.286 NotebookApp] 410 DELETE /api/sessions/4be3858e-e91a-4b47-b269-3f95d4ee5206 (127.0.0.1) 1.82ms referer=http://localhost:8888/notebooks/Untitled1.ipynb?kernel_name=ruby
^C[I 21:01:38.623 NotebookApp] interrupted
Serving notebooks from local directory: /home/wlysenko/anaconda3/envs/ComputerHelper/project
0 active kernels 
The Jupyter Notebook is running at: http://localhost:8888/
Shutdown this notebook server (y/[n])? y
[C 21:01:39.869 NotebookApp] Shutdown confirmed
[I 21:01:39.870 NotebookApp] Shutting down kernels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant