wikiextractor icon indicating copy to clipboard operation
wikiextractor copied to clipboard

ModuleNotFoundError: No module named 'cStringIO'

Open ozz-project opened this issue 5 years ago • 1 comments

Hi, running the script with python 3.7 (86x) under windows throws this error ModuleNotFoundError: No module named 'cStringIO'

ozz-project avatar Mar 02 '19 07:03 ozz-project

The StringIO and cStringIO modules are removed from Python 3. Instead, io module should be imported and io.StringIO or io.BytesIO used for text and data respectively. There is a related StackOverflow question.

I used Python 2.7 instead of PYthon 3.8 and the error disappeared.

EDIT: You probably ran old version of the script, the issue I wrote above was fixed in 9322b7ba54a06a858a57456e1497bc1e1bfb81d9 so I think this issue can be closed.

samuliasmala avatar Apr 28 '20 16:04 samuliasmala