Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: cannot import name 'WebClient'

I can't do

from slack import WebClient

I get this error:

ImportError: cannot import name 'WebClient'

Have installed slack module

pip install slack

Error:

Traceback (most recent call last): File "E:\Downloads\slack-automation-master\channel_messages.py", line 3, in from slack import WebClient ImportError: cannot import name 'WebClient'

like image 955
ilhaam Shaikh Avatar asked Sep 23 '19 08:09

ilhaam Shaikh


2 Answers

pip install slack

pip install slackclient

Should do

like image 101
TOM Avatar answered Sep 20 '22 12:09

TOM


uninstall slack and slackclient first: pip uninstall slack pip uninstall slackclient

then re-install, slack first

pip install slack pip install slacklient

works for versions 0.0.2 and 2.9.3 respectively

like image 30
alarrain Avatar answered Sep 17 '22 12:09

alarrain