Skip to content
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

logger issue #14

Open
bidyutdeka opened this issue Sep 22, 2018 · 5 comments
Open

logger issue #14

bidyutdeka opened this issue Sep 22, 2018 · 5 comments

Comments

@bidyutdeka
Copy link

I am getting this issue when trying to start the bot

No handlers could be found for logger "slackclient.client"
Connection failed. Exception traceback printed above.

@condor723
Copy link

condor723 commented Oct 14, 2018

Friend of mine got the same error. He's on pip 18.1 and python 2.7.

Worked for me on pip 10.0.1 and python 3.7.
screen shot 2018-10-13 at 9 40 57 pm
Also had to use: had to use: python3 -m pip install slackclient
to install.

@bkgoodman
Copy link

I am getting this same error - Python 2.7

@crhatton
Copy link

crhatton commented Jan 4, 2019

I had the same error on Python 2.7.

Python3 gives more info that helped me diagnose this as SlackLoginError. Some googling turned up this link, which suggests using the "Bot User OAuth Access Token" (the second one).

slackapi/python-slack-sdk#326

I switched and it's good now.

@bkgoodman
Copy link

I did make a hack/fix for Python 2.7 (I can't remember)

It was something like adding logger.basicConfig() right at the top of the client module

@crhatton
Copy link

crhatton commented Jan 4, 2019

Yep, just confirmed your fix @bkgoodman ... need to:

import logging
logging.basicConfig()

to get rid of the log handler error on Python 2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants