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

AttributeError: 'module' object has no attribute 'NullHandler' #53

Closed
davidawad opened this issue Apr 13, 2015 · 2 comments
Closed

AttributeError: 'module' object has no attribute 'NullHandler' #53

davidawad opened this issue Apr 13, 2015 · 2 comments
Labels

Comments

@davidawad
Copy link

This is after importing straight out of a pip install.
Macbook Air Newest OSX, python version 2.7.9. Not in a Virtualenv

Traceback (most recent call last):
  File "app.py", line 2, in <module>
    from TwitterAPI import TwitterAPI
  File "/Library/Python/2.7/site-packages/TwitterAPI/__init__.py", line 12, in <module>
    logging.getLogger(__name__).addHandler(logging.NullHandler())
AttributeError: 'module' object has no attribute 'NullHandler'
@geduldig
Copy link
Owner

Please post some sample code that fails. I am having trouble reproducing this error. NullHandler was not included with Python until version 2.7, and Macs have several versions of Python pre-installed. Did you run python --version to confirm the version you are using?

Thanks,
Jonas

@aeeilllmrx
Copy link

I think I have this error as well. IPython was working for a while, then stopped.

[I 16:35:52.689 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 11, in
...
...
from .terminal import initialize
File "/Library/Python/2.7/site-packages/IPython/html/terminal/init.py", line 3, in
import terminado
File "/Library/Python/2.7/site-packages/terminado/init.py", line 7, in
logging.getLogger(name).addHandler(logging.NullHandler())
AttributeError: 'module' object has no attribute 'NullHandler'

alex$ python --version
Python 2.7.10
alex:python

alex$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.1
BuildVersion: 14B25

Not sure if this is relevant, but this happened just after I downloaded and used a mysql database.

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

No branches or pull requests

3 participants