<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px"><div id="yui_3_16_0_1_1449308421984_57938">I would recommend to save the XML data as XML and parse them using Bio.Entrez. Pickling gets non-trivial when user-defined classes are involved; see the Python documentation for details.</div><div id="yui_3_16_0_1_1449308421984_57928">-Michiel<br></div><div id="yui_3_16_0_1_1449308421984_57791"><span></span></div> <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> On Friday, December 4, 2015 8:38 AM, "c.buhtz@posteo.jp" <c.buhtz@posteo.jp> wrote:<br></font></div> <br><br> <div class="y_msg_container">I load a big bunch (10.000's) of records as XML with eFetch from PubMed.<br><br>I was able to pickle that list of records to a file with Python3.<br><br>But when I try to unpickle it I get this error:<br> File "../pidAsk.py", line 82, in _getRecords<br> record = pickle.load(f)<br> File "/usr/local/lib/python3.4/dist-packages/Bio/Entrez/Parser.py",<br>line 117, in __setitem__ if key in self.listkeys:<br>AttributeError: 'StructureElement' object has no attribute 'listkeys'<br><br>Does someone tried to (un)pickle data like eFetch-PubMed-records with<br>Python3?<br>-- <br>GnuPGP-Key ID 0751A8EC<br>_______________________________________________<br>Biopython mailing list - <a ymailto="mailto:Biopython@mailman.open-bio.org" href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br><a href="http://mailman.open-bio.org/mailman/listinfo/biopython" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br><br><br></div> </div> </div> </div></div></body></html>