Best Python code snippet using green
OracleAll.py
Source:OracleAll.py
...128 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path129 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool130 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main131 exitcode = _main(fd, parent_sentinel)132 return self._repopulate_pool_static(self._ctx, self.Process,133æ¬å°è®¡ç®æºæ: 8 æ ¸å¿134 main_content = runpy.run_path(main_path,135 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path136 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static137 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main138 return _run_module_code(code, init_globals, run_name,139 w.start()140Traceback (most recent call last):141 File "<string>", line 1, in <module>142 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code143 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start144 prepare(preparation_data)145 _run_code(code, mod_globals, init_globals,146 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main147 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare148 exitcode = _main(fd, parent_sentinel)149 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main150 prepare(preparation_data)151 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare152 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code153 _fixup_main_from_path(data['init_main_from_path'])154Traceback (most recent call last):155 File "<string>", line 1, in <module>156 exec(code, run_globals)157 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>158 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path159Traceback (most recent call last):160 self._popen = self._Popen(self)161 _fixup_main_from_path(data['init_main_from_path'])162 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main163 exitcode = _main(fd, parent_sentinel)164 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main165 File "<string>", line 1, in <module>166 multi_process_tag(data)167 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen168 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path169 prepare(preparation_data)170 main_content = runpy.run_path(main_path,171 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag172 main_content = runpy.run_path(main_path,173 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path174 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare175 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path176 return _run_module_code(code, init_globals, run_name,177 pool = mp.Pool(num_cores)178 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool179 return _run_module_code(code, init_globals, run_name,180 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code181 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code182 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main183 return Popen(process_obj)184 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__185 return Pool(processes, initializer, initargs, maxtasksperchild,186 _run_code(code, mod_globals, init_globals,187 _fixup_main_from_path(data['init_main_from_path'])188 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path189 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__190 _run_code(code, mod_globals, init_globals,191 self._repopulate_pool()192 exitcode = _main(fd, parent_sentinel)193 prep_data = spawn.get_preparation_data(process_obj._name)194 main_content = runpy.run_path(main_path,195 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path196 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code197 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool198 return _run_module_code(code, init_globals, run_name,199 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code200 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code201 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main202 exec(code, run_globals)203 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data204 return self._repopulate_pool_static(self._ctx, self.Process,205 exec(code, run_globals)206 prepare(preparation_data)207 _check_not_importing_main()208 _run_code(code, mod_globals, init_globals,209 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code210 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static211 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>212 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare213 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main214 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>215 exec(code, run_globals)216 w.start()217 multi_process_tag(data)218 _fixup_main_from_path(data['init_main_from_path'])219 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>220 raise RuntimeError('''221 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start222 multi_process_tag(data)223 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag224 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path225RuntimeError:226 An attempt has been made to start a new process before the227 current process has finished its bootstrapping phase.228 This probably means that you are not using fork to start your229 child processes and you have forgotten to use the proper idiom230 in the main module:231 if __name__ == '__main__':232 freeze_support()233 ...234 The "freeze_support()" line can be omitted if the program235 is not going to be frozen to produce an executable. multi_process_tag(data)236 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag237 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag238 pool = mp.Pool(num_cores)239 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool240 main_content = runpy.run_path(main_path,241 self._popen = self._Popen(self)242Traceback (most recent call last):243 File "<string>", line 1, in <module>244 pool = mp.Pool(num_cores)245 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path246 return Pool(processes, initializer, initargs, maxtasksperchild,247 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen248 pool = mp.Pool(num_cores)249Traceback (most recent call last):250 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool251 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__252 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool253 return _run_module_code(code, init_globals, run_name,254 File "<string>", line 1, in <module>255 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main256 self._repopulate_pool()257 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool258 return Popen(process_obj)259 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code260 return Pool(processes, initializer, initargs, maxtasksperchild,261 return Pool(processes, initializer, initargs, maxtasksperchild,262 exitcode = _main(fd, parent_sentinel)263 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__264 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main265 return self._repopulate_pool_static(self._ctx, self.Process,266 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__267 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__268 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main269 _run_code(code, mod_globals, init_globals,270 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code271 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static272 exitcode = _main(fd, parent_sentinel)273 self._repopulate_pool()274 self._repopulate_pool()275 prepare(preparation_data)276 prep_data = spawn.get_preparation_data(process_obj._name)277 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main278 exec(code, run_globals)279 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>280 prepare(preparation_data)281 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool282 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare283 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data284 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool285 _fixup_main_from_path(data['init_main_from_path'])286 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare287 multi_process_tag(data)288 return self._repopulate_pool_static(self._ctx, self.Process,289 _check_not_importing_main()290 _fixup_main_from_path(data['init_main_from_path'])291 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path292 return self._repopulate_pool_static(self._ctx, self.Process,293 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag294 main_content = runpy.run_path(main_path,295 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path296 w.start()297 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start298 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static299 self._popen = self._Popen(self)300 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen301 pool = mp.Pool(num_cores)302 return _run_module_code(code, init_globals, run_name,303 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path304 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static305 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main306 w.start()307 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool308 return Popen(process_obj)309 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code310 w.start()311 main_content = runpy.run_path(main_path,312 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start313 raise RuntimeError('''314 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__315 return Pool(processes, initializer, initargs, maxtasksperchild,316 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start317 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path318 _run_code(code, mod_globals, init_globals,319RuntimeError:320 An attempt has been made to start a new process before the321 current process has finished its bootstrapping phase.322 This probably means that you are not using fork to start your323 child processes and you have forgotten to use the proper idiom324 in the main module:325 if __name__ == '__main__':326 freeze_support()327 ...328 The "freeze_support()" line can be omitted if the program329 is not going to be frozen to produce an executable. self._popen = self._Popen(self)330 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen331 prep_data = spawn.get_preparation_data(process_obj._name)332 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data333 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code334 return _run_module_code(code, init_globals, run_name,335 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__336 self._popen = self._Popen(self)337 return Popen(process_obj)338 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__339 exec(code, run_globals)340 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>341 self._repopulate_pool()342 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool343 _check_not_importing_main()344 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main345 return self._repopulate_pool_static(self._ctx, self.Process,346 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen347 multi_process_tag(data)348 prep_data = spawn.get_preparation_data(process_obj._name)349 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code350 return Popen(process_obj)351 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__352 _run_code(code, mod_globals, init_globals,353 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code354 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static355 raise RuntimeError('''356RuntimeError:357 An attempt has been made to start a new process before the358 current process has finished its bootstrapping phase.359 This probably means that you are not using fork to start your360 child processes and you have forgotten to use the proper idiom361 in the main module:362 if __name__ == '__main__':363 freeze_support()364 ...365 The "freeze_support()" line can be omitted if the program366 is not going to be frozen to produce an executable.367 prep_data = spawn.get_preparation_data(process_obj._name)368 exec(code, run_globals)369 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>370 w.start()371 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start372 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data373 self._popen = self._Popen(self)374 multi_process_tag(data)375 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data376 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag377 _check_not_importing_main()378 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main379 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag380 _check_not_importing_main()381 raise RuntimeError('''382 pool = mp.Pool(num_cores)383 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main384 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen385RuntimeError:386 An attempt has been made to start a new process before the387 current process has finished its bootstrapping phase.388 This probably means that you are not using fork to start your389 child processes and you have forgotten to use the proper idiom390 in the main module:391 if __name__ == '__main__':392 freeze_support()393 ...394 The "freeze_support()" line can be omitted if the program395 is not going to be frozen to produce an executable.396 return Popen(process_obj)397 raise RuntimeError('''398 pool = mp.Pool(num_cores)399 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool400 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__401 return Pool(processes, initializer, initargs, maxtasksperchild,402 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__403 prep_data = spawn.get_preparation_data(process_obj._name)404 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data405RuntimeError:406 An attempt has been made to start a new process before the407 current process has finished its bootstrapping phase.408 This probably means that you are not using fork to start your409 child processes and you have forgotten to use the proper idiom410 in the main module:411 if __name__ == '__main__':412 freeze_support()413 ...414 The "freeze_support()" line can be omitted if the program415 is not going to be frozen to produce an executable.416 self._repopulate_pool()417 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool418 return self._repopulate_pool_static(self._ctx, self.Process,419 _check_not_importing_main()420 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main421 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static422 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool423 raise RuntimeError('''424RuntimeError: 425 An attempt has been made to start a new process before the426 current process has finished its bootstrapping phase.427 This probably means that you are not using fork to start your428 child processes and you have forgotten to use the proper idiom429 in the main module:430 if __name__ == '__main__':431 freeze_support()432 ...433 The "freeze_support()" line can be omitted if the program434 is not going to be frozen to produce an executable.435 w.start()436 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start437 return Pool(processes, initializer, initargs, maxtasksperchild,438 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__439 self._repopulate_pool()440 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool441 self._popen = self._Popen(self)442 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen443 return Popen(process_obj)444 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__445 prep_data = spawn.get_preparation_data(process_obj._name)446 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data447 _check_not_importing_main()448 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main449 raise RuntimeError('''450RuntimeError:451 An attempt has been made to start a new process before the452 current process has finished its bootstrapping phase.453 This probably means that you are not using fork to start your454 child processes and you have forgotten to use the proper idiom455 in the main module:456 if __name__ == '__main__':457 freeze_support()458 ...459 The "freeze_support()" line can be omitted if the program460 is not going to be frozen to produce an executable.461 return self._repopulate_pool_static(self._ctx, self.Process,462 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static463 w.start()464 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start465 self._popen = self._Popen(self)466 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen467 return Popen(process_obj)468 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__469 prep_data = spawn.get_preparation_data(process_obj._name)470 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data471 _check_not_importing_main()472 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main473 raise RuntimeError('''474RuntimeError: 475 An attempt has been made to start a new process before the476 current process has finished its bootstrapping phase.477 This probably means that you are not using fork to start your478 child processes and you have forgotten to use the proper idiom479 in the main module:480 if __name__ == '__main__':481 freeze_support()482 ...483 The "freeze_support()" line can be omitted if the program484 is not going to be frozen to produce an executable.485[10455, 7668, 2977, 1326, 9000, 4793, 2898, 10761, 9206, 2304]486[10455, 7668, 2977, 1326, 9000, 4793, 2898, 10761, 9206, 2304]487[10455, 7668, 2977, 1326, 9000, 4793, 2898, 10761, 9206, 2304]488[10455, 7668, 2977, 1326, 9000, 4793, 2898, 10761, 9206, 2304]489[10455, 7668, 2977, 1326, 9000, 4793, 2898, 10761, 9206, 2304]490[10455, 7668, 2977, 1326, 9000, 4793, 2898, 10761, 9206, 2304]491[10455, 7668, 2977, 1326, 9000, 4793, 2898, 10761, 9206, 2304]492[10455, 7668, 2977, 1326, 9000, 4793, 2898, 10761, 9206, 2304]493æ¬å°è®¡ç®æºæ: 8 æ ¸å¿494æ¬å°è®¡ç®æºæ: 8 æ ¸å¿495æ¬å°è®¡ç®æºæ: 8 æ ¸å¿496Traceback (most recent call last):497 File "<string>", line 1, in <module>498 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main499 exitcode = _main(fd, parent_sentinel)500 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main501Traceback (most recent call last):502 File "<string>", line 1, in <module>503Traceback (most recent call last):504 prepare(preparation_data)505 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare506 _fixup_main_from_path(data['init_main_from_path'])507 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path508 main_content = runpy.run_path(main_path,509 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path510æ¬å°è®¡ç®æºæ: 8 æ ¸å¿511 File "<string>", line 1, in <module>512 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main513 exitcode = _main(fd, parent_sentinel)514 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main515 prepare(preparation_data)516 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare517 return _run_module_code(code, init_globals, run_name,518 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code519 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main520 _run_code(code, mod_globals, init_globals,521 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code522 exitcode = _main(fd, parent_sentinel)523 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main524æ¬å°è®¡ç®æºæ: 8 æ ¸å¿525 exec(code, run_globals)526 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>527 multi_process_tag(data)528 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag529æ¬å°è®¡ç®æºæ: 8 æ ¸å¿530 _fixup_main_from_path(data['init_main_from_path'])531 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path532 main_content = runpy.run_path(main_path,533 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path534 return _run_module_code(code, init_globals, run_name,535 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code536 prepare(preparation_data)537 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare538 _run_code(code, mod_globals, init_globals,539 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code540 exec(code, run_globals)541 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>542 pool = mp.Pool(num_cores)543 multi_process_tag(data)544 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag545 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool546æ¬å°è®¡ç®æºæ: 8 æ ¸å¿547 _fixup_main_from_path(data['init_main_from_path'])548 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path549 return Pool(processes, initializer, initargs, maxtasksperchild,550 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__551 self._repopulate_pool()552 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool553 return self._repopulate_pool_static(self._ctx, self.Process,554 pool = mp.Pool(num_cores)555 main_content = runpy.run_path(main_path,556Traceback (most recent call last):557 File "<string>", line 1, in <module>558 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path559 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main560 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static561 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool562 exitcode = _main(fd, parent_sentinel)563 return Pool(processes, initializer, initargs, maxtasksperchild,564 w.start()565 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start566 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main567 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__568 prepare(preparation_data)569 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare570 self._repopulate_pool()571 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool572 return _run_module_code(code, init_globals, run_name,573 return self._repopulate_pool_static(self._ctx, self.Process,574 _fixup_main_from_path(data['init_main_from_path'])575Traceback (most recent call last):576 File "<string>", line 1, in <module>577 self._popen = self._Popen(self)578 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen579 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path580 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code581 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static582 return Popen(process_obj)583 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main584æ¬å°è®¡ç®æºæ: 8 æ ¸å¿585 _run_code(code, mod_globals, init_globals,586 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code587 w.start()588 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start589 exitcode = _main(fd, parent_sentinel)590 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main591 main_content = runpy.run_path(main_path,592 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path593 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__594 return _run_module_code(code, init_globals, run_name,595 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code596 exec(code, run_globals)597 _run_code(code, mod_globals, init_globals,598 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code599 prepare(preparation_data)600Traceback (most recent call last):601 File "<string>", line 1, in <module>602 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>603 self._popen = self._Popen(self)604 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen605 exec(code, run_globals)606 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>607 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare608 multi_process_tag(data)609 multi_process_tag(data)610 prep_data = spawn.get_preparation_data(process_obj._name)611 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data612 _check_not_importing_main()613 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main614 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag615 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag616 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main617Traceback (most recent call last):618 File "<string>", line 1, in <module>619 return Popen(process_obj)620 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__621 raise RuntimeError('''622RuntimeError:623 An attempt has been made to start a new process before the624 current process has finished its bootstrapping phase.625 This probably means that you are not using fork to start your626 child processes and you have forgotten to use the proper idiom627 in the main module:628 if __name__ == '__main__':629 freeze_support()630 ...631 The "freeze_support()" line can be omitted if the program632 is not going to be frozen to produce an executable.633 exitcode = _main(fd, parent_sentinel)634 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main635 prep_data = spawn.get_preparation_data(process_obj._name)636 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data637 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main638 _fixup_main_from_path(data['init_main_from_path'])639 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path640 pool = mp.Pool(num_cores)641 prepare(preparation_data)642 _check_not_importing_main()643 pool = mp.Pool(num_cores)644 exitcode = _main(fd, parent_sentinel)645 main_content = runpy.run_path(main_path,646Traceback (most recent call last):647 File "<string>", line 1, in <module>648 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare649 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main650 _fixup_main_from_path(data['init_main_from_path'])651 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path652 raise RuntimeError('''653RuntimeError:654 An attempt has been made to start a new process before the655 current process has finished its bootstrapping phase.656 This probably means that you are not using fork to start your657 child processes and you have forgotten to use the proper idiom658 in the main module:659 if __name__ == '__main__':660 freeze_support()661 ...662 The "freeze_support()" line can be omitted if the program663 is not going to be frozen to produce an executable.664 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path665 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main666 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool667 main_content = runpy.run_path(main_path,668 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path669 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool670 return _run_module_code(code, init_globals, run_name,671 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code672 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 116, in spawn_main673 _run_code(code, mod_globals, init_globals,674 return _run_module_code(code, init_globals, run_name,675 prepare(preparation_data)676 return Pool(processes, initializer, initargs, maxtasksperchild,677 return Pool(processes, initializer, initargs, maxtasksperchild,678 exitcode = _main(fd, parent_sentinel)679 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code680 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code681 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare682 _run_code(code, mod_globals, init_globals,683 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code684 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 125, in _main685 exec(code, run_globals)686 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>687 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__688 _fixup_main_from_path(data['init_main_from_path'])689 prepare(preparation_data)690 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 236, in prepare691 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__692 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path693 multi_process_tag(data)694 self._repopulate_pool()695 exec(code, run_globals)696 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>697 self._repopulate_pool()698 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool699 main_content = runpy.run_path(main_path,700 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path701 _fixup_main_from_path(data['init_main_from_path'])702 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path703 return _run_module_code(code, init_globals, run_name,704 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code705 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool706 multi_process_tag(data)707 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag708 return self._repopulate_pool_static(self._ctx, self.Process,709 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static710 _run_code(code, mod_globals, init_globals,711 return self._repopulate_pool_static(self._ctx, self.Process,712 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static713 pool = mp.Pool(num_cores)714 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool715 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code716 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag717 w.start()718 pool = mp.Pool(num_cores)719 w.start()720 return Pool(processes, initializer, initargs, maxtasksperchild,721 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__722 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start723 exec(code, run_globals)724 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>725 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start726 main_content = runpy.run_path(main_path,727 File "D:\App\miniconda\envs\main\lib\runpy.py", line 268, in run_path728 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool729 return Pool(processes, initializer, initargs, maxtasksperchild,730 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__731 self._repopulate_pool()732 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool733 return _run_module_code(code, init_globals, run_name,734 File "D:\App\miniconda\envs\main\lib\runpy.py", line 97, in _run_module_code735 self._popen = self._Popen(self)736 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen737 multi_process_tag(data)738 return Popen(process_obj)739 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__740 _run_code(code, mod_globals, init_globals,741 File "D:\App\miniconda\envs\main\lib\runpy.py", line 87, in _run_code742 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag743 return self._repopulate_pool_static(self._ctx, self.Process,744 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static745 self._repopulate_pool()746 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool747 w.start()748 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start749 pool = mp.Pool(num_cores)750 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool751 exec(code, run_globals)752 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 148, in <module>753 return self._repopulate_pool_static(self._ctx, self.Process,754 prep_data = spawn.get_preparation_data(process_obj._name)755 self._popen = self._Popen(self)756 return Pool(processes, initializer, initargs, maxtasksperchild,757 self._popen = self._Popen(self)758 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static759 multi_process_tag(data)760 File "D:\KevinproPython\workspace\Kevinpro-NLP-demo\QuerySearch\MultiTest.py", line 74, in multi_process_tag761 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen762 pool = mp.Pool(num_cores)763 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen764 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data765 w.start()766 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__767 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 119, in Pool768 return Popen(process_obj)769 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__770 File "D:\App\miniconda\envs\main\lib\multiprocessing\process.py", line 121, in start771 return Popen(process_obj)772 self._repopulate_pool()773 _check_not_importing_main()774 return Pool(processes, initializer, initargs, maxtasksperchild,775 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 212, in __init__776 File "D:\App\miniconda\envs\main\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__777 self._popen = self._Popen(self)778 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool779 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main780 prep_data = spawn.get_preparation_data(process_obj._name)781 self._repopulate_pool()782 File "D:\App\miniconda\envs\main\lib\multiprocessing\context.py", line 327, in _Popen783 prep_data = spawn.get_preparation_data(process_obj._name)784 return self._repopulate_pool_static(self._ctx, self.Process,785 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data786 raise RuntimeError('''787 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 303, in _repopulate_pool788 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 154, in get_preparation_data789 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static790 return Popen(process_obj)791 return self._repopulate_pool_static(self._ctx, self.Process,792 File "D:\App\miniconda\envs\main\lib\multiprocessing\pool.py", line 326, in _repopulate_pool_static793 _check_not_importing_main()794 File "D:\App\miniconda\envs\main\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main795 w.start()796 _check_not_importing_main()797RuntimeError:798 An attempt has been made to start a new process before the799 current process has finished its bootstrapping phase.800 This probably means that you are not using fork to start your801 child processes and you have forgotten to use the proper idiom802 in the main module:803 if __name__ == '__main__':804 freeze_support()805 ......
pool.py
Source:pool.py
...227 w.start()228 logger.debug("added worker")229 elif sys.version_info.minor >= 8:230 def _repopulate_pool(self) -> None:231 return self._repopulate_pool_static(232 self._ctx,233 self.Process,234 self._processes,235 self._pool,236 self._inqueue,237 self._outqueue,238 self._initializer,239 self._initargs,240 self._loop_initializer,241 self._maxtasksperchild,242 self._wrap_exception,243 self._pool_size,244 self._concurrency_limit,245 )246 @staticmethod247 def _repopulate_pool_static(248 ctx,249 Process,250 processes,251 pool,252 inqueue,253 outqueue,254 initializer,255 initargs,256 loop_initializer,257 maxtasksperchild,258 wrap_exception,259 pool_size,260 concurrency_limit,261 ) -> None:...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!