Hi Guys,
I have installed stackstorm 3.3.0 version on Python 2.7.5 and i want to install Ansible Pack but while installing i am getting below error–
Traceback (most recent call last):
File "/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py", line 334, in <module>
obj.run()
File "/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py", line 193, in run
output = action.run(**self._parameters)
File "/opt/stackstorm/packs/packs/actions/pack_mgmt/download.py", line 86, in run
logger=self.logger)
File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/util/pack_management.py", line 165, in download_pack
verify_pack_version(pack_metadata=pack_metadata, use_python3=use_python3)
File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/util/pack_management.py", line 464, in verify_pack_version
raise ValueError(msg)
ValueError: Pack "ansible" requires Python 3.x, but current Python version is "2.7.5". You can override this restriction by providing the "force" flag, but the pack is not guaranteed to work.
after the googling even i tried to install with --force flag but installation is getting timeout here is output…
[root@stackstorm-2 packs]# st2 pack install ansible --force
For the "ansible" pack, the following content will be registered:
rules | 0
sensors | 0
triggers | 0
actions | 8
aliases | 0
Installation may take a while for packs with many items.
[ succeeded ] init_task
[ succeeded ] download_pack
[ succeeded ] make_a_prerun
[ succeeded ] get_pack_dependencies
[ succeeded ] check_dependency_and_conflict_list
[ timeout ] install_pack_requirements
id: 6054f442cc9b23f2f2c47796
action.ref: packs.install
parameters:
force: true
packs:
- ansible
python3: false
status: failed
start_timestamp: Fri, 19 Mar 2021 18:58:10 UTC
end_timestamp: Fri, 19 Mar 2021 19:09:33 UTC
result:
errors: []
output:
conflict_list: []
message: ''
packs_list:
- ansible
warning_list: null
+--------------------------+-------------------------+------------------------------+-----------------------------+-------------------------------+
| id | status | task | action | start_timestamp |
+--------------------------+-------------------------+------------------------------+-----------------------------+-------------------------------+
| 6054f443b8d4a06354e7e968 | succeeded (0s elapsed) | init_task | core.noop | Fri, 19 Mar 2021 18:58:11 UTC |
| 6054f443b8d4a06354e7e978 | succeeded (57s elapsed) | download_pack | packs.download | Fri, 19 Mar 2021 18:58:11 UTC |
| 6054f47db8d4a06354e7e988 | succeeded (13s elapsed) | make_a_prerun | packs.virtualenv_prerun | Fri, 19 Mar 2021 18:59:09 UTC |
| 6054f48bb8d4a06354e7e998 | succeeded (7s elapsed) | get_pack_dependencies | packs.get_pack_dependencies | Fri, 19 Mar 2021 18:59:23 UTC |
| 6054f493b8d4a06354e7e9a8 | succeeded (0s elapsed) | check_dependency_and_conflic | core.noop | Fri, 19 Mar 2021 18:59:31 UTC |
| | | t_list | | |
| 6054f494b8d4a06354e7e9b8 | timeout (600s elapsed) | install_pack_requirements | packs.setup_virtualenv | Fri, 19 Mar 2021 18:59:32 UTC |
+--------------------------+-------------------------+------------------------------+-----------------------------+-------------------------------+
[root@stackstorm-2 packs]#
cam someone please help me with pointers to fix this issue?
Thanks