mojolingo / sippy_cup

Create SIP load test scenarios the easy way
http://mojolingo.github.io/sippy_cup
MIT License
219 stars 78 forks source link

unable to run scenario #63

Closed neerajnagi closed 10 years ago

neerajnagi commented 10 years ago

[root@ip-172-31-22-46 ~]# sippy_cup -r test.yml /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.3.0/lib/sippy_cup/scenario.rb:47:in from_manifest': undefined methodsafe_load' for Psych:Module (NoMethodError) from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.3.0/bin/sippy_cup:62:in <top (required)>' from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/sippy_cup:23:inload' from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/sippy_cup:23:in <main>' from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:ineval' from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `

'

bklang commented 10 years ago

I can't reproduce this. I've tried on both Ruby 2.0 and Ruby 2.1. Perhaps your version of libyaml is too old?

zconkle commented 10 years ago

I am getting this same error. I reverted back to ruby 1.9.3 and still got the same issue.

bklang commented 10 years ago

ok, I'm finally able to reproduce this. Looking into it.

bklang commented 10 years ago

Ok, I found the problem.

According to this Github issue discussion Psych#safe_load was introduced in Psych version 2.0.0. But it doesn't actually show up until Psych version 2.0.1.

I'm fixing this by updating sippy_cup's requirement to use Psych 2.0.1 as a minimum. I'll publish a fixed gem shortly.

bklang commented 10 years ago

Fixed in version 0.4.0