Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mrgordon opened this issue Apr 25, 2012 · 1 comment
Open

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

mrgordon opened this issue Apr 25, 2012 · 1 comment

Comments

@mrgordon
Copy link
Contributor

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>'

@mrgordon
Copy link
Contributor Author

mrgordon commented May 2, 2012

I have it failing on two boxes and passing on one, all running Ubuntu 10.04.3 LTS. Trying to isolate what could be causing the TypeError above on the two boxes. Any ideas are much appreciated and I will share what I find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant