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

Installation Help #70

Closed
wta12 opened this issue Jan 15, 2018 · 14 comments · Fixed by #147
Closed

Installation Help #70

wta12 opened this issue Jan 15, 2018 · 14 comments · Fixed by #147

Comments

@wta12
Copy link

wta12 commented Jan 15, 2018

get problems with installation on windows 10
gem install daru-view Invalid argument @ rb_sysopen - D:/SIM/script/ruby/setup/ruby22/lib/ruby/gems/2.2.0/gems/daru-view-0.1.0/spec/dummy_iruby/.ipynb_checkpoints/DataTables | basic examples-checkpoint.ipynb

@Shekharrajak
Copy link
Member

@wta12 , what do you see with this gem install daru-view --verbose --backtrace ?

@wta12
Copy link
Author

wta12 commented Jan 15, 2018

D:/SIM/script/ruby/setup/ruby22/lib/ruby/gems/2.2.0/gems/daru-view-0.1.0/spec/dummy_iruby/.ipynb_checkpoints/Daru DataFrame and DataTables-checkpoint.ipynb
ERROR: While executing gem ... (Errno::EINVAL)
Invalid argument @ rb_sysopen - D:/SIM/script/ruby/setup/ruby22/lib/ruby/gems/2.2.0/gems/daru-view-0.1.0/spec/dummy_iruby/.ipynb_checkpoints/DataTables | basic examples-checkpoint.ipynb
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:383:in initialize' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:383:in open'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:383:in block (2 levels) in extract_tar_gz' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package/tar_reader.rb:65:in each'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:365:in block in extract_tar_gz' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:459:in block in open_tar_gz'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:456:in wrap' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:456:in open_tar_gz'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:364:in extract_tar_gz' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:345:in block (2 levels) in extract_files'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package/tar_reader.rb:65:in each' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:342:in block in extract_files'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package/file_source.rb:30:in open' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package/file_source.rb:30:in with_read_io'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:339:in extract_files' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/installer.rb:779:in extract_files'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/installer.rb:302:in install' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/resolver/specification.rb:97:in install'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:166:in block in install' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:156:in each'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:156:in install' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:205:in install_gem'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:255:in block in install_gems' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:251:in each'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:251:in install_gems' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:158:in execute'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/command.rb:310:in invoke_with_build_args' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/command_manager.rb:169:in process_args'
D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/command_manager.rb:139:in run' D:/SIM/script/ruby/setup/ruby22/lib/ruby/site_ruby/2.2.0/rubygems/gem_runner.rb:55:in run'
D:/SIM/script/ruby/setup/ruby22/bin/gem:21:in `

'

@Shekharrajak
Copy link
Member

@wta12,
Please try this once


gem install specific_install
gem specific_install https://github.com/SciRuby/daru-view

Let me know if you find other error.

@wta12
Copy link
Author

wta12 commented Jan 15, 2018

Below are error's code
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/DataTables | basic examples-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Line Chart-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Area Chart-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bar Chart-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bubble Chart-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Candlestick Chart-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Combo Chart-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Histogram-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Org Chart-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Pie Chart-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Stepped Area Chart-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Timeline-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Treemap-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Chart | gauge-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Basics-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Column Charts-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Geo Charts examples-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Scatter Chart-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/GoolgeChart | Datatables-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Highcharts | add_series method and highcharts examples-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Nyaplot basics | Daru Examples-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/.ipynb_checkpoints/Nyaplot | Creating Visualizations with DataFrame | from daru examples-checkpoint.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/DataTables | basic examples.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Line Chart.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Area Chart.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Bar Chart.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Bubble Chart.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Candlestick Chart.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Combo Chart.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Histogram.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Org Chart.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Pie Chart.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Stepped Area Chart.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Timeline.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | Treemap.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Chart | gauge.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Charts | Basics.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Charts | Column Charts.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Charts | Geo Charts examples.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Google Charts | Scatter Chart.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/GoolgeChart | Datatables.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Highcharts | add_series method and highcharts examples.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Nyaplot basics | Daru Examples.ipynb: Invalid argument
error: unable to create file spec/dummy_iruby/Nyaplot | Creating Visualizations with DataFrame | from daru examples.ipynb: Invalid argument
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

WARNING: open-ended dependency on bundler (>= 0, development) is not recommended
if bundler is semantically versioned, use:
add_development_dependency 'bundler', '> 0'
WARNING: open-ended dependency on rspec (>= 0, development) is not recommended
if rspec is semantically versioned, use:
add_development_dependency 'rspec', '
> 0'
WARNING: open-ended dependency on simplecov (>= 0, development) is not recommended
if simplecov is semantically versioned, use:
add_development_dependency 'simplecov', '> 0'
WARNING: open-ended dependency on rake (>= 0, development) is not recommended
if rake is semantically versioned, use:
add_development_dependency 'rake', '
> 0'
WARNING: open-ended dependency on pry (>= 0, development) is not recommended
if pry is semantically versioned, use:
add_development_dependency 'pry', '> 0'
WARNING: open-ended dependency on pry-byebug (>= 0, development) is not recommended
if pry-byebug is semantically versioned, use:
add_development_dependency 'pry-byebug', '
> 0'
WARNING: open-ended dependency on rubocop (>= 0, development) is not recommended
if rubocop is semantically versioned, use:
add_development_dependency 'rubocop', '> 0'
WARNING: open-ended dependency on google_visualr (>= 0) is not recommended
if google_visualr is semantically versioned, use:
add_runtime_dependency 'google_visualr', '
> 0'
WARNING: open-ended dependency on lazy_high_charts (>= 0) is not recommended
if lazy_high_charts is semantically versioned, use:
add_runtime_dependency 'lazy_high_charts', '> 0'
WARNING: open-ended dependency on daru (>= 0) is not recommended
if daru is semantically versioned, use:
add_runtime_dependency 'daru', '
> 0'
WARNING: open-ended dependency on nyaplot (>= 0) is not recommended
if nyaplot is semantically versioned, use:
add_runtime_dependency 'nyaplot', '> 0'
WARNING: open-ended dependency on daru-data_tables (>= 0) is not recommended
if daru-data_tables is semantically versioned, use:
add_runtime_dependency 'daru-data_tables', '
> 0'
WARNING: open-ended dependency on actionview (>= 0) is not recommended
if actionview is semantically versioned, use:
add_runtime_dependency 'actionview', '> 0'
WARNING: open-ended dependency on rubygems-tasks (>= 0, development) is not recommended
if rubygems-tasks is semantically versioned, use:
add_development_dependency 'rubygems-tasks', '
> 0'
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: daru-view
Version: 0.1.0
File: daru-view-0.1.0.gem
Successfully installed

@Shekharrajak
Copy link
Member

Shekharrajak commented Jan 16, 2018

@wta12 , daru-view is installed in your system. The error: unable to create file means, you don't have ipython jupyter notebook install (probably). Those were just a iruby notebook files, don't worry about that. You can use daru-view gem now.

@wta12
Copy link
Author

wta12 commented Feb 7, 2018 via email

@Shekharrajak
Copy link
Member

@wta12, now u r not getting errors right?

@wta12
Copy link
Author

wta12 commented Feb 7, 2018

require 'daru/view'
LoadError: cannot load such file -- daru/view

image

@Shekharrajak
Copy link
Member

@wta12 , Can you check once, whether daru-view is installed properly in windows system using command ? What do you see with this command gem list daru? Are you able to do require 'daru' ? When I installed it in isolated windows system, I was able to run it.

@Shekharrajak
Copy link
Member

Ping @wta12, fixed ?

@kojix2
Copy link
Member

kojix2 commented Feb 14, 2019

Hi @wta12 @Shekharrajak

I scceeded to install daru-view on Windows 10.

At first I tried specific_install @Shekharrajak recommended above.

gem specifc_install https://github.com/SciRuby/daru-view.git

And this is the error message.

Cloning into '/tmp/d20190214-5104-13m6cq9'...
warning: redirecting to https://github.com/SciRuby/daru-view.git/
WARNING:  See http://guides.rubygems.org/specification-reference/ for help
ERROR:  While executing gem ... (Gem::InvalidSpecificationException)
    ["spec/dummy_iruby/.ipynb_checkpoints/Google Chart |  Line Chart-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Area Chart-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bar Chart-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Bubble Chart-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Candlestick Chart-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Combo Chart-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Histogram-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Org Chart-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Pie Chart-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Stepped Area Chart-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Timeline-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | Treemap-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Chart | gauge-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Basics-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Column Charts-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Geo Charts examples-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Google Charts | Scatter Chart-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/GoolgeChart | Datatables-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Highcharts | add_series method and highcharts examples-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Nyaplot basics | Daru Examples-checkpoint.ipynb", 
"spec/dummy_iruby/.ipynb_checkpoints/Nyaplot | Creating Visualizations with DataFrame  |  from daru examples-checkpoint.ipynb", 
"spec/dummy_iruby/DataTables | basic examples.ipynb", 
"spec/dummy_iruby/Google Chart |  Line Chart.ipynb", 
"spec/dummy_iruby/Google Chart | Area Chart (export examples also).ipynb", 
"spec/dummy_iruby/Google Chart | Area Chart.ipynb", 
"spec/dummy_iruby/Google Chart | Bar Chart.ipynb", 
"spec/dummy_iruby/Google Chart | Bubble Chart.ipynb", 
"spec/dummy_iruby/Google Chart | Candlestick Chart.ipynb", 
"spec/dummy_iruby/Google Chart | Combo Chart.ipynb", 
"spec/dummy_iruby/Google Chart | Data from google spreadsheet.ipynb", 
"spec/dummy_iruby/Google Chart | Histogram.ipynb", 
"spec/dummy_iruby/Google Chart | Org Chart.ipynb", 
"spec/dummy_iruby/Google Chart | Pie Chart.ipynb", 
"spec/dummy_iruby/Google Chart | Stepped Area Chart.ipynb", 
"spec/dummy_iruby/Google Chart | Timeline.ipynb", 
"spec/dummy_iruby/Google Chart | Treemap.ipynb", 
"spec/dummy_iruby/Google Chart | gauge.ipynb", 
"spec/dummy_iruby/Google Charts | Basics.ipynb", 
"spec/dummy_iruby/Google Charts | ChartEditor.ipynb", 
"spec/dummy_iruby/Google Charts | Chartwrapper.ipynb", 
"spec/dummy_iruby/Google Charts | Column Charts.ipynb", 
"spec/dummy_iruby/Google Charts | Event Handling.ipynb", 
"spec/dummy_iruby/Google Charts | Geo Charts examples.ipynb", 
"spec/dummy_iruby/Google Charts | Scatter Chart.ipynb", 
"spec/dummy_iruby/GoogleChart | DataTables-Formatters.ipynb", 
"spec/dummy_iruby/GoolgeChart | Datatables.ipynb", 
"spec/dummy_iruby/HighMaps | General.ipynb", 
"spec/dummy_iruby/HighMaps | Series Types.ipynb", 
"spec/dummy_iruby/Highcharts | add_series method and highcharts examples.ipynb", 
"spec/dummy_iruby/Nyaplot basics | Daru Examples.ipynb", 
"spec/dummy_iruby/Nyaplot | Creating Visualizations with DataFrame  |  from daru examples.ipynb"] 
are not files

Yes, they are files.
So I look into daru-view.gemspec.

spec.files = `git ls-files -z`.split("\x0")

I run the script below.

puts `git ls-files -z`.split("\x0")

And this is the result.

image

It seems that | may not be reccomended for Windows file system.
Highcharts notebook that include a hyphen instead of a vertical bar in their names earn no errors.

So I replace | with -.
I don't care about unit test. (I need to check and resolve the dependency of daru-view to make rake / bundler run before actually running the test anyway. )

gem build daru-view.gemspec
gem install daru-view-0.2.4.gem 

Installation was successful.
You probably need to rename these files for Windows.

@Shekharrajak
Copy link
Member

@kojix2 , thanks for pointing it out. I remember, I had deleted the checkpoints folder to get rid from these error. I don't understand what is the problem with | in ipynb_checkpoints file, while it works fine in ipynb file.

If it is working fine after renaming it then I will surely lookinto the PR.

@Shekharrajak
Copy link
Member

Shekharrajak commented Feb 24, 2019

When I tried to clone the repo I find these errors (although other than below ipynb files cloned properly):

capture

And this is fixed in #147 and able to install locally generated gem file smoothly

@Shekharrajak
Copy link
Member

Shekharrajak commented Feb 25, 2019

Now I am able to install 0.2.5, the new version , properly:

installed

@wta12 @kojix2

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

Successfully merging a pull request may close this issue.

3 participants