wikiextractor icon indicating copy to clipboard operation
wikiextractor copied to clipboard

Question ValueError: cannot find context for 'fork'

Open yaoysyao opened this issue 2 years ago • 1 comments

INFO: Loaded 734526 templates in 4151.8s INFO: Starting page extraction from Traceback (most recent call last): File "Anaconda\Scripts\wikiextractor-script.py", line 33, in sys.exit(load_entry_point('wikiextractor==3.0.6', 'console_scripts', 'wikiextractor')()) File "Anaconda\lib\site-packages\wikiextractor-3.0.6-py3.9.egg\wikiextractor\WikiExtractor.py", line 638, in main File "Anaconda\lib\site-packages\wikiextractor-3.0.6-py3.9.egg\wikiextractor\WikiExtractor.py", line 414, in process_dump File "Anaconda\lib\multiprocessing\context.py", line 239, in get_context return super().get_context(method) File "Anaconda\lib\multiprocessing\context.py", line 193, in get_context raise ValueError('cannot find context for %r' % method) from None ValueError: cannot find context for 'fork'

yaoysyao avatar May 11 '22 04:05 yaoysyao

I had the same problem on windows. When I try wikiextractor on Ubuntu, everything runs well. Maybe you can try it on Ubuntu or docker.

lubaolalala avatar May 17 '22 20:05 lubaolalala

fuck, i need this on windows

DedaDev avatar Mar 29 '23 02:03 DedaDev

@DedaDev Maybe try WSL?

doneforaiur avatar Apr 07 '23 13:04 doneforaiur

on windows:

edit: wikiextractor\WikiExtractor.py line 417

Process = get_context("fork").Process -> Process = get_context("spawn").Process

huanggefan avatar Jun 29 '23 01:06 huanggefan