-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
LDA Multicore Windows Error #940
Comments
Does anyone have windows 10 to try if adding |
but at where i have to add this code ?? if name == 'main': i try this but same error |
It should be in the main module of your program as in https://docs.python.org/dev/library/multiprocessing.html#multiprocessing.freeze_support May I ask for the full code that reproduces the error? |
Here i put all the files of http://www.pastefile.com/hkNFWB LDA single core working fine i also notice that so up to 5 2016-10-14 10:59:37,586 : INFO : PROGRESS: pass 0, dispatched chunk #1 = documents up to #4000/18206, outstanding queue size 2 then error .... |
Hmm probably |
yes i tried just now & everything is same don't know what is the problem i also try to debug code but not understand well |
hmm maybe that line needs to be in |
yup i know that it is problem of forking on windows and i also try LDAMulticore |
adding this to main source code run working of program successfully LDAmulticore |
@hiral2cool Thanks a lot for reporting your fix! |
Ping @hiral2cool could you copy paste your fixed code here? |
yaa sure here is my code http://www.pastefile.com/PZKSa3 but may be sometimes problem occurs with this is forrtl: error (200): program aborting due to control-C event but we try to run again then also sometimes not come and run program successfully |
Resolved by adding this code:
|
os : windows 10
version : Python 2.7.10
all latest numpy,scipy everything upgraded
when i start ldamulticore error is like this
PYTHON
lda = gensim.models.LdaMulticore(corpus=corpus, id2word=id2word, num_topics=10)
ERROR
File "C:\Python27\lib\multiprocessing\forking.py", line 361, in get_command_line
is not going to be frozen to produce a Windows executable.''')
RuntimeError:
Attempt to start a new process before the current process
has finished its bootstrapping phase.
working perfect on Ubuntu but problem in windows version
any help will be useful
The text was updated successfully, but these errors were encountered: