AttributeError: 'DynamicTraitedSpec' object has no attribute 'in_image'

18 views
Skip to first unread message

Michael Evans

unread,
Jan 27, 2026, 12:58:07 PM (4 days ago) Jan 27
to Clinica
Hello,

I am receiving this error (below) when attempting to run the pet-volume pipeline and see there is a previous thread for this same issue. In this thread, the suggested solution was to use the dev version from github, as the issue was fixed with this pull request

This thread was a few months ago and I am using a newer version of Clinica, 0.10.1. I am wondering if this pull request fix was included in 0.10.1, or if I too would need to switch to the dev branch build?

-------- freesurfer-linux-centos8_x86_64-7.4.1-20230613-7eb8460 -------- Setting up environment for FreeSurfer/FS-FAST (and FSL) FREESURFER_HOME /usr/local/freesurfer/7.4.1-1 FSFAST_HOME /usr/local/freesurfer/7.4.1-1/fsfast FSF_OUTPUT_FORMAT nii.gz SUBJECTS_DIR /home/mevan028/subjects MNI_DIR /usr/local/freesurfer/7.4.1-1/mni [32m2026-01-27 10:23:24,268:INFO:Setting SPM path to /opt/spm [0m [32m2026-01-27 10:23:24,324:INFO:The CAPS dataset 'None', located at /home/mevan028/Masters/CLINICA_OUTPUT_5_ADNI_CN_VOLUME, already contains a 'dataset_description.json' file. [0m [33m2026-01-27 10:23:24,326:WARNING:The existing CAPS dataset, located at /home/mevan028/Masters/CLINICA_OUTPUT_5_ADNI_CN_VOLUME has a name 'c573d472-5b09-4d89-96c6-4bd3c353db64' different from the new name 'c3adba21-e502-49fd-a6a5-eb91d7d01d8c'. The old name will be kept. [0m /opt/conda/lib/python3.10/site-packages/clinica/utils/stream.py:103: UserWarning: The existing CAPS dataset, located at /home/mevan028/Masters/CLINICA_OUTPUT_5_ADNI_CN_VOLUME has a name 'c573d472-5b09-4d89-96c6-4bd3c353db64' different from the new name 'c3adba21-e502-49fd-a6a5-eb91d7d01d8c'. The old name will be kept. warnings.warn(message, warning_type) [32m2026-01-27 10:23:24,406:INFO:SPM standalone has been found at /opt/spm, with an MCR at /usr/local/freesurfer/7.4.1-1/MCRv97 and will be used in this pipeline [0m stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device [32m2026-01-27 10:23:53,284:INFO:Using SPM standalone version 12.7771 [0m stty: 'standard input': Inappropriate ioctl for device [32m2026-01-27 10:24:01,045:INFO:Found installation of spm standalone with version 12.7771, satisfying >=12. [0m [32m2026-01-27 10:24:01,447:INFO:The pipeline will be run on the following 5 image(s): - sub-002S0295 | ses-M000 - sub-002S0413 | ses-M000 - sub-002S0685 | ses-M000 - sub-002S1261 | ses-M000 - sub-002S1280 | ses-M000 [0m [32m2026-01-27 10:24:01,448:INFO:List available in /tmp/tmph52tvj2q/pet-volume/participants.tsv [0m [32m2026-01-27 10:24:01,448:INFO:The pipeline will last approximately 10 minutes per image. [0m [32m2026-01-27 10:24:01,454:INFO:SPM standalone has been found at /opt/spm, with an MCR at /usr/local/freesurfer/7.4.1-1/MCRv97 and will be used in this pipeline [0m stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device [32m2026-01-27 10:24:17,033:INFO:Using SPM standalone version 12.7771 [0m [32m2026-01-27 10:24:17,756:INFO:Running pipeline for sub-002S0295 | ses-M000 [0m [32m2026-01-27 10:24:29,746:INFO:Running pipeline for sub-002S0413 | ses-M000 [0m [32m2026-01-27 10:24:41,767:INFO:Running pipeline for sub-002S0685 | ses-M000 [0m [32m2026-01-27 10:24:53,778:INFO:Running pipeline for sub-002S1261 | ses-M000 [0m [32m2026-01-27 10:25:05,788:INFO:Running pipeline for sub-002S1280 | ses-M000 [0m stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device Traceback (most recent call last): File "/opt/conda/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 323, in _send_procs_to_workers num_subnodes = self.procs[jobid].num_subnodes() File "/opt/conda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 1312, in num_subnodes self._check_iterfield() File "/opt/conda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 1334, in _check_iterfield if not isdefined(getattr(self.inputs, iterfield)): AttributeError: 'DynamicTraitedSpec' object has no attribute 'in_image' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/conda/bin/clinica", line 7, in <module> sys.exit(main()) File "/opt/conda/lib/python3.10/site-packages/clinica/cmdline.py", line 113, in main cli() File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1485, in __call__ return self.main(*args, **kwargs) File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1406, in main rv = self.invoke(ctx) File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1873, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1873, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1269, in invoke return ctx.invoke(self.callback, **ctx.params) File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 824, in invoke return callback(*args, **kwargs) File "/opt/conda/lib/python3.10/site-packages/clinica/pipelines/pet/volume/cli.py", line 120, in cli pipeline.run(plugin="MultiProc", plugin_args={"n_procs": n_procs}) File "/opt/conda/lib/python3.10/site-packages/clinica/pipelines/engine.py", line 778, in run raise e File "/opt/conda/lib/python3.10/site-packages/clinica/pipelines/engine.py", line 759, in run exec_graph = Workflow.run(self, plugin, plugin_args, update_hash) File "/opt/conda/lib/python3.10/site-packages/nipype/pipeline/engine/workflows.py", line 625, in run runner.run(execgraph, updatehash=updatehash, config=self.config) File "/opt/conda/lib/python3.10/site-packages/nipype/pipeline/plugins/base.py", line 198, in run self._send_procs_to_workers(updatehash=updatehash, graph=graph) File "/opt/conda/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 326, in _send_procs_to_workers self._clean_queue( File "/opt/conda/lib/python3.10/site-packages/nipype/pipeline/plugins/base.py", line 255, in _clean_queue raise RuntimeError("".join(result["traceback"])) RuntimeError: Traceback (most recent call last): File "/opt/conda/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 323, in _send_procs_to_workers num_subnodes = self.procs[jobid].num_subnodes() File "/opt/conda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 1312, in num_subnodes self._check_iterfield() File "/opt/conda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 1334, in _check_iterfield if not isdefined(getattr(self.inputs, iterfield)): AttributeError: 'DynamicTraitedSpec' object has no attribute 'in_image' When creating this crashfile, the results file corresponding to the node could not be found.

I am using this setup on a shared HPC environment:
  • clinica 0.10.1
  • standalone SPM 12

Thanks so much,
Michael

Michael Evans

unread,
Jan 27, 2026, 12:59:56 PM (4 days ago) Jan 27
to Clinica
Attached is an error log file for easier readability. 
error_log.txt

Alice Joubert

unread,
Jan 30, 2026, 8:37:40 AM (19 hours ago) Jan 30
to Clinica
Hello Michael, 

Thanks for reaching out ! This issue is addressed in next release, planned next week (hopefully if everything goes well). In the meantime you can use the dev version or just wait one more week, as you prefer. 

Also, we plan on dropping SPM12 totally and supporting SPM25 from next version (next week) onwards since SPM12 can no longer be publicly downloaded. There is a slight difference in the results but not noticeable. That would be true for our dev version also. SPM25 is very easily downloadable from their GitHub page, with the right MCR in the same software archive :-) 

Hope this helps,

Do not hesitate if you have further questions,

Alice

--
You received this message because you are subscribed to the Google Groups "Clinica" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clinica-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/clinica-user/d060ecf6-c3a8-4f1b-af70-793750b77eebn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages