Skip to content
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

py_call_impl nevergrad error: got an unexpected keyword argument 'lower' #211

Closed
cervuspc opened this issue Nov 7, 2021 · 12 comments
Closed

Comments

@cervuspc
Copy link

cervuspc commented Nov 7, 2021

Hi guys, I tried to run the demo project.
No errors in reticulate and nevergrad installation, but when I run the Step 3 and the first trial is going to start...I receive the following error:
"Error in py_call_impl(callable, dots$args, dots$keywords) :
TypeError: init() got an unexpected keyword argument 'lower'"

Thanks in advance

@gufengzhou
Copy link
Contributor

I've seen this error before that's related to older Nevergrad version. Can you reinstall nevergrad and retry?

@cervuspc
Copy link
Author

cervuspc commented Nov 9, 2021

Hi, thank you for your replay. I have updated all the packages but the problem still remains.
nevergrad --> 0.4.3.post8
python --> 3.8.12
let me know.
thanks

@gufengzhou
Copy link
Contributor

It's tricky because I can't reproduce your issue. I found this issue that's related to reticulate version. rstudio/reticulate#831. I have reticulate_1.22. Which one are you using?

@cervuspc
Copy link
Author

cervuspc commented Nov 9, 2021

I'm using reticulate 1.22 as well but I have always the same error :(
image

@gufengzhou
Copy link
Contributor

Hm this is really strange. The "lower" argument is when setting up nevergrad's hyperparameter bounds in ng$p$Array(shape = my_tuple, lower = 0., upper = 1.), a new argument introduced in nevergrad --> 0.4.3.post8. I would assume it's still because of Nevergrad installation issue. A dumb idea is to remove and reinstall python etc again, as specified in the last comment in this thread. It's really difficult to debug without reproducibility

@gufengzhou
Copy link
Contributor

feel free to reopen if necessary

@wamm0909
Copy link

I'm using reticulate 1.22 as well but I have always the same error :( image

hi, i have the same error, how did you finally solve it? thanks

@mirianatrecc
Copy link

I've got the same error. There are some news about it? Thanks

@lulu-yang-gao
Copy link

I have run the model in a good way for the first 2 trials, one with the demo and one with my own data, while i have encounter the same issue with py_call_impl, unexpected arguement 'lower', I have tried remotes::install_github("rstudio/reticulate"), but it doesn't work, seems I need to reinstall from the very beginning.

@miaox018
Copy link

miaox018 commented May 4, 2022

I've got same issue, anyone has a final solution? @gufengzhou
This is my py_config() returns:
python: C:/Users/xxxx/anaconda3/envs/r-reticulate/python.exe
libpython: C:/Users/xxxx/anaconda3/envs/r-reticulate/python39.dll
pythonhome: C:/Users/xxxx/anaconda3/envs/r-reticulate
version: 3.9.0 | packaged by conda-forge | (default, Nov 26 2020, 07:53:15) [MSC v.1916 64 bit (AMD64)]
Architecture: 64bit
numpy: C:/Users/xxxx/anaconda3/envs/r-reticulate/Lib/site-packages/numpy
numpy_version: 1.22.3

python versions found:
C:/Users/xxxx/anaconda3/envs/r-reticulate/python.exe
C:/Users/xxxx/AppData/Local/Programs/Python/Python38/python.exe
C:/Users/xxxx/anaconda3/python.exe

and py_module_available("nevergrad") returns TRUE

@lulu-yang-gao
Copy link

I've got same issue, anyone has a final solution? @gufengzhou This is my py_config() returns: python: C:/Users/xxxx/anaconda3/envs/r-reticulate/python.exe libpython: C:/Users/xxxx/anaconda3/envs/r-reticulate/python39.dll pythonhome: C:/Users/xxxx/anaconda3/envs/r-reticulate version: 3.9.0 | packaged by conda-forge | (default, Nov 26 2020, 07:53:15) [MSC v.1916 64 bit (AMD64)] Architecture: 64bit numpy: C:/Users/xxxx/anaconda3/envs/r-reticulate/Lib/site-packages/numpy numpy_version: 1.22.3

python versions found: C:/Users/xxxx/anaconda3/envs/r-reticulate/python.exe C:/Users/xxxx/AppData/Local/Programs/Python/Python38/python.exe C:/Users/xxxx/anaconda3/python.exe

and py_module_available("nevergrad") returns TRUE

Hi, what’s your version of Robyn then? My version of Robyn was 3.5.x previously, and currently the latest version is 3.6.3. I thought it might be the Robyn version issue to pop the error warning, so I tried to remove previous Robyn and reinstall, then I found the my rlang should also be updated to 1.0.2. After rlang to 1.0.2, Robyn to 3.6.3, and I also remove packages reticulate and get it reinstalled, now, Robyn works.

@laresbernardo laresbernardo changed the title py_call_impl Error py_call_impl nevergrad error: got an unexpected keyword argument 'lower' Jun 7, 2022
@RanM23
Copy link

RanM23 commented Apr 17, 2023

@laresbernardo I think i've being using the latest version of Robyn and reticulate. Nevergrad also seems to be successfully installed. However i still have this issue as i reported here #691. Any suggestions? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants