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
NameError: global name 'templatePrefix' is not defined #35
Comments
Could you state your python version (type "python" into your command line), your OS and if any, which python environment you are using, e.g. Anaconda, Canopy etc. |
This problem was reported before by someone using Python on Windows. |
@attardi |
That also happened before with Windows. Python implementation does not support properly StringIO. |
$python --version Windows + Python 32. |
$python |
I have not problems with StringIO on Windows - so I think it is not StringIO myth. Problem with variables is not StringIO I think - tell why do you think that StringIO explain it in details? |
The problem with StringIO arises only when using it in a multiprocessing configuration. The error message is weird, saying the file has been closed. |
The problem with the global variable templatePrefix is unrelated with StringIO. |
Fixed. |
I will test it if fixed. |
What does mean this bug and why it occurs?
N File "C:\Users\Crezary Wagner\Documents\GitHub\wikipedia-extractor\WikiExtractor.py", line 1896, in clean
ameError: global name 'templatePrefix' is not defined
The text was updated successfully, but these errors were encountered: