-
Notifications
You must be signed in to change notification settings - Fork 968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: cannot pickle '_io.TextIOWrapper' object #233
Comments
Incorrect argument. |
@hadifar would it be possible to get full backtrack? I have run into something similar (Python 3.7-3.8, Windows 10) INFO: Preprocessed 2000000 pages
INFO: Preprocessed 2100000 pages
INFO: Preprocessed 2200000 pages
INFO: Preprocessed 2300000 pages
INFO: Loaded 55745 templates in 105.9s
INFO: Starting page extraction from .\plwiki-20201020-pages-articles.xml.
Traceback (most recent call last):
File "C:\Users\Tom\miniconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Tom\miniconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\Tom\miniconda3\lib\site-packages\wikiextractor-3.0.4-py3.8.egg\wikiextractor\WikiExtractor.py", line 620, in <module>
File "C:\Users\Tom\miniconda3\lib\site-packages\wikiextractor-3.0.4-py3.8.egg\wikiextractor\WikiExtractor.py", line 615, in main
File "C:\Users\Tom\miniconda3\lib\site-packages\wikiextractor-3.0.4-py3.8.egg\wikiextractor\WikiExtractor.py", line 357, in process_dump
File "C:\Users\Tom\miniconda3\lib\multiprocessing\process.py", line 121, in start
self._popen = self._Popen(self)
File "C:\Users\Tom\miniconda3\lib\multiprocessing\context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\Tom\miniconda3\lib\multiprocessing\context.py", line 326, in _Popen
return Popen(process_obj)
File "C:\Users\Tom\miniconda3\lib\multiprocessing\popen_spawn_win32.py", line 93, in __init__
reduction.dump(process_obj, to_child)
File "C:\Users\Tom\miniconda3\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle '_io.TextIOWrapper' object
(base) PS C:\Users\Tom\Downloads\plwiki-20201020-pages-articles.xml> Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Tom\miniconda3\lib\multiprocessing\spawn.py", line 102, in spawn_main
source_process = _winapi.OpenProcess(
OSError: [WinError 87] The parameter is incorrect and then I realized that in the |
I tried this on So it seems like this library won't work on MacOS |
Hey guys, If that's the case, docker for mac is the solution. |
Same on MacOS Big Sur and Windows 10 |
@attardi any take on this and linked PR? |
I was able to execute wikiextractor by changing python 3.8 to python 3.7 |
Hi dear maintainers,
After running the provided command in Readme:
python -m wikiextractor.WikiExtractor enwiki-latest-pages-articles.xml.bz2
it throws the following exception:
MacOS Catalina
python 3.8.6
The text was updated successfully, but these errors were encountered: