-
Notifications
You must be signed in to change notification settings - Fork 317
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
R session crashed #537
Comments
Just a note that I have directed @zhiiiyang here , from greta-dev/greta#526 |
Hi, thanks for reporting. I just looked over that thread, sorry you're encountering such persistent issues! My suspicion is that this is ultimately an M1 Mac installation issue. Does the same segfault happen outside the RStudio IDE, just running R in the terminal? Many installation issues are resolved by running the following in a fresh R session (you can restart R in Rstudio with Ctrl+Shift+F10): # install the development version of packages, in case the
# issue is already fixed but not on CRAN yet.
install.packages("remotes")
remotes::install_github(sprintf("rstudio/%s", c("reticulate", "tensorflow", "keras")))
reticulate::miniconda_uninstall() # start with a blank slate
reticulate::install_miniconda()
keras::install_keras() Test to see if installation was successful. tensorflow::as_tensor("Hello World") If the above snippet succeeded and you saw something like If the above installation failed, please gather some diagnostic info: sessionInfo()
reticulate::py_config()
tensorflow::tf_config()
reticulate::import("tensorflow")
reticulate::py_last_error() Please copy and paste the FULL OUTPUT of running all three snippets, and be sure to enclose the output lines with three backticks (```) for monospace formatting. |
@t-kalinowski Thank you so much for helping out. Yes, I am using an M1 Mac. |
Did you run this snippet as well?
It looks like your miniconda installation path is missing the |
@t-kalinowski here you go. The code has successfully installed minicoda. But it still has errors. As you can see, this is a note to run |
Are you running the x86 build of R under Rosetta? In the earlier thread your sessionInfo() first said yes, then no, not it looks like you're maybe back on x86? What is the output of |
Also, do you maybe have two miniconda installations? Can you please share the output of |
Here you go.
|
Sorry, can you please post the full output from the install instructions as I described in my first response on this issue? |
@t-kalinowski, sorry about the delayed response. Here is the full output from
|
Hi @zhiiiyang, Can you please follow the full instructions I provided in this comment: #537 (comment) Copy + paste the exact snippets into your R console and run them, and then copy + paste the entire console (inputs + outputs) into this issue. |
Hi @t-kalinowski, I see. Please the complete output below.
|
Are you on M1 Mac? If so, can you install the arm64 build of R? |
@t-kalinowski, it worked!
|
Hi, I followed the instructions in the issue demo. And the R session just crashed.
The text was updated successfully, but these errors were encountered: