A
appleman
So I get this strange error when I have the follow two gems in the same
program:
require 'parseexcel'
require 'classifier' #bayesian library
Here's the error:
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:274:in
`get_nth_block_no': undefined method `times' for 1/2:Rational
(NoMethodError)
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:286:in
`get_nth_pps'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:281:in
`fetch'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:281:in
`get_nth_pps'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:327:in
`search_pps'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:343:in
`search_pps'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:341:in
`each'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:341:in
`search_pps'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/parser.rb:173:in
`parse'
When I comment out require 'classifier' then it works as expected.
Anyone have any clue why this would be happening? I looked through the
classifier code and didn't find anything strange.
Any help would be appreciated.
Cheers.
program:
require 'parseexcel'
require 'classifier' #bayesian library
Here's the error:
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:274:in
`get_nth_block_no': undefined method `times' for 1/2:Rational
(NoMethodError)
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:286:in
`get_nth_pps'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:281:in
`fetch'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:281:in
`get_nth_pps'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:327:in
`search_pps'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:343:in
`search_pps'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:341:in
`each'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/olestorage.rb:341:in
`search_pps'
from
c:/Ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.1.1/lib/parseexcel/parser.rb:173:in
`parse'
When I comment out require 'classifier' then it works as expected.
Anyone have any clue why this would be happening? I looked through the
classifier code and didn't find anything strange.
Any help would be appreciated.
Cheers.