chaostoolkit-incubator / chaostoolkit-slack

Chaos Toolkit Plugin for Slack
Apache License 2.0
6 stars 2 forks source link

Plugin not found #8

Closed vfarcic closed 4 years ago

vfarcic commented 4 years ago

I'm getting could not find Python plugin 'chaosslack.notification' for notification when trying to send a notification from a container based on the image defined in https://github.com/vfarcic/chaostoolkit-container-image/blob/master/Dockerfile.

I double-checked that the plugin is installed.

pip install -U chaostoolkit-slack
Requirement already up-to-date: chaostoolkit-slack in /usr/local/lib/python3.8/site-packages (0.2.0)
Requirement already satisfied, skipping upgrade: slackclient in /usr/local/lib/python3.8/site-packages (from chaostoolkit-slack) (2.5.0)
Requirement already satisfied, skipping upgrade: logzero in /usr/local/lib/python3.8/site-packages (from chaostoolkit-slack) (1.5.0)
Requirement already satisfied, skipping upgrade: chaostoolkit-lib>=0.15.0 in /usr/local/lib/python3.8/site-packages (from chaostoolkit-slack) (1.8.1)
Requirement already satisfied, skipping upgrade: aiohttp>3.5.2 in /usr/local/lib/python3.8/site-packages (from slackclient->chaostoolkit-slack) (3.6.2)
Requirement already satisfied, skipping upgrade: pyyaml>=3.13 in /usr/local/lib/python3.8/site-packages (from chaostoolkit-lib>=0.15.0->chaostoolkit-slack) (5.3.1)
Requirement already satisfied, skipping upgrade: requests>=2.21 in /usr/local/lib/python3.8/site-packages (from chaostoolkit-lib>=0.15.0->chaostoolkit-slack) (2.23.0)
Requirement already satisfied, skipping upgrade: multidict<5.0,>=4.5 in /usr/local/lib/python3.8/site-packages (from aiohttp>3.5.2->slackclient->chaostoolkit-slack) (4.7.5)
Requirement already satisfied, skipping upgrade: yarl<2.0,>=1.0 in /usr/local/lib/python3.8/site-packages (from aiohttp>3.5.2->slackclient->chaostoolkit-slack) (1.4.2)
Requirement already satisfied, skipping upgrade: chardet<4.0,>=2.0 in /usr/local/lib/python3.8/site-packages (from aiohttp>3.5.2->slackclient->chaostoolkit-slack) (3.0.4)
Requirement already satisfied, skipping upgrade: attrs>=17.3.0 in /usr/local/lib/python3.8/site-packages (from aiohttp>3.5.2->slackclient->chaostoolkit-slack) (19.3.0)
Requirement already satisfied, skipping upgrade: async-timeout<4.0,>=3.0 in /usr/local/lib/python3.8/site-packages (from aiohttp>3.5.2->slackclient->chaostoolkit-slack) (3.0.1)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in /usr/local/lib/python3.8/site-packages (from requests>=2.21->chaostoolkit-lib>=0.15.0->chaostoolkit-slack) (2.9)
Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.8/site-packages (from requests>=2.21->chaostoolkit-lib>=0.15.0->chaostoolkit-slack) (1.25.8)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/local/lib/python3.8/site-packages (from requests>=2.21->chaostoolkit-lib>=0.15.0->chaostoolkit-slack) (2019.11.28)
cat /root/.chaostoolkit/settings.yaml

[token removed from the output]

notifications:
- type: plugin
  module: chaosslack.notification
  token: xoxb-...
  channel: tests

Any idea what might be wrong?

rdrgmnzs commented 4 years ago

The issue seems to be that the slackclient version was not pinned in the latest version published to pypi, and by default a version >=2 is being installed and is no longer compatible.

pip install -U slackclient==1.3.2

this should fix your issue until a new version of the pip package is released.

vfarcic commented 4 years ago

That worked. Thanks a ton.

cian-sheehy commented 3 years ago

I ran into this issue as well using the latest version of. Is there any update on the fix?