Skip to content

Error while checking node hash, forcing re-run #3730

Description

@SLReeser
Error while checking node hash, forcing re-run. Although this error may not prevent the workflow from running, it could indicate a major problem. Please report a new issue at https://github.com/nipy/nipype/issues adding the following information:

	Node: nibabies_25_1_wf.single_subject_sub-702551_ses-11_wf.infant_anat_fit_wf.infantfs_surface_recon_wf.fssource
	Interface: niworkflows.interfaces.patches.FreeSurferSource
	Traceback:
Traceback (most recent call last):

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/plugins/base.py", line 375, in _local_hash_check
    cached, updated = self.procs[jobid].is_cached()
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/engine/nodes.py", line 340, in is_cached
    hashed_inputs, hashvalue = self._get_hashval()
                               ^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/engine/nodes.py", line 546, in _get_hashval
    self._get_inputs()

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/engine/nodes.py", line 588, in _get_inputs
    outputs = _load_resultfile(results_fname).outputs
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/engine/utils.py", line 292, in load_resultfile
    result = loadpkl(results_file)
             ^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/utils/filemanip.py", line 643, in loadpkl
    raise e

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/utils/filemanip.py", line 620, in loadpkl
    unpkl = pickle.loads(pkl_contents)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/traits/has_traits.py", line 1355, in __setstate__
    self.trait_set(trait_change_notify=trait_change_notify, **state)

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/traits/has_traits.py", line 1458, in trait_set
    setattr(self, name, value)

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/interfaces/base/traits_extension.py", line 135, in validate
    self.error(objekt, name, str(value))

  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/traits/base_trait_handler.py", line 74, in error
    raise TraitError(

traits.trait_errors.TraitError: The 'outdir' trait of an InfantReconAllOutputSpec instance must be a pathlike object or string representing an existing directory, but a value of '/out/sourcedata/freesurfer/sub-702551_ses-11' <class 'str'> was specified.

250716-09:06:40,15 nipype.utils WARNING:
	 No metadata was found in the pkl file. Make sure you are currently using the same Nipype version from the generated pkl.
250716-09:06:40,15 nipype.workflow CRITICAL:
	 nibabies failed: The 'outdir' trait of an InfantReconAllOutputSpec instance must be a pathlike object or string representing an existing directory, but a value of '/out/sourcedata/freesurfer/sub-702551_ses-11' <class 'str'> was specified.
Traceback (most recent call last):
  File "/opt/conda/envs/nibabies/bin/nibabies", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nibabies/cli/run.py", line 104, in main
    nibabies_wf.run(**_plugin)
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/engine/workflows.py", line 625, in run
    runner.run(execgraph, updatehash=updatehash, config=self.config)
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/plugins/base.py", line 198, in run
    self._send_procs_to_workers(updatehash=updatehash, graph=graph)
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/plugins/multiproc.py", line 382, in _send_procs_to_workers
    cached, updated = self.procs[jobid].is_cached()
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/engine/nodes.py", line 340, in is_cached
    hashed_inputs, hashvalue = self._get_hashval()
                               ^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/engine/nodes.py", line 546, in _get_hashval
    self._get_inputs()
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/engine/nodes.py", line 588, in _get_inputs
    outputs = _load_resultfile(results_fname).outputs
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/pipeline/engine/utils.py", line 292, in load_resultfile
    result = loadpkl(results_file)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/utils/filemanip.py", line 643, in loadpkl
    raise e
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/utils/filemanip.py", line 620, in loadpkl
    unpkl = pickle.loads(pkl_contents)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/traits/has_traits.py", line 1355, in __setstate__
    self.trait_set(trait_change_notify=trait_change_notify, **state)
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/traits/has_traits.py", line 1458, in trait_set
    setattr(self, name, value)
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/nipype/interfaces/base/traits_extension.py", line 135, in validate
    self.error(objekt, name, str(value))
  File "/opt/conda/envs/nibabies/lib/python3.12/site-packages/traits/base_trait_handler.py", line 74, in error
    raise TraitError(
traits.trait_errors.TraitError: The 'outdir' trait of an InfantReconAllOutputSpec instance must be a pathlike object or string representing an existing directory, but a value of '/out/sourcedata/freesurfer/sub-702551_ses-11' <class 'str'> was specified.
250716-09:07:02,165 nipype.workflow INFO:
	 [Node] Finished "boldref_bold", elapsed time 44.286528s.
250716-09:07:04,746 nipype.workflow INFO:
	 [Node] Finished "boldref_bold", elapsed time 44.778884s.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions