Skip to content

Problem.new causes TypeError: in method 'double_setitem' #4

Description

@mrgordon

Any thoughts on the following error that is occurring in the Problem initialize method? It works on my local OS X box but is failing on an Ubuntu 10.04 box.

1.9.3p125 :028 > Problem.new( [1, 1, 0] , [[0], [0], [1]]) TypeError: in method 'double_setitem', argument 1 of type 'double *' from /workspace/vendor/bundle/ruby/1.9.1/gems/tomz-libsvm-ruby-swig-0.3.3/lib/svm.rb:145:in double_setitem'
from /workspace/vendor/bundle/ruby/1.9.1/gems/tomz-libsvm-ruby-swig-0.3.3/lib/svm.rb:145:in block in initialize' from /workspace/vendor/bundle/ruby/1.9.1/gems/tomz-libsvm-ruby-swig-0.3.3/lib/svm.rb:144:in each'
from /workspace/vendor/bundle/ruby/1.9.1/gems/tomz-libsvm-ruby-swig-0.3.3/lib/svm.rb:144:in initialize' from (irb):28:in new'
from (irb):28
from /workspace/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands/console.rb:47:in start' from /workspace/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands/console.rb:8:in start'
from /workspace/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:41:in <top (required)>' from script/rails:6:in require'
from script/rails:6:in <main>'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions