Worflows failing on provenance collection

17 views
Skip to first unread message

parnesh...@gmail.com

unread,
Jul 19, 2014, 5:19:39 AM7/19/14
to nipy...@googlegroups.com
I am run workflows and on some machines I repeatedly get the following error.

        Traceback (most recent call last):
  File "/usr/local/python/2.7.3-gcc/lib/python2.7/site-packages/nipype/pipeline/plugins/linear.py", line 38, in run
    node.run(updatehash=updatehash)
  File "/usr/local/python/2.7.3-gcc/lib/python2.7/site-packages/nipype/pipeline/engine.py", line 1386, in run
    self._run_interface()
  File "/usr/local/python/2.7.3-gcc/lib/python2.7/site-packages/nipype/pipeline/engine.py", line 1496, in _run_interface
    self._result = self._run_command(execute)
  File "/usr/local/python/2.7.3-gcc/lib/python2.7/site-packages/nipype/pipeline/engine.py", line 1622, in _run_command
    result = self._interface.run()
  File "/usr/local/python/2.7.3-gcc/lib/python2.7/site-packages/nipype/interfaces/base.py", line 957, in run
    prov_record = write_provenance(results)
  File "/usr/local/python/2.7.3-gcc/lib/python2.7/site-packages/nipype/utils/provenance.py", line 229, in write_provenance
    ps.add_results(results)
  File "/usr/local/python/2.7.3-gcc/lib/python2.7/site-packages/nipype/utils/provenance.py", line 330, in add_results
    out_entity = prov_encode(self.g, val).get_identifier()
  File "/usr/local/python/2.7.3-gcc/lib/python2.7/site-packages/nipype/utils/provenance.py", line 191, in prov_encode
    item_entity = prov_encode(graph, item)
  File "/usr/local/python/2.7.3-gcc/lib/python2.7/site-packages/nipype/utils/provenance.py", line 207, in prov_encode
    entity = prov_encode(graph, value[0])
IndexError: list index out of range


If I turn off provenance generation, the workflow runs without error. I am using nipype v0.92.

Satrajit Ghosh

unread,
Jul 19, 2014, 11:31:21 AM7/19/14
to nipy-user
hi parnesh,

this was fixed in master. we did not release a patch for this in the releases yet.

cheers,

satra

--

---
You received this message because you are subscribed to the Google Groups "NiPy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nipy-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

parnesh...@gmail.com

unread,
Jul 19, 2014, 7:29:56 PM7/19/14
to nipy...@googlegroups.com
Thanks. I will generate a patch. Is the only file impacted provenance.py?

Satrajit Ghosh

unread,
Jul 19, 2014, 9:02:30 PM7/19/14
to nipy-user
yes. a diff with the current version should show the changes.

cheers,

satra

Reply all
Reply to author
Forward
0 new messages