[Neuroimaging] Reading map object as having no length

Stephen Suss sjsuss626 at gmail.com
Mon Aug 14 18:11:28 EDT 2023


Hello, community

I have some inherent Nipype code that I edited and am running on a
Linux-based operating system. I'm using Nipype version 1.8.5 and Python
version 3.7. The code is crashing (error below), and understandably because
Python 3 cannot read map objects as having a length. I am wondering why
this error is occurring within FSL and if there is a way around it.


Traceback:
Traceback (most recent call last):
 File
"/home/data/madlab/envs/emuR01_madlab_env/lib/python3.7/site-packages/nipype/interfaces/base/core.py",
line 398, in run
   runtime = self._run_interface(runtime)
 File
"/home/data/madlab/envs/emuR01_madlab_env/lib/python3.7/site-packages/nipype/interfaces/fsl/model.py",
line 388, in _run_interface
   basis_key,
 File
"/home/data/madlab/envs/emuR01_madlab_env/lib/python3.7/site-packages/nipype/interfaces/fsl/model.py",
line 218, in _create_ev_files
   if len(amplitudes) > 1:
TypeError: object of type 'map' has no len()




The above exception was the direct cause of the following exception:


Traceback (most recent call last):
  File "emu_fsl_frstlvl_fconnect.py", line 539, in <module>
    wf.run(plugin="MultiProc", plugin_args={'n_procs':40, 'overwrite':
False})
  File
"/home/data/madlab/envs/emuR01_madlab_env/lib/python3.7/site-packages/nipype/pipeline/engine/workflows.py",
line 638, in run
    runner.run(execgraph, updatehash=updatehash, config=self.config)
  File
"/home/data/madlab/envs/emuR01_madlab_env/lib/python3.7/site-packages/nipype/pipeline/plugins/base.py",
line 212, in run
    raise error from cause
RuntimeError: 139 raised. Re-raising first.

Best,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/neuroimaging/attachments/20230814/a2eb7935/attachment.html>


More information about the Neuroimaging mailing list