I am trying to follow the Biopython cookbook to do some basic access of Entrez, but it acts like there is something wrong, as I get:
ERROR: [Errno 8] nodename nor servname provided, or not known
Here is my basic code:
from Bio import Entrez
import urllib2
try:
handle = Entrez.einfo()
result = handle.read()
print result
except urllib2.HTTPError as e:
# inform them of the specific error here (based off the error code)
print "ERROR: ", e.code
except urllib2.URLError as e:
# inform them of the specific error here
print "ERROR: ", e.reason
except Exception as e:
# inform them that a general error has occurred
print "ERROR: ", e
Any ideas what could be the issue?
entrez
ncbi
biopython