Closed gvegayon closed 7 years ago
I think the problem is that we changed the command-line calling for Linux & Mac to pipe in the do-file rather than specify the do call on the command line (so stata < dofile.do
rather than stata do dofile.do
) and our Mac target program couldn't handle this. We made the change because dofiles with spaces in the path had their log files created with mangled names. The mac target we're using the GUI version (e.g. "StataMP") rather than the command line one ("stata-mp"). George, is there any reason not to just switch to the command-line one? They appear to both exist in the "contents/macos" package. If we don't switch programs, we could try to go back to the old calling mechanics and reverse engineer how Stata mangles the log-file name.
You know what, I do see to have a problem similar to this. In Stata 13.1 the mata function fileexists is not working as expected (I think), causing parallel_setstatapath not to work properly. While the executable file exists, unix wont find it, but if I use the -force- option in parallel setclusters, this works. I think the following like is buggy:
What are your thoughts @bquistorff ?
Hmm, I'm not see that on Stata/MP 13.1 on MacOS 10.12.
: fileexists(c("sysdir_stata")+"StataMP.app/Contents/MacOS/StataMP")
1
: fileexists(c("sysdir_stata")+"StataMP.app/Contents/MacOS/stata-mp")
1
Anything that can be reproduced on your side?
I think that it may have to do with priviledges. I installed stata using sudo, so the fileexist command fails. But that's weird since the file exists and, as far as I understand, it has read priviledges... will check again and post the error that I get from stata. The thing is that I didn't had that problem with 12.1
George G. Vega Yon (from mobile) +1 626 381 8171 http://cana.usc.edu/vegayon
On Jul 11, 2017 9:59 PM, "Brian Quistorff" notifications@github.com wrote:
Hmm, I'm not see that on Stata/MP 13.1 on MacOS 10.12.
: fileexists(c("sysdir_stata")+"StataMP.app/Contents/MacOS/StataMP") 1
: fileexists(c("sysdir_stata")+"StataMP.app/Contents/MacOS/stata-mp") 1
Anything that can be reproduced on your side?
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/gvegayon/parallel/issues/50#issuecomment-314644521, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2is5x498eY3CtQS1oVssnPuw-1VDBnks5sNFLJgaJpZM4N4tyx .
OK, it is a permission issue. Only root who was the owner had read permissions, for which -fileexists- explicitly returns a 0, i.e. returns 1 iff the file exists and is readable!
Solved!
George G. Vega Yon +1 (626) 381 8171 http://cana.usc.edu/vegayon
On Tue, Jul 11, 2017 at 10:47 PM, George Vega Yon g.vegayon@gmail.com wrote:
I think that it may have to do with priviledges. I installed stata using sudo, so the fileexist command fails. But that's weird since the file exists and, as far as I understand, it has read priviledges... will check again and post the error that I get from stata. The thing is that I didn't had that problem with 12.1
George G. Vega Yon (from mobile) +1 626 381 8171 <(626)%20381-8171> http://cana.usc.edu/vegayon
On Jul 11, 2017 9:59 PM, "Brian Quistorff" notifications@github.com wrote:
Hmm, I'm not see that on Stata/MP 13.1 on MacOS 10.12.
: fileexists(c("sysdir_stata")+"StataMP.app/Contents/MacOS/StataMP") 1
: fileexists(c("sysdir_stata")+"StataMP.app/Contents/MacOS/stata-mp") 1
Anything that can be reproduced on your side?
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/gvegayon/parallel/issues/50#issuecomment-314644521, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2is5x498eY3CtQS1oVssnPuw-1VDBnks5sNFLJgaJpZM4N4tyx .
Expected behavior and actual behavior
"[C]annot even run the examples you provide in your help file. The clusters never report back; the program just keeps running forever and I have to hit Break to stop it. I have of course specified the number of cores before I run anything." (Reported by Belinda Foster)
Steps to reproduce the problem
Examples
System information
dual core Mac running Stata MP 13.1
Output from
creturn list
: