<div dir="ltr"><div>Hello to all our PDB experts,<br><br></div>If you didn't get this email from GitHub, could you take a look at<br>this bug report which has a nice clear reproducible test case?<br><a href="https://github.com/biopython/biopython/issues/441">https://github.com/biopython/biopython/issues/441</a><br><br>Thanks,<br><div><br>Peter<br><br><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Alexey Strokach</b> <span dir="ltr"><<a href="mailto:notifications@github.com">notifications@github.com</a>></span><br>Date: Wed, Dec 10, 2014 at 7:57 PM<br>Subject: [biopython] PDBParser fails with error "AttributeError: 'NoneType' object has no attribute 'get_fullname'" (#441)<br>To: biopython/biopython <<a href="mailto:biopython@noreply.github.com">biopython@noreply.github.com</a>><br><br><br><p>When I try to use PDBParesr to read the pdb for 3nh3 I get an error:</p>
<pre><code>AttributeError: 'NoneType' object has no attribute 'get_fullname'".
</code></pre>
<p>To reproduce the error:<br>
1) download "3NH3.pdb" from <a href="http://www.rcsb.org/pdb/explore/explore.do?structureId=3NH3" target="_blank">http://www.rcsb.org/pdb/explore/explore.do?structureId=3NH3</a><br>
2) run the following code</p>
<pre><code>from Bio.PDB import PDBParser
parser = PDBParser()
structure = parser.get_structure('3nh3', open('3NH3.pdb', 'r'))
</code></pre>
<p>Here is the full traceback:<br>
Traceback (most recent call last):</p>
<pre><code> File "<ipython-input-64-c2358d7c6b4e>", line 1, in <module>
structure = parser.get_structure('3nh3', open('3NH3.pdb', 'r'))
File "/home/xx/anaconda/lib/python2.7/site-packages/Bio/PDB/PDBParser.py", line 86, in get_structure
self._parse(handle.readlines())
File "/home/xx/anaconda/lib/python2.7/site-packages/Bio/PDB/PDBParser.py", line 109, in _parse
self.trailer = self._parse_coordinates(coords_trailer)
File "/home/xx/anaconda/lib/python2.7/site-packages/Bio/PDB/PDBParser.py", line 225, in _parse_coordinates
fullname, serial_number, element)
File "/home/xx/anaconda/lib/python2.7/site-packages/Bio/PDB/StructureBuilder.py", line 187, in init_atom
duplicate_fullname=duplicate_atom.get_fullname()
File "/home/xx/anaconda/lib/python2.7/site-packages/Bio/PDB/Entity.py", line 210, in __getattr__
return getattr(self.selected_child, method)
AttributeError: 'NoneType' object has no attribute 'get_fullname'
</code></pre>
<p style="font-size:small;color:rgb(102,102,102)">—<br>Reply to this email directly or <a href="https://github.com/biopython/biopython/issues/441" target="_blank">view it on GitHub</a>.<img alt="" src="https://github.com/notifications/beacon/AAD51-bg7rD8nko-Am2b97VmypGxOhsBks5nWJ05gaJpZM4DG0md.gif" height="1" width="1"></p>
<div>
<div>
</div>
</div>
</div><br></div></div></div>