Closed Sylfrena closed 5 years ago
I didn't understand why you are getting this, in between :
bundler: failed to load command: rspec (/home/sumera/.rbenv/versions/2.5.1/bin/rspec)
...: command not found
@Shekharrajak Yes, it is very puzzling. Initially I thought the command is just unable to access rspec
but even after I changed and verified paths, still no show.
Can you please try with different Ruby version - like Ruby 2.4 ?
Related issue https://github.com/SciRuby/packable/issues/4
Travis is configured only for Ruby < 2.5, so please use lower Ruby version for now or need to work in it to make this rspec
compatible for higher ruby version.
@Shekharrajak Thanks so much! Changing the Ruby version worked like a charm! I think it would be helpful for newbie contributors if in CONTRIBUTING.md , this issue was mentioned. May I make a pull request for the same? I'll close this issue for now.
Yes, that will be helpful. You can also add link of this issue, so that anyone can explore it further.
@Shekharrajak I made a PR regarding this here. Please let me know if there are any changes I need to make.
Actual error is :
/gems/packable-1.3.10/lib/packable/extensions/io.rb:86:in `pos': Illegal seek @ rb_io_tell - <STDOUT> (Errno::ESPIPE)
I'm using Ubuntu 18.04.1 LTS. I was following instructions mentioned at here.
Here is what I did:
Then install remaining dependencies:
$ bundle install
And run the test suite (should be all green with pending tests):
$ bundle exec rspec
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................./home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/nmatrix-0.2.4/lib/nmatrix/monkeys.rb:49: warning: constant ::Fixnum is deprecated .........................................................................................................................................................F......................................*................................................................................./home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rserve-client-0.3.5/lib/rserve/rexp/wrapper.rb:26: warning: constant ::Fixnum is deprecated /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rserve-client-0.3.5/lib/rserve/rexp/wrapper.rb:56: warning: constant ::Fixnum is deprecated ./home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rserve-client-0.3.5/lib/rserve/rexp/wrapper.rb:26: warning: constant ::Fixnum is deprecated /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rserve-client-0.3.5/lib/rserve/rexp/wrapper.rb:56: warning: constant ::Fixnum is deprecated ...NOTE: Daru::Vector#only_valid is deprecated; use reject_values instead. It will be removed on or after 2016-10-01. Daru::Vector#only_valid called from /home/sumera/.rbenv/versions/2.5.1/lib/ruby/2.5.0/delegate.rb:83. .....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
bundler: failed to load command: rspec (/home/sumera/.rbenv/versions/2.5.1/bin/rspec) ...: command not found --- ERROR REPORT TEMPLATE -------------------------------------------------------
Error Report
Questions
Please fill out answers to these questions, it'll help us figure out why things are going wrong.
What did you do?
I ran the command
bundle exec rspec
What did you expect to happen?
I expected Bundler to run the test suite.
What happened instead?
Instead, what happened was error occurred saying, bundler: failed to load command: rspec (/usr/local/bin/rspec)
Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?
I tried google , came across this
Have you read our issues document, https://github.com/bundler/bundler/blob/master/doc/contributing/ISSUES.md?
yes
Backtrace
Environment
Bundler Build Metadata
Bundler settings
Gemfile
Gemfile
Gemfile.lock
Gemspecs
daru.gemspec
--- TEMPLATE END ----------------------------------------------------------------
Unfortunately, an unexpected error occurred, and Bundler cannot continue.
First, try this link to see if there are any existing issue reports for this error: https://github.com/bundler/bundler/search?q=Illegal+seek+%40+rb_io_tell+-+%3CSTDERR%3E&type=Issues
If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at: https://github.com/bundler/bundler/issues/new Traceback (most recent call last): 9: from /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/simplecov-0.16.1/lib/simplecov/defaults.rb:27:in (Errno::ESPIPE)
block in <top (required)>' 8: from /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/simplecov-0.16.1/lib/simplecov.rb:200:in
run_exit_tasks!' 7: from /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/simplecov-0.16.1/lib/simplecov/configuration.rb:182:inblock in at_exit' 6: from /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/simplecov-0.16.1/lib/simplecov/result.rb:48:in
format!' 5: from /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/simplecov-html-0.10.2/lib/simplecov-html.rb:25:informat' 4: from /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/simplecov-html-0.10.2/lib/simplecov-html.rb:25:in
puts' 3: from /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/simplecov-html-0.10.2/lib/simplecov-html.rb:25:inputs' 2: from /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/packable-1.3.10/lib/packable/extensions/io.rb:62:in
write_with_packing' 1: from /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/packable-1.3.10/lib/packable/extensions/io.rb:86:inpack_and_write' /home/sumera/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/packable-1.3.10/lib/packable/extensions/io.rb:86:in
pos': Illegal seek @ rb_io_tell -