-
Notifications
You must be signed in to change notification settings - Fork 17
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
undefined method `more_results' for #<Mysql> #9
Comments
On the chance that the error could be resolved by updating activerecord, I just did this and still see the error: undefined method Thanks for any help you can offer to understand this error. Gordon |
Hi Gordon, There's no clear cause that pops to my mind right now. Could you try and run the following little script? It just creates an ActiveRecord connection and see if it works. require 'rubygems' ActiveRecord::Base.establish_connection( class CoordSystem < ActiveRecord::Base puts CoordSystem.all.to_yaml |
Thanks, Jan When I run the script, I get the following. undefined method |
There may be a problem in my Ruby MySQL adapter. I'll look into this today and will get back to you. |
Jan I upgraded to OSX 10.7 (Lion), then went back over Ruby and MySQL installs, following web advice and deleting a couple of years of old installations of both (e.g. from /opt/local...). I reinstalled the Ruby-MySQL gem, then ran two of the test scripts from http://www.kitebird.com/articles/. I reinstalled the Ensembl-API-1.0.1 gem, and started to test basic Ensembl API commands in IRB. I could step through getting a connection, and retrieving a slice, then all genes for that slice, etc. At this point, I ran the test that you'd suggested on 18 July: Hi Gordon, There's no clear cause that pops to my mind right now. Could you try and run the following little script? It just creates an ActiveRecord connection and see if it works. require 'rubygems' ActiveRecord::Base.establish_connection( class CoordSystem < ActiveRecord::Base puts CoordSystem.all.to_yaml ---end of Jan's test--- grobertson:RUBY_API grobertson$ ruby jans_test.18july2011.rb
The problem that I had likely was caused by conflicting installations. I'll continue to work with the Ensembl API, and will let you know if I have more problems. Thanks for your patience. |
In the above comment, I'd cut out most of the ~145-line output written by your test script, but what I removed has been reformatted by the Wiki so that it's not clear that I did this. |
I'm starting to test the Ensembl API, on OS X 10.6.8, using ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.4.0]. I'm reasonably experienced in Ruby but not in Rails.
I just installed the v1.0.1 API gem and tried to run this:
require 'ensembl'
include Ensembl::Core
DBConnection.connect('homo_sapiens',60)
After a few seconds pause at the DBConnection line, I get this error message:
undefined method
more_results' for #<Mysql> /usr/local/lib/ruby/gems/1.8/gems/activerecord-3.0.1/lib/active_record/connection_adapters/mysql_adapter.rb:279:in
select_rows'...(more error lines, but essentially the same message as above)...
I've likely made some basic error in the setup. Could I ask for help in understanding and resolving the error?
Thank you.
Gordon
The text was updated successfully, but these errors were encountered: