129 lines
8.6 KiB
Plaintext
Executable File
129 lines
8.6 KiB
Plaintext
Executable File
|
|
list indices must be integers or slices, not str. file: stockTicker.py. line: 2200. type: <class 'TypeError'>
|
|
Traceback (most recent call last):
|
|
File "stockTicker.py", line 2200, in getDailyWeatherImage
|
|
main = daily_weather['description']
|
|
TypeError: list indices must be integers or slices, not str
|
|
list indices must be integers or slices, not str. file: stockTicker.py. line: 2200. type: <class 'TypeError'>
|
|
Traceback (most recent call last):
|
|
File "stockTicker.py", line 2200, in getDailyWeatherImage
|
|
main = daily_weather['description']
|
|
TypeError: list indices must be integers or slices, not str
|
|
list indices must be integers or slices, not str. file: stockTicker.py. line: 2200. type: <class 'TypeError'>
|
|
Traceback (most recent call last):
|
|
File "stockTicker.py", line 2200, in getDailyWeatherImage
|
|
main = daily_weather['description']
|
|
TypeError: list indices must be integers or slices, not str
|
|
list indices must be integers or slices, not str. file: stockTicker.py. line: 2200. type: <class 'TypeError'>
|
|
Traceback (most recent call last):
|
|
File "stockTicker.py", line 2200, in getDailyWeatherImage
|
|
main = daily_weather['description']
|
|
TypeError: list indices must be integers or slices, not str
|
|
HTTPConnectionPool(host='api.geonames.org', port=80): Max retries exceeded with url: /searchJSON?q=London&username=fintic&maxRows=1 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xb5c72ed0>, 'Connection to api.geonames.org timed out. (connect timeout=1)')). file: api_caller.py. line: 356. type: <class 'geopy.exc.GeocoderUnavailable'>
|
|
Traceback (most recent call last):
|
|
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
|
|
(self._dns_host, self.port), self.timeout, **extra_kw)
|
|
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
|
|
raise err
|
|
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
|
|
sock.connect(sa)
|
|
socket.timeout: timed out
|
|
|
|
During handling of the above exception, another exception occurred:
|
|
|
|
Traceback (most recent call last):
|
|
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
|
|
chunked=chunked)
|
|
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
|
|
conn.request(method, url, **httplib_request_kw)
|
|
File "/usr/lib/python3.7/http/client.py", line 1260, in request
|
|
self._send_request(method, url, body, headers, encode_chunked)
|
|
File "/usr/lib/python3.7/http/client.py", line 1306, in _send_request
|
|
self.endheaders(body, encode_chunked=encode_chunked)
|
|
File "/usr/lib/python3.7/http/client.py", line 1255, in endheaders
|
|
self._send_output(message_body, encode_chunked=encode_chunked)
|
|
File "/usr/lib/python3.7/http/client.py", line 1030, in _send_output
|
|
self.send(msg)
|
|
File "/usr/lib/python3.7/http/client.py", line 970, in send
|
|
self.connect()
|
|
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
|
|
conn = self._new_conn()
|
|
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 164, in _new_conn
|
|
(self.host, self.timeout))
|
|
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0xb5c72ed0>, 'Connection to api.geonames.org timed out. (connect timeout=1)')
|
|
|
|
During handling of the above exception, another exception occurred:
|
|
|
|
Traceback (most recent call last):
|
|
File "/home/pi/.local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
|
|
timeout=timeout
|
|
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 667, in urlopen
|
|
**response_kw)
|
|
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 667, in urlopen
|
|
**response_kw)
|
|
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
|
|
_stacktrace=sys.exc_info()[2])
|
|
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
|
|
raise MaxRetryError(_pool, url, error or ResponseError(cause))
|
|
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='api.geonames.org', port=80): Max retries exceeded with url: /searchJSON?q=London&username=fintic&maxRows=1 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xb5c72ed0>, 'Connection to api.geonames.org timed out. (connect timeout=1)'))
|
|
|
|
During handling of the above exception, another exception occurred:
|
|
|
|
Traceback (most recent call last):
|
|
File "/home/pi/.local/lib/python3.7/site-packages/geopy/adapters.py", line 448, in _request
|
|
resp = self.session.get(url, timeout=timeout, headers=headers)
|
|
File "/home/pi/.local/lib/python3.7/site-packages/requests/sessions.py", line 555, in get
|
|
return self.request('GET', url, **kwargs)
|
|
File "/home/pi/.local/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
|
|
resp = self.send(prep, **send_kwargs)
|
|
File "/home/pi/.local/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
|
|
r = adapter.send(request, **kwargs)
|
|
File "/home/pi/.local/lib/python3.7/site-packages/requests/adapters.py", line 504, in send
|
|
raise ConnectTimeout(e, request=request)
|
|
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='api.geonames.org', port=80): Max retries exceeded with url: /searchJSON?q=London&username=fintic&maxRows=1 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xb5c72ed0>, 'Connection to api.geonames.org timed out. (connect timeout=1)'))
|
|
|
|
During handling of the above exception, another exception occurred:
|
|
|
|
Traceback (most recent call last):
|
|
File "api_caller.py", line 356, in updateWeather
|
|
loc = gn.geocode(location)
|
|
File "/home/pi/.local/lib/python3.7/site-packages/geopy/geocoders/geonames.py", line 157, in geocode
|
|
return self._call_geocoder(url, callback, timeout=timeout)
|
|
File "/home/pi/.local/lib/python3.7/site-packages/geopy/geocoders/base.py", line 368, in _call_geocoder
|
|
result = self.adapter.get_json(url, timeout=timeout, headers=req_headers)
|
|
File "/home/pi/.local/lib/python3.7/site-packages/geopy/adapters.py", line 438, in get_json
|
|
resp = self._request(url, timeout=timeout, headers=headers)
|
|
File "/home/pi/.local/lib/python3.7/site-packages/geopy/adapters.py", line 460, in _request
|
|
raise GeocoderUnavailable(message)
|
|
geopy.exc.GeocoderUnavailable: HTTPConnectionPool(host='api.geonames.org', port=80): Max retries exceeded with url: /searchJSON?q=London&username=fintic&maxRows=1 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xb5c72ed0>, 'Connection to api.geonames.org timed out. (connect timeout=1)'))
|
|
local variable 'temp' referenced before assignment. file: stockTicker.py. line: 2239. type: <class 'UnboundLocalError'>
|
|
Traceback (most recent call last):
|
|
File "stockTicker.py", line 2239, in getDailyWeatherImage
|
|
temp_img = self.textImage(str("{0:.0f}".format(temp)), large_font)
|
|
UnboundLocalError: local variable 'temp' referenced before assignment
|
|
local variable 'temp' referenced before assignment. file: stockTicker.py. line: 2239. type: <class 'UnboundLocalError'>
|
|
Traceback (most recent call last):
|
|
File "stockTicker.py", line 2239, in getDailyWeatherImage
|
|
temp_img = self.textImage(str("{0:.0f}".format(temp)), large_font)
|
|
UnboundLocalError: local variable 'temp' referenced before assignment
|
|
local variable 'temp' referenced before assignment. file: stockTicker.py. line: 2239. type: <class 'UnboundLocalError'>
|
|
Traceback (most recent call last):
|
|
File "stockTicker.py", line 2239, in getDailyWeatherImage
|
|
temp_img = self.textImage(str("{0:.0f}".format(temp)), large_font)
|
|
UnboundLocalError: local variable 'temp' referenced before assignment
|
|
local variable 'temp' referenced before assignment. file: stockTicker.py. line: 2239. type: <class 'UnboundLocalError'>
|
|
Traceback (most recent call last):
|
|
File "stockTicker.py", line 2239, in getDailyWeatherImage
|
|
temp_img = self.textImage(str("{0:.0f}".format(temp)), large_font)
|
|
UnboundLocalError: local variable 'temp' referenced before assignment
|
|
local variable 'temp' referenced before assignment. file: stockTicker.py. line: 2239. type: <class 'UnboundLocalError'>
|
|
Traceback (most recent call last):
|
|
File "stockTicker.py", line 2239, in getDailyWeatherImage
|
|
temp_img = self.textImage(str("{0:.0f}".format(temp)), large_font)
|
|
UnboundLocalError: local variable 'temp' referenced before assignment
|
|
local variable 'temp' referenced before assignment. file: stockTicker.py. line: 2239. type: <class 'UnboundLocalError'>
|
|
Traceback (most recent call last):
|
|
File "stockTicker.py", line 2239, in getDailyWeatherImage
|
|
temp_img = self.textImage(str("{0:.0f}".format(temp)), large_font)
|
|
UnboundLocalError: local variable 'temp' referenced before assignment
|