question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'NoneType' object has no attribute 'strip'

See original GitHub issue

i’ve been getting this error for a while.

Traceback (most recent call last):
  File "engine/twitter.py", line 139, in <module>
    stream.filter(track=['#blood',], languages=['en'])
  File "/usr/local/lib/python2.7/dist-packages/tweepy/streaming.py", line 445, in filter
    self._start(async)
  File "/usr/local/lib/python2.7/dist-packages/tweepy/streaming.py", line 361, in _start
    self._run()
  File "/usr/local/lib/python2.7/dist-packages/tweepy/streaming.py", line 263, in _run
    self._read_loop(resp)
  File "/usr/local/lib/python2.7/dist-packages/tweepy/streaming.py", line 313, in _read_loop
    line = buf.read_line().strip()
AttributeError: 'NoneType' object has no attribute 'strip'

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
karelbilekcommented, Jun 29, 2016

it’s fixed in #694 , nobody is merging PR here

1reaction
wuhlandcommented, Oct 13, 2017

I just got this error. Somebody please give somebody access to this repo so they can PR and also post to PyPI

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'NoneType' object has no attribute 'strip'
string doesn't return anything, so you're calling the strip() method on something that doesn't exist. However, then you have another problem; ...
Read more >
AttributeError: 'NoneType' object has no attribute 'strip' #70
The error is because the python str method .strip() is trying to operate on a None, rather than the expected string. The only...
Read more >
Error: 'NoneType' object has no attribute 'strip' - Google Groups
When I save the record in database I get this error: Error: 'NoneType' object has no attribute 'strip'. My model is: from django.db...
Read more >
AttributeError: 'NoneType' object has no attribute 'strip' - Reddit
AttributeError : 'NoneType' object has no attribute 'strip'. I was learning how to make a discord bot using discord.py with this freecodecamp ...
Read more >
NoneType object has no attribute strip in session display - Indico
NoneType object has no attribute strip in session display. Reported by: arescope, Owned by: arescope. Priority: high, Milestone: v0.98.1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found