-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Slack Engine cannot import slack client #57842
Comments
@toabi your right. Looks like the slack API did more than a naming convention change https://github.com/slackapi/python-slackclient/tree/master. |
We actually have a Saltstack 3000.2 running with slackclient==1.0.0 still working. Funny. Didn't manage to get the new setup to work with v1.3.2. I didn't dig much deeper though. |
@toabi thanks for the information. I think the best course of action for this issue is to get 1.0.0 working on salt again. Then to upgrade our module to support the new API changes. |
Do you have any news about the release date of this fix? |
the Core team won't be able to get to this in Aluminium and moving directly to Silicon - next release cycle |
Fixed by #60165 |
The above PR did not fix the code in the engine file. only states modules.
|
It's too late for that now. Slack itself will no longer work with that API. |
https://slack.dev/bolt-python - https://github.com/slackapi/bolt-python |
Description
The slack engine fails to load with a recent version of the slack client library
Setup
Steps to Reproduce the behavior
When starting up and enabling debug logging, one can see this:
2020-06-30 07:46:46,163 [salt.utils.lazy :106 ][DEBUG ][30780] Could not LazyLoad slack.start: 'slack' __virtual__ returned False: The 'slackclient' Python module could not be loaded
https://github.com/saltstack/salt/blob/master/salt/engines/slack.py#L177
It's probably because slackclient is now different and the migration described in https://github.com/slackapi/python-slackclient/wiki/Migrating-to-2.x was not done.
Installing a v1 version fixed the import but yielded different errors inside the slack module.
Quickfixing the imports also didn't fully work.
Expected behavior
Salt engine starts with recent version of slackclient.
Versions Report
The text was updated successfully, but these errors were encountered: