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

'No handlers could be found for logger "root"' error message, py2.7 #84

Closed
asottile opened this issue Apr 3, 2021 · 2 comments
Closed

Comments

@asottile
Copy link
Member

asottile commented Apr 3, 2021

In GitLab by @jwhitlock on Mar 9, 2015, 07:14

$ flake8 --version
2.3.0 (pep8: 1.6.2, pyflakes: 0.8.1, pep257: 0.2.1.post1, mccabe: 0.3) CPython 2.7.8 on Darwin
$ flake8 .
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
$ flake8 -j 0
No handlers could be found for logger "root"
$ flake8 -j 1
No handlers could be found for logger "root"
$ flake8 -j 2
No handlers could be found for logger "root"
No handlers could be found for logger "root"

I suspect this is a multiprocessing / logging interaction, since it varies with the number of jobs selected. It also goes away in Python 3.4.2:

$ flake8 --version
2.3.0 (pep8: 1.6.2, pyflakes: 0.8.1, pep257: 0.2.1.post1, mccabe: 0.3) CPython 3.4.2 on Darwin
$ flake8 .
$ flake8 -j 2 .
@asottile
Copy link
Member Author

asottile commented Apr 3, 2021

In GitLab by @jwhitlock on Mar 9, 2015, 07:20

Still there w/ flake8 2.4.0:

$ flake8 --version
2.4.0 (pep8: 1.5.7, pyflakes: 0.8.1, pep257: 0.2.1.post1, mccabe: 0.3) CPython 2.7.8 on Darwin
$ flake8 .
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
No handlers could be found for logger "root"
$ flake8 -j 2 .
No handlers could be found for logger "root"
No handlers could be found for logger "root"

And, still not there with flake8 2.4.0 and Python 3.4:

$ flake8 --version
2.4.0 (pep8: 1.5.7, pyflakes: 0.8.1, pep257: 0.2.1.post1, mccabe: 0.3) CPython 3.4.2 on Darwin
$ flake8 .

@asottile
Copy link
Member Author

asottile commented Apr 3, 2021

In GitLab by @sigmavirus24 on Mar 9, 2015, 07:46

I think this might be a problem with pep257 which is the only library that uses logging since none of (flake8, pep8, pyflakes, mccabe) use logging. And I already forgot there was an issue for it here.

I'll see if I can bug the pep257 maintainers for a release. Once there is you should be able to update that since there's no version requirement in flake8-docstrings.

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

No branches or pull requests

1 participant