[chimera-dev] Pickle a molecule object?

Francis E Reyes Francis.Reyes at Colorado.EDU
Fri Aug 31 13:07:39 PDT 2007


Is it possible to pickle a molecule object?
 >>> pickle.dumps(molecule)
Traceback (most recent call last):
   File "<pyshell#32>", line 1, in ?
     pickle.dumps(molecule)
   File "/Applications/Chimera.app/Contents/Resources/lib/python2.4/ 
pickle.py", line 1386, in dumps
     Pickler(file, protocol, bin).dump(obj)
   File "/Applications/Chimera.app/Contents/Resources/lib/python2.4/ 
pickle.py", line 231, in dump
     self.save(obj)
   File "/Applications/Chimera.app/Contents/Resources/lib/python2.4/ 
pickle.py", line 313, in save
     rv = reduce(self.proto)
   File "/Applications/Chimera.app/Contents/Resources/lib/python2.4/ 
copy_reg.py", line 69, in _reduce_ex
     raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle Molecule objects
 >>>


---------------------------------------------
Francis Reyes M.Sc.
215 UCB
University of Colorado at Boulder

gpg --keyserver pgp.mit.edu --recv-keys 67BA8D5D

8AE2 F2F4 90F7 9640 28BC  686F 78FD 6669 67BA 8D5D



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20070831/33667afc/attachment.html>


More information about the Chimera-dev mailing list