Open MRIDude opened 3 weeks ago
Hi @MRIDude ,
This error appears if bids-validator is not accessible.
Can you run this command: which bids-validator
?
If it's able to find the binary it will output you the path to bids-validator.
If it works can you send me the commands you used to create your environnement and install dcm2bids and bids-validator so I can replicate the issue ?
If it doesn't show you the path it means there were an issue with the bids-validator installation.
Thank you in advance.
Here is the list of installed packages on conda bidscondaenv.txt
Though I have bids validator installed via conda. I realized to get it to show up on the command line I had to install it through npm which resulted with the same error.
npm install -g bids-validator
Are you able to run the bids-validator command line ?
Yes. It points to a binary in conda environment.
Can you add in your .bashrc the PATH to the bids-validator
binary ?
It should look like this: export PATH=/absolute/path/to/your/bids-validator/folder:$PATH
I think it should help dcm2bids to find it.
It is already in the path. In the fact, it is the very first folder in the path. However, I added it anyway, I got the same error.
I found the issue, I should have a new release by the end of next week. Thanks for reporting.
I have been trying to use the bids_validate flag for dcm2bids. dcm2bids exit with message.
I have dcm2bids installed using conda. bids-validate installed using both pip and conda in the same conda environment as dcm2bids. I have gone as far as reinstalling dcm2bids and bids-validator but nothing has changed. This is the command I am using
dcm2bids -d ../sourcedata/PIBsourcedata/PIB006/VYr5mri -p PIB006 -s VYr5mri -c code/PIBdcm2bids.json --auto_extract_entities --force_dcm2bids --bids_validate
The command works as intended with out the --bids_validate. Have I done some thing wrong?