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

Subprocess Error Assistance #290

Closed
faulknerryan72 opened this issue Mar 20, 2024 · 3 comments
Closed

Subprocess Error Assistance #290

faulknerryan72 opened this issue Mar 20, 2024 · 3 comments

Comments

@faulknerryan72
Copy link

faulknerryan72 commented Mar 20, 2024

While trying to convert the data using dcm2bids I got the following error:

Error: Converted 10266 of 11032 files
Traceback (most recent call last):
  File "/apps/python/3.10/bin/dcm2bids", line 8, in <module>
    sys.exit(main())
  File "/apps/python/3.10/lib/python3.10/site-packages/dcm2bids/dcm2bids.py", line 248, in main
    return app.run()
  File "/apps/python/3.10/lib/python3.10/site-packages/dcm2bids/dcm2bids.py", line 110, in run
    dcm2niix.run(self.forceDcm2niix)
  File "/apps/python/3.10/lib/python3.10/site-packages/dcm2bids/dcm2niix.py", line 77, in run
    self.execute()
  File "/apps/python/3.10/lib/python3.10/site-packages/dcm2bids/dcm2niix.py", line 100, in execute
    output = run_shell_command(cmd)
  File "/apps/python/3.10/lib/python3.10/site-packages/dcm2bids/utils.py", line 120, in run_shell_command
    return check_output(commandLine)
  File "/apps/python/3.10/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/apps/python/3.10/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dcm2niix', '-b', 'y', '-ba', 'y', '-z', 'y', '-f', '%3s_%f_%p_%t', '-o', PosixPath('/orange/ebner/share/studies_in_progress/DecidingBrain1/DB1_MRI/tmp_dcm2bids/<id>'), PosixPath('/orange/ebner/share/studies_in_progress/DecidingBrain1/DB1_MRI/sourcedata/scan_data/DB1_MRI_<id>')]' returned non-zero exit status 8.

I have blocked out the ID (though deidentified) as additional privacy precaution. Using the exact same script I have converted the other 90+ sessions with no trouble. I am confused because I have checked the DICOMs and experimenter notes both of which don't state anything for concern on the acquisition why this error is arising on the acquisition side of things. Any further help/explanation with this would be greatly appreciated!

@crossmanith
Copy link

Maybe you could try to convert your data with dcm2niix hoping that there are more verbose messages.

@arnaudbore
Copy link
Contributor

Hello @faulknerryan72 ,
Did you test what @crossmanith suggest you ?
Did it help you fix this issue ?

@arnaudbore
Copy link
Contributor

@faulknerryan72
I'm closing this issue, feel free to ask questions on neurostars.org using the tag dcm2bids.
We've got a great community that can help you if needed.

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

3 participants