Hello
I have installed python 2.73 and Biopython 1.57 on Ubuntu 11.10.
All of the Bio modules I have tried are working fine, except for the Entrez. None of the e-utils are working - the online tests failed after the installation of biopython. Do I have to register to use the E-utils? Even when I try try "urllib.urlopen('http://eutils.ncbi.nlm.nih.gov/entrez/eutils/einfo.fcgi')", idle-python hangs..(But the url works on Firefox.)
Changing socket defaulttimeout doesn't help either.
Here's what I get when I try einfo()
>>> from Bio import Entrez
>>> Entrez.email = 'my_email_address'
>>> handle = Entrez.einfo()
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
handle = Entrez.einfo()
File "/usr/lib/pymodules/python2.7/Bio/Entrez/__init__.py", line 186, in einfo
return _open(cgi, variables)
File "/usr/lib/pymodules/python2.7/Bio/Entrez/__init__.py", line 358, in _open
handle = urllib2.urlopen(cgi)
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 394, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 412, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1201, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1171, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 110] Connection timed out>
Grateful if you could help.
biopython