wikiextractor icon indicating copy to clipboard operation
wikiextractor copied to clipboard

ModuleNotFoundError: No module named '_bz2'

Open Hoainiem opened this issue 7 years ago • 4 comments

I have problem: root@bt:~/Desktop/wikiextractor-master# WikiExtractor.py -c -o extracted enwikibooks-20180401-pages-articles-multistream.xml.bz2 Traceback (most recent call last): File "/usr/local/bin/WikiExtractor.py", line 4, in import('pkg_resources').run_script('wikiextractor==2.69', 'WikiExtractor.py') File "/usr/local/lib/python3.6/site-packages/pkg_resources/init.py", line 658, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/local/lib/python3.6/site-packages/pkg_resources/init.py", line 1445, in run_script exec(script_code, namespace, namespace) File "/usr/local/lib/python3.6/site-packages/wikiextractor-2.69-py3.6.egg/EGG-INFO/scripts/WikiExtractor.py", line 61, in File "/usr/local/lib/python3.6/bz2.py", line 23, in from _bz2 import BZ2Compressor, BZ2Decompressor ModuleNotFoundError: No module named '_bz2'

Hoainiem avatar Apr 19 '18 11:04 Hoainiem

How can i fix it?

Hoainiem avatar Apr 19 '18 11:04 Hoainiem

What about this? https://stackoverflow.com/questions/12806122/missing-python-bz2-module

eracle avatar Sep 07 '18 13:09 eracle

I have the same problem !! WTF ! did you manage to solve it???????????????

amproy avatar Jun 30 '19 13:06 amproy

Not sure if this can be releated with : https://github.com/scikit-learn/scikit-learn/issues/7526 , but here gives a solution upgrading scikit-learn version.

estelabalboa avatar Oct 15 '19 20:10 estelabalboa