rake test_server fails #2

Closed
aruld opened this Issue Apr 18, 2012 · 5 comments

Projects

None yet

2 participants

@aruld
aruld commented Apr 18, 2012

I am trying to run the fakes3 tests. When I tried running "rake test_server", it fails with no such file to load. Any idea what is going wrong here?

arul:fake-s3 arul$ rake test_server
(in /Users/arul/github/local/fake-s3)
rake aborted!
no such file to load -- bundler
/Users/arul/github/local/fake-s3/Rakefile:1:in require' (See full trace by running task with --trace) arul:fake-s3 arul$ ls Gemfile Gemfile.lock README.md Rakefile bin fakes3.gemspec lib test arul:fake-s3 arul$ rake --trace test_server (in /Users/arul/github/local/fake-s3) rake aborted! no such file to load -- bundler /Users/arul/github/local/fake-s3/Rakefile:1:inrequire'
/Users/arul/github/local/fake-s3/Rakefile:1
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2383:in load' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2383:inraw_load_rakefile'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2017:in load_rakefile' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2068:instandard_exception_handling'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2016:in load_rakefile' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2000:inrun'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2068:in standard_exception_handling' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:1998:inrun'
/usr/bin/rake:31

@jubos
Owner
jubos commented Apr 19, 2012

To run the test cases, you probably need to do a

sudo gem install bundler
bundle install 
@aruld
aruld commented Apr 19, 2012

That did not work. Still shows the same error after installing bundler. Here is the output:

arul:fake-s3 arul$ sudo gem install bundler
Successfully installed bundler-1.1.3
1 gem installed
Installing ri documentation for bundler-1.1.3...
Installing RDoc documentation for bundler-1.1.3...

arul:fake-s3 arul$ bundle install
Fetching gem metadata from http://rubygems.org/.......
Enter your password to install the bundled RubyGems to your system:
Using builder (3.0.0)
Installing mime-types (1.18)
Installing xml-simple (1.1.1)
Installing aws-s3 (0.6.2)
Using bundler (1.1.3)
Using thor (0.14.6)
Using fakes3 (0.1.4) from source at .
Installing right_http_connection (1.3.0)
Installing right_aws (3.0.4)
Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.
arul:fake-s3 arul$ ls
Gemfile Gemfile.lock README.md Rakefile bin fakes3.gemspec lib test
arul:fake-s3 arul$ rake test_server
(in /Users/arul/github/local/fake-s3)
rake aborted!
no such file to load -- bundler
/Users/arul/github/local/fake-s3/Rakefile:1:in `require'
(See full trace by running task with --trace)

arul:fake-s3 arul$ bundle show fakes3
/Users/arul/github/local/fake-s3

Any clues?

Thanks!

@aruld
aruld commented Apr 19, 2012

Nevermind, reinstalling rake fixed the problem on OSX Lion.

@aruld aruld closed this Apr 19, 2012
@aruld aruld reopened this Apr 19, 2012
@aruld
aruld commented Apr 19, 2012

I am able to start the server fine after reinstalling rake. Now, when I run "rake test", I am getting this error:
arul:fake-s3 arul$ rake test --trace
** Invoke test (first_time)
** Execute test
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require': /Users/arul/github/local/fake-s3/test/right_aws_commands_test.rb:27: syntax error, unexpected ')' (SyntaxError) /Users/arul/github/local/fake-s3/test/right_aws_commands_test.rb:63: syntax error, unexpected $end, expecting kEND from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:inrequire'
from /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:15
from /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in select' from /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4 rake aborted! Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...] /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:increate_shell_runner'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in call' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:insh'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in sh' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:82:inruby'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in ruby' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/testtask.rb:99:indefine'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:60:in verbose' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/testtask.rb:98:indefine'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in call' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:inexecute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in each' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:inexecute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:insynchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in invoke_with_call_chain' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:ininvoke'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in invoke_task' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:intop_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in each' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:intop_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:intop_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in run' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:instandard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in run' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/bin/rake:33 /usr/bin/rake:19:inload'
/usr/bin/rake:19
Tasks: TOP => test
arul:fake-s3 arul$

@aruld
aruld commented Apr 19, 2012

I figured the problem with test/right_aws_commands_test.rb. Changing line#27 fixes this problem for me.

obj = @s3.get("s3media","helloworld")

@jubos jubos closed this Apr 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment