Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > what does this error mean `activate': can't activate activesupport (=3.0.1, runtime) for ["activerecord-3.0.1"]

Reply
Thread Tools

what does this error mean `activate': can't activate activesupport (=3.0.1, runtime) for ["activerecord-3.0.1"]

 
 
Junkone
Guest
Posts: n/a
 
      10-23-2010
i am using active record in my program and cannot understand what this
error means.

require 'watir'

include Watir
require 'active_record'

ActiveRecord::Base.establish_connection(
:adapter => "mysql",
:host => "127.0.0.1",
#:host => "sun",
:database => "Trader",
:username => "root",
assword => "password"
)
class Rawdata < ActiveRecord::Base
set_table_name "rawdatas"

end

E:\TradingTools\trader\app\helpers>GrabMBTTrades.r b
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `activate': can't
activate
activesupport (= 3.0.1, runtime) for ["activerecord-3.0.1"], already
activated a
ctivesupport-2.3.9 for ["firewatir-1.6.6", "watir-1.6.6"]
(Gem::LoadError)
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:249:in
`activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:248:in
`each'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:248:in
`activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:35:in
`require'
from E:/TradingTools/trader/app/helpers/GrabMBTTrades.rb:8
 
Reply With Quote
 
 
 
 
Luis Lavena
Guest
Posts: n/a
 
      10-23-2010
On Oct 23, 11:37*am, Junkone <(E-Mail Removed)> wrote:
> i am using active record in my program and cannot understand what this
> error means.
>
> require 'watir'
>
> include Watir
> require 'active_record'
>
> ActiveRecord::Base.establish_connection(
> :adapter => "mysql",
> :host => "127.0.0.1",
> #:host => "sun",
> :database => "Trader",
> :username => "root",
> assword => "password"
> )
> class Rawdata < ActiveRecord::Base
> * *set_table_name "rawdatas"
>
> end
>
> E:\TradingTools\trader\app\helpers>GrabMBTTrades.r b
> C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `activate': can't
> activate
> activesupport (= 3.0.1, runtime) for ["activerecord-3.0.1"], already
> activated a
> ctivesupport-2.3.9 for ["firewatir-1.6.6", "watir-1.6.6"]
> (Gem::LoadError)


It is telling you that firewater and watir required activesupport
2.3.9, so if you want ActiveSupport 3.0.1 you need to require it first
(before requiring watir)

--
Luis Lavena
 
Reply With Quote
 
 
 
 
Jarmo Pertman
Guest
Posts: n/a
 
      10-27-2010
In that case Watir will raise an exception because it strictly loads
2.3.9. There is plan to remove active-support dependency completely in
FireWatir

Jarmo

On Oct 23, 5:58*pm, Luis Lavena <(E-Mail Removed)> wrote:
> On Oct 23, 11:37*am, Junkone <(E-Mail Removed)> wrote:
>
>
>
>
>
> > i am using active record in my program and cannot understand what this
> > error means.

>
> > require 'watir'

>
> > include Watir
> > require 'active_record'

>
> > ActiveRecord::Base.establish_connection(
> > :adapter => "mysql",
> > :host => "127.0.0.1",
> > #:host => "sun",
> > :database => "Trader",
> > :username => "root",
> > assword => "password"
> > )
> > class Rawdata < ActiveRecord::Base
> > * *set_table_name "rawdatas"

>
> > end

>
> > E:\TradingTools\trader\app\helpers>GrabMBTTrades.r b
> > C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `activate': can't
> > activate
> > activesupport (= 3.0.1, runtime) for ["activerecord-3.0.1"], already
> > activated a
> > ctivesupport-2.3.9 for ["firewatir-1.6.6", "watir-1.6.6"]
> > (Gem::LoadError)

>
> It is telling you that firewater and watir required activesupport
> 2.3.9, so if you want ActiveSupport 3.0.1 you need to require it first
> (before requiring watir)
>
> --
> Luis Lavena


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
weighted mean; weighted standard error of the mean (sem) C Barrington-Leigh Python 1 09-10-2010 02:03 AM
Can't get ActiveSupport::Multibyte going Tim Bray Ruby 0 10-12-2006 11:49 PM
Value of ActiveSupport's Modularization Trans Ruby 0 09-12-2006 03:09 PM
can activesupport gem be used in "standalone" fashion? john peter Ruby 3 03-31-2006 09:03 PM
`report_activate_error': Could not find RubyGem activesupport han Ruby 0 10-25-2005 03:37 PM



Advertisments