Replies: 2 comments 1 reply
-
That pack hasn't been updated in 6 years. It is most likely coded for Python 2.x which reached End of Life as of the 1st of January 2020. Python 2.x support has been dropped for StackStorm since version 3.4. The pack will need work to make the code Python3.x compatible as well as ensure it conforms to the latest StackStorm pack requirements. |
Beta Was this translation helpful? Give feedback.
1 reply
-
A couple of ideas:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/codeamatic/st2_teamcity
I am trying to install this plugin. but I get a number of errors, can anyone help me get it to work?
i changed the config.yaml format to config.schema.yaml as instructed
https://docs.stackstorm.com/reference/pack_configs.html
config.yaml -> config.schema.yaml
i changed in all "actions" configs runner_type
runner_type: run-python -> runner_type: python-script
after that I was able to install the plugin in stackstorm. but when i run action from ui stackstorm like get_build_configs i get errors.
Traceback (most recent call last):
File "/opt/stackstorm/st2/lib/python3.8/site-packages/st2common/runners/utils.py", line 132, in get_action_class_instance
action_instance = action_cls(**kwargs)
TypeError: init() got an unexpected keyword argument 'action_service'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/stackstorm/st2/lib/python3.8/site-packages/python_runner/python_action_wrapper.py", line 395, in
obj.run()
File "/opt/stackstorm/st2/lib/python3.8/site-packages/python_runner/python_action_wrapper.py", line 213, in run
action = self._get_action_instance()
File "/opt/stackstorm/st2/lib/python3.8/site-packages/python_runner/python_action_wrapper.py", line 290, in _get_action_instance
action_instance = get_action_class_instance(
File "/opt/stackstorm/st2/lib/python3.8/site-packages/st2common/runners/utils.py", line 143, in get_action_class_instance
action_instance = action_cls(**kwargs)
File "/opt/stackstorm/packs/teamcity/actions/lib/action.py", line 19, in init
self._headers = self._get_headers()
File "/opt/stackstorm/packs/teamcity/actions/lib/action.py", line 61, in _get_headers
auth_header = base64.b64encode('{}:{}'.format(self._username,
File "/usr/lib/python3.8/base64.py", line 58, in b64encode
encoded = binascii.b2a_base64(s, newline=False)
TypeError: a bytes-like object is required, not 'str'
Beta Was this translation helpful? Give feedback.
All reactions