Join GitHub today
Multiprocessing runtime error in Windows 64 bit #399
This one is for @gabknight .
In 64 bit Windows we get the following runtime error when we run peaks_from_models with parallel=True
File "C:\Users\Eleftherios\Anaconda\lib\multiprocessing\process.py", line 130,
The error suggests to add freeze_support which actually we tried and worked. But that means that we need to change our tutorials to check if Windows then add freeze_support.
@gabknight can you check this problem and see how it can be written in a nice way and maybe be hidden from the user?
@Garyfallidis I did not know this issue. From what I found,
An other option could be to do this in
It seems that if you just use
if name == 'main':
in windows then the problem stops even without running freeze_support().
If you do what you suggest. I mean write a warning inside peaks_from_models you should also suggest the solution in the warning. Say that they have to add freeze_support() in their main.
Also you may need to update our tutorials that use peaks_from_models to have a main. Which means also we need to make sure that the tutorials render nicely in the website.
I would suggest to take action asap because this is a serious error. The tutorials never end and use a lot of memory for our windows users.