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
"RuntimeError: release unlocked lock" in numpy mtrand.RandomState.randint while training doc2vec #1311
Comments
Thank you @yangkky, you can use external file store service like dropbox, google disk or something else for share your corpus |
Note the actual error is occurring inside numpy code – and gensim's use of numpy on that Does the problem recur with a later Numpy (0.12+), or with non-Anaconda Python 3.5.x? |
@gojomo Do you mean Numpy 1.12+? I'll try updating jupyter and see if it still fails. I'll also upload the corpus soon. |
Yes, sorry, I meant Numpy 1.12 or later. (Also beyond non-Anaconda Python, a later Anaconda could also be worth trying while the problem is still recurring.) |
Here is a link to the corpus: |
Upgrading to numpy 1.12.1 did not resolve the issue. |
I recommend separately reporting to Numpy's issues; I don't see any error in how gensim is calling this method, and the error arises in that code, with regard to locks it manages. |
@gojomo ok I will do that. |
From the discussion in that numpy ticket, the error seems to be somehow related to multiprocessing and numpy. Closing here as unrelated -- please let us know if there's anything we could do on our side @yangkky . |
Description
I'm trying to train a doc2vec model on a set of protein sequences divided into k-mers. With some datasets/divisions into k-mers, the training completes successfully. However, sometimes, I get a RuntimeError:
Steps/Code/Corpus to Reproduce
Unfortunately, I don't know how to reproduce this on a smaller corpus. I've attached the training code (in a Jupyter notebook).
bug_report.zip
What would be the best way to attach the corpus? It is around 170 MB.
Versions
The text was updated successfully, but these errors were encountered: