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.07k stars 323 forks source link

Nevergrad error in robyn_run() #1004

Closed bart-vanvlerken closed 6 days ago

bart-vanvlerken commented 1 week ago

Project Robyn

Describe issue

Robyn tells me Nevergrad is not installed, even though it should be as I've run the code before without issues (see screenshot). image

I see that Robyn runs reticulate's py_module_available() under the hood to produce this error, which is basically reticulate's import() function with an error handler, so I ran this code manually which produced the following error: image Is it possible that this error is then caused by the use of a deprecated NumPy feature?

Environment & Robyn version

Robyn version: 3.11.0 R version: 4.4.0

TJh0110 commented 1 week ago

I got the same issue as well, but 2 weeks back it was working fine for me as well. Any luck solving it ?

gufengzhou commented 1 week ago

This error needs an update from the Nevergrad's side. I'll ping them and keep you updated.

cc @igorskokan

NataliaVConnolly commented 1 week ago

Seeing the same error. Tried to install an older version of nevergrad, still no luck.

gufengzhou commented 1 week ago

Until the Nevergrad fix, see a workaround here

https://github.com/facebookexperimental/Robyn/issues/998

igorskokan commented 1 week ago

Nevergrad landed the fix yesterday

The Nevergrad code should work with both numpy1 (at least reasonably recent) and numpy2.0.

Check it out and let us know.

On Fri, 21 Jun 2024 at 12:20, gufengzhou @.***> wrote:

Until the Nevergrad fix, see a workaround here

998 https://github.com/facebookexperimental/Robyn/issues/998

— Reply to this email directly, view it on GitHub https://github.com/facebookexperimental/Robyn/issues/1004#issuecomment-2182557533, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARF52KDJUXNNZ2N7Q43NBW3ZIQEAZAVCNFSM6AAAAABJUQWT4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSGU2TONJTGM . You are receiving this because you were mentioned.Message ID: @.***>

bart-vanvlerken commented 6 days ago

@gufengzhou I'm no longer getting the same error, but a new one: image

Will this require an update on Robyn's end?

gufengzhou commented 6 days ago

Have you updated /reinstalled nevergrad? If yes please also restart R and try.

After the above, If this still occurs, an user here has solved it by updating the R version. See https://github.com/facebookexperimental/Robyn/issues/1006

bart-vanvlerken commented 6 days ago

Thanks Gufeng, that worked!

gufengzhou commented 6 days ago

Would you please let me know if you needed to update R or not? If yes, which R versions did you have before/after?

bart-vanvlerken commented 5 days ago

I did need to update, yes. I updated from 4.4.0 to 4.4.1