facebookexperimental / Robyn

Robyn is an experimental, AI/ML-powered and open sourced Marketing Mix Modeling (MMM) package from Meta Marketing Science. Our mission is to democratise modeling knowledge, inspire the industry through innovation, reduce human bias in the modeling process & build a strong open source marketing science community.
https://facebookexperimental.github.io/Robyn/
MIT License
1.13k stars 334 forks source link

Issues with Running Robyn #844

Closed DongHarry-Kang closed 11 months ago

DongHarry-Kang commented 11 months ago

Hi Gurus -

I am a rookie in Robyn and R, and here are my two questions regarding new issues with Robyn. Could somebody such as @gufengzhou help me here? thank you very much! Please forgive my unprofessional words below! I actually think the below questions are the same problem so really appreciate your help

Problem 1: System cannot recognize Python path in R: When I try installing nevergrad, after I used the code below Sys.setenv(RETICULATE_PYTHON = "~/.virtualenvs/r-reticulate/bin/python")

I obtained the error message: py_discover_config(required_module, use_environment) でエラー: (In Japanese, エラー means error) Python specified in RETICULATE_PYTHON (~/.virtualenvs/r-reticulate/bin/python) does not exist image

Problem 2: When I run Robyn, I got the error that Nevergrad is never installed.. with the below error message (In Japanese, エラー means error)

image

DongHarry-Kang commented 11 months ago

Hi Guru -

I am happy to report that I was able to resolve this issue. Somehow there is an issue on how folder was set up. I was able to resolve this issue by manually create a folder path for Python like below. I created bin/python folder under r-reticulate

image

As the result, when I run py_config(), I got the below result.

image

And I can run Robyn again now

gufengzhou commented 11 months ago

Great to know it works. Reticulate has issue of recognising python paths. our hands are tied