rescalante-lilly / ruffus

Automatically exported from code.google.com/p/ruffus
MIT License
0 stars 0 forks source link

Can't pickle code objects #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried out the latest (97518ac8f0e0) version of ruffus and came across a 
problem with pickling of code objects.

Traceback (most recent call last):
  File "../../../pipelines/defuse_readthrough/defuse_readthrough_neuronal.py", line 548, in
<module>
    pipeline_run()
  File "build/bdist.linux-x86_64/egg/ruffus/task.py", line 3267, in pipeline_run
  File "build/bdist.linux-x86_64/egg/ruffus/ruffus_utility.py", line 109, in __init__
  File "/share/lustre/tfunnell/.virtualenvs/takeda_splicing/lib/python2.7/copy_reg.py", line
 70, in _reduce_ex
    raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle code objects

Original issue reported on code.google.com by tyler.fu...@gmail.com on 22 Nov 2013 at 3:10

GoogleCodeExporter commented 9 years ago
There needs to be a (quiet) fallback path when pickling fails.

Original comment by bunbu...@gmail.com on 23 Nov 2013 at 1:50

GoogleCodeExporter commented 9 years ago
cPickle a function can fail, eg. for nested functions
Fixed: changes to checksum code to fall back to using marshal and then str() 
and then nothing 

Original comment by bunbu...@gmail.com on 25 Nov 2013 at 9:29