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 NullHandler Attribute #56

Closed
maxwelldonkoh opened this issue Apr 28, 2015 · 6 comments
Closed

No NullHandler Attribute #56

maxwelldonkoh opened this issue Apr 28, 2015 · 6 comments
Labels

Comments

@maxwelldonkoh
Copy link

I am getting this error. 'module' object has no attribute 'NullHandler. Using python 2.7. Help?

@geduldig
Copy link
Owner

Please post a short sample which produces this error.
Thanks!
Jonas

@maxwelldonkoh
Copy link
Author

Just the from 'from TwitterAPI import TwitterAPI' produces the error. even without any other code.

@geduldig
Copy link
Owner

I'm not sure what's going on. I don't get this error myself on Mac or PC running Python 2.7.2 or 2.7.9. NullHandler has been included in Python beginning with version 2.7. Any other info you can provide? Did you use python --version to verify the version?

@maxwelldonkoh
Copy link
Author

Okay I figured the error. I was using the wrong version. Thanks!

@geduldig
Copy link
Owner

Glad you figured it out. There was a previous poster with exactly the same issue, so I'm curious how you ended up running a different version or what led you to think you were running a different version of Python. Maybe it will help others with this issue.

Jonas

@geduldig
Copy link
Owner

You need to update your requests library.

On Apr 29, 2015, at 12:06 AM, maxwelldonkoh notifications@github.com wrote:

I figured my IDE was using 2.6. However, I am getting another error. I'm fairly new to python. This is the traceback.

Traceback (most recent call last):
File "/Users/maxwelldonkoh/PycharmProjects/algo/main.py", line 3, in
from TwitterAPI import TwitterAPI
File "/Users/maxwelldonkoh/PycharmProjects/algo/TwitterAPI/TwitterAPI.py", line 6, in
from .BearerAuth import BearerAuth as OAuth2
File "/Users/maxwelldonkoh/PycharmProjects/algo/TwitterAPI/BearerAuth.py", line 8, in
import requests
ImportError: No module named requests


Reply to this email directly or view it on GitHub.

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

2 participants