Traceback (most recent call last):


 "src/gevent/greenlet.py", line 854, in gevent._gevent_cgreenlet.Greenlet.run


 "mars/actors/pool/gevent_pool.pyx", line 548, in mars.actors.pool.gevent_pool.ActorRemoteHelper._send_remote


 "mars/actors/pool/gevent_pool.pyx", line 552, in mars.actors.pool.gevent_pool.ActorRemoteHelper._send_remote


 "mars/actors/pool/gevent_pool.pyx", line 559, in mars.actors.pool.gevent_pool.ActorRemoteHelper._send_remote


 "mars/actors/pool/gevent_pool.pyx", line 1036, in mars.actors.pool.gevent_pool.Communicator._on_receive_send


 "mars/actors/pool/messages.pyx", line 747, in mars.actors.pool.messages.pack_result_message

_pack_object(result, buf)


 "mars/actors/pool/messages.pyx", line 305, in mars.actors.pool.messages._pack_object

m = dumps(obj)
TypeError: can't pickle weakref objects

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
