Do we need to upgrade packs virtual env after upgrading python version?


(jeff) #1

Hi there,
We are using ss 2.7.2 on RHEL 7.2 with python 2.7.5.
We encounter a TLS1.2 issue in our pack to visit a website, so we want to upgrade the OS python to > 2.7.9.

The question is after upgrading the system python, do we need to do anything for those installed packs’ virtual env?

Thanks a lot.

(W Chan) #2

The packs virtualenv contains a copy of the python executable. You can verify the version by running /opt/stackstorm/virtualenvs/<pack name>/bin/python --version. You can re-setup the virtualenv for the affected packs by running the action st2 run packs.setup_virtualenv packs=<name of your pack>.

(jeff) #3

Thanks @m4dcoder! Will try that.