stefan-m-lenz / JuliaConnectoR

A functionally oriented interface for calling Julia from R
Other
100 stars 6 forks source link

juliaEval results in Error in runJuliaServer() #4

Closed jgoodman55 closed 3 years ago

jgoodman55 commented 3 years ago

Hello, I've been trying to run the following code and I get the error below.

library(Rserve)

f2 <- juliaEval('function f2(x) x .^2 end') Starting Julia ... Error in runJuliaServer() : Timeout while waiting for response from Julia server

Any advice on what I should do?

stefan-m-lenz commented 3 years ago

One explanation could be that Julia did not start properly or it crashed while starting. Which version of Julia are you using?

Another explanation could be that you have some firewall settings that prevent incoming connections. Which system are you using? Do you have a firewall enabled?

stefan-m-lenz commented 3 years ago

I just tried it on my new Windows computer for the first time and could reproduce this issue. I tracked down the bug on my computer. On my computer the problem was that my user name has a blank space in it, which my other user names on the other computers don't have. This blank resulted in an error when executing the Julia startup script due to unquoted file paths. I fixed this issue in the branch FixIssueNo4. Could you please try out if this solves the issue for you also? For this, please install the JuliaConnectoR from the new GitHub branch:

devtools::install_github("stefan-m-lenz/JuliaConnectoR", ref = "FixIssueNo4")

Thank you very much for reporting this in any case. I will merge this fix into the master branch as soon as I have fixed some new travis issues with R 3.2.

jgoodman55 commented 3 years ago

Hello,

Thank you for getting back to me. I believe I’ve been using Julia 1.5.3 on a Windows computer. I think the issue is likely related to firewall settings, but would that be my computer’s settings or settings specific to Julia or R? Any idea what the setting would be that I need to change? I also have not been using the developer version of the package. Is that necessary for the package to work properly? As far as I know, there’s no space in my username, but I will check that out.

I’m new to GitHub, so maybe I didn’t install everything that I should have? I only installed the package through R. I didn’t download or install anything from your GitHub page. Is there anything I need to do besides install the JuliaConnectoR package?

Thanks for your help!

Get Outlook for iOShttps://aka.ms/o0ukef


From: Stefan Lenz notifications@github.com Sent: Saturday, January 23, 2021 8:51:07 AM To: stefan-m-lenz/JuliaConnectoR JuliaConnectoR@noreply.github.com Cc: Jordan Goodman jgoodman@arbormetrix.com; Author author@noreply.github.com Subject: Re: [stefan-m-lenz/JuliaConnectoR] juliaEval results in Error in runJuliaServer() (#4)

CAUTION: FROM EXTERNAL SENDER

I just tried it on my new Windows computer for the first time and could reproduce this issue. I tracked down the bug on my computer. On my computer the problem was that my user name has a blank space in it, which my other user names on the other computers don't have. This blank resulted in an error when executing the Julia startup script due to unquoted file paths. I fixed this issue in the branch FixIssueNo4. Could you please try out if this solves the issue for you also? For this, please install the `JuliaConnectoR´ from the new GitHub branch:

devtools::install_github("stefan-m-lenz/JuliaConnectoR", ref = "FixIssueNo4")

Thank you very much for reporting this in any case. I will merge this fix into the master branch as soon as I have fixed some new travis issues with R 3.2.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstefan-m-lenz%2FJuliaConnectoR%2Fissues%2F4%23issuecomment-766090953&data=04%7C01%7Cjgoodman%40arbormetrix.com%7Cbba0e466e7e34042a0a208d8bfae513b%7Cf6da34a5e0f84297b45d5dc295fdbc86%7C0%7C0%7C637470102714809441%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Tnh7hwF3zl1bRvIFEAL90sGUUK7xI6vLu4HbzDbqBOU%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FASRUZXUWG3XYSCHQYNKCBNLS3LO5XANCNFSM4WNSC54A&data=04%7C01%7Cjgoodman%40arbormetrix.com%7Cbba0e466e7e34042a0a208d8bfae513b%7Cf6da34a5e0f84297b45d5dc295fdbc86%7C0%7C0%7C637470102714809441%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NkBdrnqrGPFEyo9AdqTolcasUgrtIUedwNxF1S7zWqw%3D&reserved=0.


The information contained in this transmission is proprietary to ArborMetrix, Inc. and/ or its Customers or affiliates and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any review, distribution, or duplication of this communication in any manner is strictly prohibited. In such cases, please contact the sender or info@arbormetrix.com by reply email and delete this mail from your records.

stefan-m-lenz commented 3 years ago

No, the CRAN version is supposed to work. The only other thing you need to install is Julia itself.

But it seems that you have discovered a bug. I fixed it in the development version (which is at this moment identical to the CRAN version with exception of this bug fix), so you can try it by installing it via devtools:

devtools::install_github("stefan-m-lenz/JuliaConnectoR")

I hope that also your problem is fixed with this. Having blank spaces inside paths is very much a Windows thing. Please let me know whether this solves your issue.

jgoodman55 commented 3 years ago

Got it, I will give it a try. I also ran the function juliaSetupOk() and it returned true. Thanks for your help! If that doesn’t work, I’ll check the firewall settings and get back to you.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Stefan Lenz notifications@github.com Sent: Saturday, January 23, 2021 2:55:33 PM To: stefan-m-lenz/JuliaConnectoR JuliaConnectoR@noreply.github.com Cc: Jordan Goodman jgoodman@arbormetrix.com; Author author@noreply.github.com Subject: Re: [stefan-m-lenz/JuliaConnectoR] juliaEval results in Error in runJuliaServer() (#4)

CAUTION: FROM EXTERNAL SENDER

No, the CRAN version is supposed to work. The only other thing you need to install is Julia itself.

But it seems that you have discovered a bug. I fixed it in the development version (which is at this moment identical to the CRAN version with exception of this bug fix), so you can try it by installing it via devtools:

devtools::install_github("stefan-m-lenz/JuliaConnectoR")

I hope that also your problem is fixed with this. Having blank spaces inside paths is very much a Windows thing. Please let me know whether this solves your issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstefan-m-lenz%2FJuliaConnectoR%2Fissues%2F4%23issuecomment-766177667&data=04%7C01%7Cjgoodman%40arbormetrix.com%7C68dff2d37d0b4185272a08d8bfe13a65%7Cf6da34a5e0f84297b45d5dc295fdbc86%7C0%7C0%7C637470321373201327%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=BXVfUbfxJiWUZz84N2whjz6%2FqyezduF%2F4%2BeD0E4j0SI%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FASRUZXQPHHZPS6KBESBHT23S3MZULANCNFSM4WNSC54A&data=04%7C01%7Cjgoodman%40arbormetrix.com%7C68dff2d37d0b4185272a08d8bfe13a65%7Cf6da34a5e0f84297b45d5dc295fdbc86%7C0%7C0%7C637470321373211323%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=2oZY6KkXrC0%2FGNhwMOOvQ9q7yKv3D6NpWvgVV%2B7PvII%3D&reserved=0.


The information contained in this transmission is proprietary to ArborMetrix, Inc. and/ or its Customers or affiliates and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any review, distribution, or duplication of this communication in any manner is strictly prohibited. In such cases, please contact the sender or info@arbormetrix.com by reply email and delete this mail from your records.

jgoodman55 commented 3 years ago

Hello,

I wanted to let you know that I executed the command "remote::install_github("stefan-m-lenz/JuliaConnectoR")", and I am no longer getting the error. Thank you again for your help.

Best,

Jordan

Jordan Goodman, MS Product Analyst, Solutions Delivery jgoodman@arbormetrix.commailto:jgoodman@arbormetrix.com 858-750-8155

ArborMetrix.com

ArborMetrix Specify. Measure. Act.

From: Stefan Lenz notifications@github.com Sent: Saturday, January 23, 2021 3:56 PM To: stefan-m-lenz/JuliaConnectoR JuliaConnectoR@noreply.github.com Cc: Jordan Goodman jgoodman@arbormetrix.com; Author author@noreply.github.com Subject: Re: [stefan-m-lenz/JuliaConnectoR] juliaEval results in Error in runJuliaServer() (#4)

CAUTION: FROM EXTERNAL SENDER

No, the CRAN version is supposed to work. The only other thing you need to install is Julia itself.

But it seems that you have discovered a bug. I fixed it in the development version (which is at this moment identical to the CRAN version with exception of this bug fix), so you can try it by installing it via devtools:

devtools::install_github("stefan-m-lenz/JuliaConnectoR")

I hope that also your problem is fixed with this. Having blank spaces inside paths is very much a Windows thing. Please let me know whether this solves your issue.

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstefan-m-lenz%2FJuliaConnectoR%2Fissues%2F4%23issuecomment-766177667&data=04%7C01%7Cjgoodman%40arbormetrix.com%7C68dff2d37d0b4185272a08d8bfe13a65%7Cf6da34a5e0f84297b45d5dc295fdbc86%7C0%7C0%7C637470321373201327%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=BXVfUbfxJiWUZz84N2whjz6%2FqyezduF%2F4%2BeD0E4j0SI%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FASRUZXQPHHZPS6KBESBHT23S3MZULANCNFSM4WNSC54A&data=04%7C01%7Cjgoodman%40arbormetrix.com%7C68dff2d37d0b4185272a08d8bfe13a65%7Cf6da34a5e0f84297b45d5dc295fdbc86%7C0%7C0%7C637470321373211323%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=2oZY6KkXrC0%2FGNhwMOOvQ9q7yKv3D6NpWvgVV%2B7PvII%3D&reserved=0.


The information contained in this transmission is proprietary to ArborMetrix, Inc. and/ or its Customers or affiliates and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any review, distribution, or duplication of this communication in any manner is strictly prohibited. In such cases, please contact the sender or info@arbormetrix.com by reply email and delete this mail from your records.

stefan-m-lenz commented 3 years ago

Great, thanks for the feedback and the bug report! I will submit the bug fix to CRAN soon.