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?

I am also getting the SSL certificate error. Attached screenshot

@rajas.black I guess you are using Rasa X version 0.42.5 and installing on the server right? What machine your server is means OS?

@rajas.black By what method you are trying to install rasa x on server?

I want to install Rasa-X in local mode (not on server) and this is the command i used:

pip3 install rasa-x --extra-index-url Simple Index

I am facing issues.

Windows 10. (Tried connecting/disconnecting from VPN)

@rajas.black Alright no worries.

Can you share screenshot the rasa --version while activating env?

Here you go! Apologies, have blacked out the paths.

@rajas.black No Problem. Please follow these steps and you will be able to install Rasa X.

For Rasa Open Source:

`pip install rasa==2.8.1`
`pip install rasa-sdk==2.8.1'

check version rasa --version its install or not

For Installing basic project:

rasa init

then if you need

For Rasa-X Installation

pip install rasa-x==0.39.3 --extra-index-url https://pypi.rasa.com/simple

check rasa version rasa --version its install or not

You will see some error : ImportError: cannot import name ‘RowProxy’ from ‘sqlalchemy.engine’ Install

pip install SQLAlchemy==1.3.22 should fix it

If sanic related error: pip install sanic-jwt==1.6.0

delete .db (events and rasa ) if is showing alembic issue.

Note: If you not able to install you can downgrade the pip version to 20.2

pip install pip==20.2

If you have any error in-between please share with me.

Note: You will see the Event Loop Close error in the terminal, you can ignore that, its an persistent issue with Rasa X and team is working on it.

Note: Latest version having some installation issue and team is aware and working on that asap.

I hope this will solve your issue. Good Luck!

Thanks Nik, but my issue is related to SSL certificate.

I guess its related to the URL we are reaching while pip install or it should be my firewall blocking that IP. Do you think otherwise?

@rajas.black Firstly, try the process. There can be a lot of issue such as your internet speed, firewall, VPN as you mentioned, rasa server etc etc. I’d recommend, try follow the process I suggested in my previous post and if nothing happen then we will solve the other aspect of the issue.

PS: Even I’d recommend to create a fresh conda environment and follow the process.

Created a new env and tried the steps. Same SSL error.

@rajas.black Right. This issue is not related to Rasa but to your system proxy and port 443 issue.

What is port 443?

Port 443 is a virtual port that computers use to divert network traffic . Billions of people across the globe use it every single day. Any web search you make, your computer connects with a server that hosts that information and fetches it for you. This connection is made via a port – either HTTPS or HTTP port.

Check this link: How do I resolve a Port 443 error message? - Community | AppDynamics

PS: Is that you are using a company VPN or did you create your own? Just checking, OR you trying to install on your Windows Machine without using VPN ( as you mentioned in a previous post regarding VPN)

It’s company provided laptop. I tried with and without connected to VPN.

@rajas.black This is issue not related to rasa my friend. Try open the port 443 and ref the link. Good Luck!

1 Like