Traceback (most recent call last):


 "/home/lbalhar/Software/cloudpickle/tests/cloudpickle_file_test.py", line 96, in test_temp_file

newfile = pickle.loads(cloudpickle.dumps(f))


 "/home/lbalhar/Software/cloudpickle/cloudpickle/cloudpickle.py", line 900, in dumps

cp.dump(obj)


 "/home/lbalhar/Software/cloudpickle/cloudpickle/cloudpickle.py", line 234, in dump

return Pickler.dump(self, obj)


 "/usr/lib64/python3.5/pickle.py", line 408, in dump

self.save(obj)


 "/usr/lib64/python3.5/pickle.py", line 495, in save

rv = reduce(self.proto)
TypeError: cannot serialize '_io.BufferedRandom' object

Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "C:\Users\LiRui\Desktop\3d-unet\3DUnetCNN-master\brats\preprocess.py", line 120, in convert_brats_data

convert_brats_folder(subject_folder, new_subject_folder, background_mask)


 "C:\Users\LiRui\Desktop\3d-unet\3DUnetCNN-master\brats\preprocess.py", line 105, in convert_brats_folder

normalize_image(image_file, out_file, background_mask)


 "C:\Users\LiRui\Desktop\3d-unet\3DUnetCNN-master\brats\preprocess.py", line 89, in normalize_image

corrected = correct_bias(windowed, append_basename(out_file, "_corrected"))


 "C:\Users\LiRui\Desktop\3d-unet\3DUnetCNN-master\brats\preprocess.py", line 56, in correct_bias

done = correct.run()


 "C:\my_software\Anaconda\lib\site-packages\nipype\interfaces\base.py", line 1081, in run

runtime = self._run_wrapper(runtime)


 "C:\my_software\Anaconda\lib\site-packages\nipype\interfaces\base.py", line 1724, in _run_wrapper

runtime = self._run_interface(runtime)


 "C:\my_software\Anaconda\lib\site-packages\nipype\interfaces\base.py", line 1755, in _run_interface

redirect_x=self._redirect_x)


 "C:\my_software\Anaconda\lib\site-packages\nipype\interfaces\base.py", line 1487, in run_command

_process()


 "C:\my_software\Anaconda\lib\site-packages\nipype\interfaces\base.py", line 1475, in _process

if e[0] == errno.EINTR:
TypeError: 'OSError' object is not subscriptable
