We are trying to install packs on Oracle Linux 7 with Python 2.7.5 and StackStorm 3.1.0, but it is failing with the below error:
-bash-4.2# /vol_01/opt/stackstorm/st2/bin/virtualenv -p /opt/stackstorm/st2/bin/python --always-copy --no-download /opt/stackstorm/virtualenvs/mc_salt
Already using interpreter /opt/stackstorm/st2/bin/python
Using real prefix '/usr'
No LICENSE.txt / LICENSE found in source
New python executable in /opt/stackstorm/virtualenvs/mc_salt/bin/python
Command /opt/stackstorm/virt...s/mc_salt/bin/python -m pip config list had error code 1
Installing setuptools, pip, wheel...
Complete output from command /opt/stackstorm/virt...s/mc_salt/bin/python - setuptools pip wheel:
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
File "/usr/lib64/python2.7/tempfile.py", line 32, in <module>
import io as _io
File "/usr/lib64/python2.7/io.py", line 51, in <module>
import _io
ImportError: No module named _io
The pack installation succeeds if I install a newer Python 2 version manually and run the exact command we see in our chef cookbook with the new Python executable. Any ideas on how to proceed?