Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'suffix' when running fmriprepgr with all package requirements met #6

Open
snezanatodorovic opened this issue May 23, 2023 · 0 comments

Comments

@snezanatodorovic
Copy link

Got the following error after "fmriprepgr '/bla/derivatives/fmriprep'", all package requirements are met, tested on several projects that used fmriprep.

fmriprepgr '/bla/derivatives/fmriprep'
Traceback (most recent call last):
File "/Users/user123/opt/anaconda3/bin/fmriprepgr", line 8, in
sys.exit(make_report())
File "/Users/user123/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/Users/user123/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/Users/user123/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/user123/opt/anaconda3/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/Users/user123/opt/anaconda3/lib/python3.8/site-packages/fmriprepgr/reports.py", line 368, in make_report
if layout.parse_file_entities(html)['suffix'] == layout.parse_file_entities(html)['subject']:
KeyError: 'suffix'

Any suggestions? I am very new to this, sorry in advance if I am doing something wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant