C:\Users\Виктор\Anaconda\lib\site-packages\tweepy-3.6.0-py3.4.egg\tweepy\streaming.py in _run(self)
292 # call a handler first so that the exception can be logged.
293 self.listener.on_exception(exception)
--> 294 raise exception
295
296 def _data(self, data):
C:\Users\Виктор\Anaconda\lib\site-packages\tweepy-3.6.0-py3.4.egg\tweepy\streaming.py in _run(self)
261 self.snooze_time = self.snooze_time_step
262 self.listener.on_connect()
--> 263 self._read_loop(resp)
264 except (Timeout, ssl.SSLError) as exc:
265 # This is still necessary, as a SSLError can actually be
C:\Users\Виктор\Anaconda\lib\site-packages\tweepy-3.6.0-py3.4.egg\tweepy\streaming.py in _read_loop(self, resp)
322 next_status_obj = buf.read_len(length)
323 if self.running:
--> 324 self._data(next_status_obj)
325
326 # # Note: keep-alive newlines might be inserted before each length value.
C:\Users\Виктор\Anaconda\lib\site-packages\tweepy-3.6.0-py3.4.egg\tweepy\streaming.py in _data(self, data)
295
296 def _data(self, data):
--> 297 if self.listener.on_data(data) is False:
298 self.running = False
299
C:\Users\Виктор\Anaconda\lib\site-packages\tweepy-3.6.0-py3.4.egg\tweepy\streaming.py in on_data(self, raw_data)
52 if 'in_reply_to_status_id' in data:
53 status = Status.parse(self.api, data)
---> 54 if self.on_status(status) is False:
55 return False
56 elif 'delete' in data:
in on_status(self, status)
1 class TweetListener(StreamListener):
2 def on_status(self,status):
----> 3 startDate=datetime.datetime('2015-06-30')
4 stopDate=datetime.datetime('2015-10-30')
5 for date in date_range(startDate,stopDate):
в 128 строчке была допущена ошибка в синтаксисе
from sklearn.linear_model LinearRegression (пропущен импорт)
Пишет SyntaxError: invalid syntax
Есть возможность,что бы он игнорировал все строчки с ошибками?