Jump to content

How to solve this problem? ruby application.

Featured Replies

I used bioruby program before.

But it has some problem.

What is the matter? It dose not work well. I do not know the cause of the trouble.

 

ruby program

[quit]

require 'rubygems'

require 'bio'

 

#if __FILE__ == $0

 

begin

require 'pp'

alias p pp

rescue LoadError

end

 

puts ">>> Bio::DDBJ::XML::Blast"

serv = Bio::DDBJ::XML::Blast.new

# serv.log = STDERR

 

query = "MSSRIARALALVVTLLHLTRLALSTCPAACHCPLEAPKCAPGVGLVRDGCGCCKVCAKQL"

 

puts "### searchSimple('blastp', 'SWISS', query)"

puts serv.searchSimple('blastp', 'SWISS', query)

 

 

 

execution result

 

>>> Bio::DDBJ::XML::Blast

/usr/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: Name or service not known (SocketError)

 

When the SocketError occurs?

Edited by alpha2cen

  • Author

This program work well before. But it does not give query search result any more. When that kind phenomena occurs? What is the socket error? Special question?

alpha - you have not yet explained what you are trying to do. A quick google search indicates that a socket error could result from a bad connection to whatever server you're using.

  • Author

I would like to study about searching similar species or similar DNA profile at the Blast DB. Using the bioruby program(gem program) I could do it well before. I used it several times without problem.

So, they block to use the DB(bio DB) against the external user? In that case" Socket Error" message appears?

found this similar problem on stackoverflow: http://stackoverflow.com/questions/2608331/net-http-rb560in-initialize-getaddrinfo-name-or-service-not-known-sockete

 

 

"Name or service not known" is a socket-level error which usually points to either an invalid IP address/DNS hostname, or an unregistered port name"

 

You might want to post this on a [bio]Ruby thread/forum. If the program isn't connecting BlastDB and you're sure your network connection is fine, perhaps there's some deeper issue/bug. I don't know how many Ruby programmers we have on SFN [i am not one]

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.