File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection
raise err
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
TimeoutError:[Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 345, in _make_request
self._validate_conn(conn)
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 844, in _validate_conn
conn.connect()
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect
conn = self._new_conn()
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
self, "Failed to establish a new connection: %s"% e)
urllib3.exceptions.NewConnectionError:<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff2f411cf98>: Failed to establish a new connection:[Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
timeout=timeout
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 649, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='stream.twitter.com', port=443): Max retries exceeded with url:/1.1/statuses/filter.json?delimited=length (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff2f411cf98>: Failed to establish a new connection: [Errno 110] Connection timed out',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/tweepy/streaming.py", line 294, in _run
raise exception
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/tweepy/streaming.py", line 247, in _run
verify=self.verify)
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/requests/sessions.py", line 523, in request
resp = self.send(prep, **send_kwargs)
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/home/darkhorse/Desktop/pythonEnv/my_project1/local/lib/python3.6/site-packages/requests/adapters.py", line 504, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='stream.twitter.com', port=443): Max retries exceeded with url:/1.1/statuses/filter.json?delimited=length (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff2f411cf98>: Failed to establish a new connection: [Errno 110] Connection timed out',))
prog.cpp:35:60: warning: character constant too long for its type
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='stream.twitter.com', port=443): Max retries exceeded with url: /1.1/statuses/filter.json?delimited=length (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff2f411cf98>: Failed to establish a new connection: [Errno 110] Connection timed out',))
^~~~~~~~~~~~~~~~~~~~
prog.cpp:35:197: warning: character constant too long for its type
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='stream.twitter.com', port=443): Max retries exceeded with url: /1.1/statuses/filter.json?delimited=length (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff2f411cf98>: Failed to establish a new connection: [Errno 110] Connection timed out',))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cpp:54:63: warning: character constant too long for its type
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='stream.twitter.com', port=443): Max retries exceeded with url: /1.1/statuses/filter.json?delimited=length (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff2f411cf98>: Failed to establish a new connection: [Errno 110] Connection timed out',))
^~~~~~~~~~~~~~~~~~~~
prog.cpp:54:200: warning: character constant too long for its type
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='stream.twitter.com', port=443): Max retries exceeded with url: /1.1/statuses/filter.json?delimited=length (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff2f411cf98>: Failed to establish a new connection: [Errno 110] Connection timed out',))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cpp:1:1: error: ‘Exception’ does not name a type
Exception in thread Thread-1:
^~~~~~~~~