You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
reticulate crashes R session in RStudio 1.4 preview (1.4.953) #8189
RStudio Edition : Desktop
RStudio Version : 1.4.953
OS Version : PopOS 20.10
R Version : 4.0.2
Steps to reproduce the problem
Run reticulate::py_config()
Describe the problem in detail
Inside of RStudio when running reticulate::py_config() the R session crashes. When the same command is run inside of R from the command line, no crash happens and the expected information is displayed.
Here is the result from R running outside of RStudio:
➜ ~ R
R version 4.0.2 (2020-06-22) -- "Taking Off Again"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> reticulate::py_config()
python: /home/davek/anaconda3/bin/python3
libpython: /home/davek/anaconda3/lib/libpython3.7m.so
pythonhome: /home/davek/anaconda3:/home/davek/anaconda3
version: 3.7.6 (default, Jan 8 2020, 19:59:22) [GCC 7.3.0]
numpy: /home/davek/anaconda3/lib/python3.7/site-packages/numpy
numpy_version: 1.18.1
python versions found:
/home/davek/anaconda3/bin/python3
/usr/bin/python3
/usr/bin/python
/home/davek/anaconda3/bin/python
/home/davek/anaconda3/envs/fill_mask_env/bin/python
/home/davek/miniconda3/bin/python
> reticulate::py_config()
python: /usr/bin/python3
libpython: /usr/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.so
pythonhome: //usr://usr
version: 3.8.6 (default, Sep 25 2020, 09:36:53) [GCC 10.2.0]
numpy: /usr/lib/python3/dist-packages/numpy
numpy_version: 1.18.4
NOTE: Python version was forced by RETICULATE_PYTHON
Warning messages:
1: Python '/home/davek/anaconda3/bin/python' was requested but '/usr/bin/python3' was loaded instead (see reticulate::py_config() for more information)
2: Python '/home/davek/anaconda3/bin/python' was requested but '/usr/bin/python3' was loaded instead (see reticulate::py_config() for more information)
Activity
kevinushey commentedon Oct 26, 2020
What are the results of
reticulate::py_config()when running R in a terminal (outside of RStudio)?dkincaid commentedon Oct 26, 2020
Here is the result from R running outside of RStudio:
kevinushey commentedon Oct 26, 2020
Do you have better luck in RStudio with:
Seems like RStudio might be having trouble binding to your Anaconda Python installation.
dkincaid commentedon Oct 26, 2020
Yes, that does work inside of RStudio: