I am getting error ,while i am executing the code for multiprocessing
File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\site-packages\flask\app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "D:\obj_inf\inference_script_multiprocess_old.py", line 224, in linecam
p1.start()
File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\multiprocessing\process.py", line 105, in start
self._popen = self._Popen(self)
File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\multiprocessing\popen_spawn_win32.py", line 65, in init
reduction.dump(process_obj, to_child)
File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: can't pickle _thread.RLock objects
I am getting error ,while i am executing the code for multiprocessing
File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\site-packages\flask\app.py", line 1502, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "D:\obj_inf\inference_script_multiprocess_old.py", line 224, in linecam p1.start() File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\multiprocessing\process.py", line 105, in start self._popen = self._Popen(self) File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\multiprocessing\context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\multiprocessing\context.py", line 322, in _Popen return Popen(process_obj) File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\multiprocessing\popen_spawn_win32.py", line 65, in init reduction.dump(process_obj, to_child) File "C:\Users\AppsTekO22\miniconda3\envs\obj_inf\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) TypeError: can't pickle _thread.RLock objects
please help resolve this problem , thank you.