wikiextractor icon indicating copy to clipboard operation
wikiextractor copied to clipboard

TypeError: cannot pickle '_io.TextIOWrapper' object

Open wengefan opened this issue 4 years ago • 7 comments

INFO: Starting page extraction from jawiki-latest-pages-articles.xml.bz2. Traceback (most recent call last): File "C:\wikipedia\wikiextractor-master\wikiextractor\WikiExtractor.py", line 638, in main() File "C:\wikipedia\wikiextractor-master\wikiextractor\WikiExtractor.py", line 633, in main process_dump(input_file, args.templates, output_path, file_size, File "C:\wikipedia\wikiextractor-master\wikiextractor\WikiExtractor.py", line 361, in process_dump reduce.start() File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\multiprocessing\process.py", line 121, in start self._popen = self._Popen(self) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\multiprocessing\context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\multiprocessing\context.py", line 327, in _Popen return Popen(process_obj) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\multiprocessing\popen_spawn_win32.py", line 93, in init reduction.dump(process_obj, to_child) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) TypeError: cannot pickle '_io.TextIOWrapper' object

C:\wikipedia\wikiextractor-master\wikiextractor>Traceback (most recent call last): File "", line 1, in File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\lib\multiprocessing\spawn.py", line 102, in spawn_main source_process = _winapi.OpenProcess( OSError: [WinError 87] パラメーターが間違っています。

wengefan avatar Feb 14 '21 02:02 wengefan

Same error on osx with python 3.8.6 wikiextractor version 3.0.4

akode avatar Feb 25 '21 10:02 akode

Same here with win10 python 3.9.2 wikiextractor version 3.0.4

IlterOnatKorkmaz avatar Mar 19 '21 22:03 IlterOnatKorkmaz

Same here with win10 python 3.8.5 wikiextractor version 3.0.4.

leanhdung1994 avatar Apr 16 '21 15:04 leanhdung1994

Same error on osx with python 3.8.6 wikiextractor version 3.0.4

can you fix it?

vtttuong avatar May 07 '21 02:05 vtttuong

Got the same on Win10 with Python 3.7

BelowzeroA avatar Jun 06 '21 13:06 BelowzeroA

Same error on osx with python 3.9.5

zhlei99 avatar Jun 30 '21 15:06 zhlei99

Same error on macOS Big Sur 11.6 running Python 3.8.8.

ForkingPickler(file, protocol).dump(obj) TypeError: cannot pickle '_io.TextIOWrapper' object

odebroqueville avatar Oct 13 '21 15:10 odebroqueville