cannot use mpReviewpreprocessor to convert dicom to nrrd in batch mode

Hi, I am trying to convert dicom series to nrrd in batch mode by using mpReviewpreprocessor module in 3d slicer 4.10.2, but it always shows error like the photo below. How can I handle it? Thank you!

This is error message in case photo not appear: Traceback (most recent call last):
File “C:\Users\Vuong Thuy Tran\AppData\Roaming\NA-MIC\Extensions-28257\mpReview\lib\Slicer-4.10\qt-scripted-modules\”, line 71, in onRunClicked
logic = mpReviewPreprocessorLogic()
File “C:\Users\Vuong Thuy Tran\AppData\Roaming\NA-MIC\Extensions-28257\mpReview\lib\Slicer-4.10\qt-scripted-modules\”, line 108, in init
File “C:\Program Files\Slicer 4.10.2\lib\Python\Lib\”, line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File “C:\Program Files\Slicer 4.10.2\lib\Python\Lib\”, line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File “C:\Program Files\Slicer 4.10.2\lib\Python\Lib\”, line 250, in rmtree
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u’C:/Users/Vuong Thuy Tran/AppData/Local/Temp/Slicer\mpReviewPreprocessor\CtkDICOMDatabase\ctkDICOM.sql’

The issue is probably that you have chosen the DICOM database folder to be inside the folder that the mpReviewPreprocessor is using. Choosing a different folder for DICOM database may fix this.

However, most features of multiparametric image review modules have been incorporated to Slicer core, so most likely you’ll be able to accomplish what you need by just using the current Slicer version. If you describe what you would like to do then we can describe how to do it using Slicer core features.

Thank you for your reply.
Actually I have a lot of dicom images and masks ( in nii format) and I want to extract features from them using pyradiomics.
But pyradiomics just accepts nrrd format so I need to convert them into nrrd format in batch mode.
And I have another problem is my dicom images and mask not getting space match each other when I run pyradiomics.

If you know how to handle it in batch mode please let me know.
Thank you a lot!

You can find examples for all these operations in the script repository: