SSL error during Rasa X install

Hi,

I’m unable to install rasa x on my mac.

Environment:

  • OS: 10.15.5
  • Conda: 4.8.2
  • Python: 3.7.6

This is the error that I’m getting while trying to run pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simple

$ pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simple
Looking in indexes: https://pypi.org/simple, https://pypi.rasa.com/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)'))': /simple/rasa-x/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)'))': /simple/rasa-x/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)'))': /simple/rasa-x/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)'))': /simple/rasa-x/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)'))': /simple/rasa-x/
Could not fetch URL https://pypi.rasa.com/simple/rasa-x/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.rasa.com', port=443): Max retries exceeded with url: /simple/rasa-x/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)'))) - skipping
Collecting rasa-x
  Using cached rasa-x-0.0.2.tar.gz (1.4 kB)
    ERROR: Command errored out with exit status 1:
     command: /Users/karthikarumugham/anaconda3/envs/bot/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-install-r1fybp5u/rasa-x/setup.py'"'"'; __file__='"'"'/private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-install-r1fybp5u/rasa-x/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-pip-egg-info-1fhomhhr
         cwd: /private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-install-r1fybp5u/rasa-x/
    Complete output (13 lines):
    running egg_info
    creating /private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-pip-egg-info-1fhomhhr/rasa_x.egg-info
    writing /private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-pip-egg-info-1fhomhhr/rasa_x.egg-info/PKG-INFO
    writing dependency_links to /private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-pip-egg-info-1fhomhhr/rasa_x.egg-info/dependency_links.txt
    writing top-level names to /private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-pip-egg-info-1fhomhhr/rasa_x.egg-info/top_level.txt
    writing manifest file '/private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-pip-egg-info-1fhomhhr/rasa_x.egg-info/SOURCES.txt'
    reading manifest file '/private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-pip-egg-info-1fhomhhr/rasa_x.egg-info/SOURCES.txt'
    writing manifest file '/private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-pip-egg-info-1fhomhhr/rasa_x.egg-info/SOURCES.txt'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/mq/dt_jljbj6r91d67j97mmjhth0000gn/T/pip-install-r1fybp5u/rasa-x/setup.py", line 39, in <module>
        raise RuntimeError('Please use `pip install rasa-x -i https://pypi.rasa.com/simple` instead to install the rasa-x package')
    RuntimeError: Please use `pip install rasa-x -i https://pypi.rasa.com/simple` instead to install the rasa-x package
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
1 Like

Weird - the certificate is definitely valid. Which pip version do you have? You can find out with pip --version . You can also try to install Rasa X pip install rasa-x -i https://pypi.rasa.com/simple for now

I have the same issue and the suggested is not working. Could you please help me?