[Biopython-dev] [Bug 2678] Entrez.esearch does not always retrieve or find DTD files
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Thu Nov 20 17:06:37 UTC 2008
http://bugzilla.open-bio.org/show_bug.cgi?id=2678
------- Comment #1 from lpritc at scri.sari.ac.uk 2008-11-20 12:06 EST -------
And this time, more usefully, traceback with problem code:
>>> handle = Entrez.einfo()
>>> record = Entrez.read(handle)
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Bio/Entrez/Parser.py:279:
UserWarning: DTD file xhtml1-strict.dtd not found in Biopython installation;
trying to retrieve it from NCBI
warnings.warn("DTD file %s not found in Biopython installation; trying to
retrieve it from NCBI" % filename)
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Bio/Entrez/Parser.py:279:
UserWarning: DTD file xhtml-lat1.ent not found in Biopython installation;
trying to retrieve it from NCBI
warnings.warn("DTD file %s not found in Biopython installation; trying to
retrieve it from NCBI" % filename)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Bio/Entrez/__init__.py",
line 286, in read
record = handler.run(handle)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Bio/Entrez/Parser.py",
line 95, in run
self.parser.ParseFile(handle)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Bio/Entrez/Parser.py",
line 283, in external_entity_ref_handler
parser.ParseFile(handle)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Bio/Entrez/Parser.py",
line 280, in external_entity_ref_handler
handle = urllib.urlopen(systemId)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py",
line 87, in urlopen
return opener.open(url)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py",
line 203, in open
return getattr(self, name)(url)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py",
line 461, in open_file
return self.open_local_file(url)
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py",
line 475, in open_local_file
raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 2] No such file or directory: 'xhtml-lat1.ent'
--
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Biopython-dev
mailing list