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

Nevergrad Installation: pip is configured with locations that require TLS/SSL #564

Closed
MUHAMMAD-LOVE opened this issue Dec 12, 2022 · 15 comments
Assignees
Labels
installation Install issues

Comments

@MUHAMMAD-LOVE
Copy link

MUHAMMAD-LOVE commented Dec 12, 2022

Project Robyn

Hi When installing "Nevergrad" I get this this massage in the rstudio console

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Note: I have searched the issue online but all the solutions dedicated to anaconda enviroment @laresbernardo

@laresbernardo laresbernardo self-assigned this Dec 12, 2022
@laresbernardo laresbernardo added the installation Install issues label Dec 12, 2022
@laresbernardo
Copy link
Collaborator

Hi @MUHAMMAD-LOVE
Have you tried running this code beforehand as suggested in #189 and our demo?
reticulate:::rm_all_reticulate_state()

@MUHAMMAD-LOVE
Copy link
Author

MUHAMMAD-LOVE commented Dec 13, 2022

Yes i did that many times but the error massage is about the SSL/TSL error i have downloaded Openssl but still the same error

"SSL moudel not avialable"

@monathiele
Copy link

monathiele commented Dec 13, 2022

@MUHAMMAD-LOVE can you try this which worked for me last week?

library(reticulate)
reticulate:::rm_all_reticulate_state() #fixed SSL issue 
conda_create("r-reticulate")
use_condaenv("r-reticulate")
conda_install("r-reticulate", "nevergrad", pip = TRUE)
py_config()

@monathiele
Copy link

@MUHAMMAD-LOVE also take note that it DOES NOT work for me specifying "Python 3.9" in line 2:

reticulate:::rm_all_reticulate_state() #fixed SSL issue 
conda_create("r-reticulate", "Python 3.9") #use conda_create("r-reticulate") instead
use_condaenv("r-reticulate")
conda_install("r-reticulate", "nevergrad", pip = TRUE)
py_config() 

@MUHAMMAD-LOVE
Copy link
Author

Trid to install it through conda give me this massage " Error creating conda environment 'r-reticulate' [exit code 1]"
also used
reticulate:::rm_all_reticulate_state() #fixed SSL issue

still same error

@monathiele
Copy link

Thanks for replying :)

Can you specify if you exactly tried this code:

library(reticulate)
reticulate:::rm_all_reticulate_state() #fixed SSL issue 
conda_create("r-reticulate")
use_condaenv("r-reticulate")
conda_install("r-reticulate", "nevergrad", pip = TRUE)
py_config()

Thank you, If this does not work I will try and look into the issue further.

@MUHAMMAD-LOVE
Copy link
Author

When running "conda_create("r-reticulate")"

getting the error message "Error creating conda environment 'r-reticulate' [exit code 1]"

@laresbernardo
Copy link
Collaborator

Check out this thread

@laresbernardo laresbernardo changed the title Nevergrad Instllation Nevergrad Installation: pip is configured with locations that require TLS/SSL Dec 15, 2022
@MUHAMMAD-LOVE
Copy link
Author

The problem not with "RETICULATE" it's installed but can't install "Nevergrad "

When running the query in the Demo code to install it "py_install("nevergrad", pip = TRUE)"

Get the SSL error

@laresbernardo
Copy link
Collaborator

What version of reticulate package do you have? Can you share your py_config() print result?

@MUHAMMAD-LOVE
Copy link
Author

Providing this massege "could not find function "py_config"

@laresbernardo
Copy link
Collaborator

I meant reticulate::py_config() and which version of reticulate you have

@MUHAMMAD-LOVE
Copy link
Author

image

@laresbernardo
Copy link
Collaborator

laresbernardo commented Dec 19, 2022

Can you please try to install numpy before installing nevergrad? That's one of the things we ask the users to check when debugging nevergrad installation.

For reference, (I'm on macOS), using reticulate_1.26:

> reticulate::py_config()
python:         /Users/bernardolares/.virtualenvs/r-reticulate/bin/python
libpython:      /opt/facebook/nix/store/p4yr7ykc4mzzbsh489w9bysqcr0l0r8a-python3-3.8.9/lib/libpython3.8.dylib
pythonhome:     /Users/bernardolares/.virtualenvs/r-reticulate:/Users/bernardolares/.virtualenvs/r-reticulate
version:        3.8.9 (default, Jul 27 2021, 02:53:04)  [Clang 7.1.0 (tags/RELEASE_710/final)]
numpy:          /Users/bernardolares/.virtualenvs/r-reticulate/lib/python3.8/site-packages/numpy
numpy_version:  1.23.3
nevergrad:      /Users/bernardolares/.virtualenvs/r-reticulate/lib/python3.8/site-packages/nevergrad

python versions found: 
 /Users/bernardolares/.virtualenvs/r-reticulate/bin/python
 /usr/local/bin/python3
 /usr/bin/python3

@laresbernardo
Copy link
Collaborator

Closing this task given it's been inactive for some months. Feel free to re-open.

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

No branches or pull requests

3 participants