Problem deploying app. Using a virtual env with reticulate to run python code in app. Error — virtual environment: permission denied

Yes, it's my fault. I haven't noticed that you've already used this function. Sorry.

I know nothing about shiny, so can't really help it it's specific for that problem.

However, I just checked the following on a RStudio Cloud project. You may be able to use it by modifying suitably.

reticulate::py_config()
#> python:         /cloud/project/r-reticulate/bin/python
#> libpython:      /usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so
#> pythonhome:     /usr:/usr
#> virtualenv:     /cloud/project/r-reticulate/bin/activate_this.py
#> version:        2.7.12 (default, Nov 12 2018, 14:36:49)  [GCC 5.4.0 20160609]
#> numpy:          /cloud/project/r-reticulate/local/lib/python2.7/site-packages/numpy
#> numpy_version:  1.16.1
#> 
#> python versions found: 
#>  /cloud/project/r-reticulate/bin/python
#>  /usr/bin/python
#>  /usr/bin/python3
#>  /cloud/project/r-tensorflow/bin/python
reticulate::py_config()[13][[1]][3]
#> [1] "/usr/bin/python3"

FWIW, you may check this thread regarding the use of python 3.

1 Like