HackerShackOfficial / AI-Smart-Mirror

Smart Mirror with a smart AI 🤖
MIT License
536 stars 217 forks source link

Error while running the file bot.py { How to solve it ?.} #96

Open Neo-monave opened 5 years ago

Neo-monave commented 5 years ago

(mirror) [Neo@monave AI-Smart-Mirror]$ python3 bot.py HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /microphone?enabled=False (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff8890c8ef0>: Failed to establish a new connection: [Errno 111] Connection refused')) Traceback (most recent call last): File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/urllib3/connection.py", line 159, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/urllib3/util/connection.py", line 80, in create_connection raise err File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/urllib3/util/connection.py", line 70, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/urllib3/connectionpool.py", line 354, in _make_request conn.request(method, url, **httplib_request_kw) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/http/client.py", line 1229, in request self._send_request(method, url, body, headers, encode_chunked) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/http/client.py", line 1275, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/http/client.py", line 1224, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/http/client.py", line 1016, in _send_output self.send(msg) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/http/client.py", line 956, in send self.connect() File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/urllib3/connection.py", line 181, in connect conn = self._new_conn() File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/urllib3/connection.py", line 168, in _new_conn self, "Failed to establish a new connection: %s" % e) urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7ff889066668>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen _stacktrace=sys.exc_info()[2]) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /clear (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff889066668>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "bot.py", line 254, in bot.start() File "bot.py", line 39, in start requests.get("http://localhost:8080/clear") File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/requests/api.py", line 75, in get return request('get', url, params=params, kwargs) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/requests/api.py", line 60, in request return session.request(method=method, url=url, kwargs) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/requests/sessions.py", line 533, in request resp = self.send(prep, send_kwargs) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/requests/sessions.py", line 646, in send r = adapter.send(request, kwargs) File "/home/linuxbrew/.linuxbrew/Cellar/python/3.7.2_1/lib/python3.7/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /clear (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff889066668>: Failed to establish a new connection: [Errno 111] Connection refused')) (mirror) [Neo@monave AI-Smart-Mirror]$