Skip to content
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

Error in makePSOCKcluster(names = spec, ...) : Cluster setup failed. 1 worker of 1 failed to connect. #18

Open
PeiwenLi opened this issue Mar 3, 2021 · 1 comment

Comments

@PeiwenLi
Copy link

PeiwenLi commented Mar 3, 2021

Hi,
I am getting the same error message when using assign.MC() and assign.kfold():

assign.MC(GENEPOP391ind_3_realpop_imputed, train.inds=c(0.5), train.loci=c(0.001, 0.005, 0.05, 0.1, 0.25, 0.5, 1),
           loci.sample="fst", iterations=30, model="svm", dir="assignPOP_391_3_realpop_imputed_mc/")

The error message is:

Parallel computing is on. Analyzing data using 3 cores/threads of CPU...
Error in makePSOCKcluster(names = spec, ...) : 
  Cluster setup failed. 3 worker of 3 failed to connect.

I am using macOS 11.2.2 with R 4.0.2 and assignPOP 1.2.2. Is that something wrong with my operation system as it seems not able to use the 3 cores? I also tried with processors=1 but got the same error message.

Thank you for sharing the tool and thanks in advance for your help!

Sincerely,
Peiwen

@alexkychen
Copy link
Owner

Hi Peiwen,

I did a quick search for your error message. It seems like an issue between RStudio and the "parallel" library.
rstudio/rstudio#6692
Not sure if it has to do with your operating system, but I would try to set the argument "multiprocess=FALSE" in the function to turn off parallel computing (instead of using processors = 1) and see if it works.

Thanks.
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants