2023-12-17 10:43:09,571 C:\Projects\running_page\run_page\garmin_sync.py:311: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() Syncing Activity IDs Syncing Activity IDs Syncing Activity IDs Syncing Activity IDs Syncing Activity IDs 0 new activities to be downloaded Download finished. Elapsed 0.0 seconds GPX files: 469 2023-12-17 10:43:17,456 C:\Projects\running_page\run_page\generator\db.py:12: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) Base = declarative_base() 2023-12-17 10:43:17,549 C:\Projects\running_page\run_page\generator\db.py:12: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) Base = declarative_base() 2023-12-17 10:43:17,676 C:\Projects\running_page\run_page\generator\db.py:12: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) Base = declarative_base() 2023-12-17 10:43:17,866 C:\Projects\running_page\run_page\generator\db.py:12: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) Base = declarative_base() 2023-12-17 10:43:17,926 C:\Projects\running_page\run_page\generator\db.py:12: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) Base = declarative_base() 2023-12-17 10:43:18,110 C:\Projects\running_page\run_page\generator\db.py:12: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) Base = declarative_base() 2023-12-17 10:43:18,259 C:\Projects\running_page\run_page\generator\db.py:12: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) Base = declarative_base() 2023-12-17 10:43:18,418 C:\Projects\running_page\run_page\generator\db.py:12: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) Base = declarative_base() Something went wrong when loading GPX. for file 4630946969.gpx, we just ignore this file and continue descriptor 'timestamp' for 'datetime.datetime' objects doesn't apply to a 'NoneType' object Something went wrong when loading GPX. for file 6386487951.gpx, we just ignore this file and continue descriptor 'timestamp' for 'datetime.datetime' objects doesn't apply to a 'NoneType' object Something went wrong when loading GPX. for file 7098884778.gpx, we just ignore this file and continue descriptor 'timestamp' for 'datetime.datetime' objects doesn't apply to a 'NoneType' object Something went wrong when loading GPX. for file 7358840720.gpx, we just ignore this file and continue descriptor 'timestamp' for 'datetime.datetime' objects doesn't apply to a 'NoneType' object load 453 tracks 2023-12-17 10:43:23,644 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.57178649306297&lon=-122.02189422212541&format=json&addressdetails=1 2023-12-17 10:43:23,739 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.57178649306297&lon=-122.02189422212541&format=json&addressdetails=1 2023-12-17 10:43:23,866 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.57178649306297&lon=-122.02189422212541&format=json&addressdetails=1 2023-12-17 10:43:23,938 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.57178649306297&lon=-122.02189422212541&format=json&addressdetails=1 +2023-12-17 10:43:24,068 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.63719433918595&lon=-122.13263207115233&format=json&addressdetails=1 2023-12-17 10:43:24,152 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.63719433918595&lon=-122.13263207115233&format=json&addressdetails=1 2023-12-17 10:43:24,307 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.63719433918595&lon=-122.13263207115233&format=json&addressdetails=1 2023-12-17 10:43:24,365 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.63719433918595&lon=-122.13263207115233&format=json&addressdetails=1 +2023-12-17 10:43:24,610 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.571352142840624&lon=-122.02024432830513&format=json&addressdetails=1 2023-12-17 10:43:24,673 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.571352142840624&lon=-122.02024432830513&format=json&addressdetails=1 2023-12-17 10:43:24,846 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.571352142840624&lon=-122.02024432830513&format=json&addressdetails=1 2023-12-17 10:43:24,899 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.571352142840624&lon=-122.02024432830513&format=json&addressdetails=1 +2023-12-17 10:43:25,957 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.57248302921653&lon=-122.01860943809152&format=json&addressdetails=1 2023-12-17 10:43:26,960 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(, 'Connection to nominatim.openstreetmap.org timed out. (connect timeout=1)')': /reverse?lat=47.57248302921653&lon=-122.01860943809152&format=json&addressdetails=1 2023-12-17 10:43:27,056 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.57248302921653&lon=-122.01860943809152&format=json&addressdetails=1 2023-12-17 10:43:27,106 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.57248302921653&lon=-122.01860943809152&format=json&addressdetails=1 +2023-12-17 10:43:28,199 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))': /reverse?lat=47.57572020404041&lon=-122.01673029921949&format=json&addressdetails=1 Traceback (most recent call last): File "C:\Program Files\Python312\Lib\site-packages\urllib3\util\connection.py", line 73, in create_connection sock.connect(sa) TimeoutError: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Projects\running_page\run_page\garmin_sync.py", line 323, in make_activities_file(SQL_FILE, folder, JSON_FILE, file_suffix=file_type) File "C:\Projects\running_page\run_page\utils.py", line 51, in make_activities_file generator.sync_from_data_dir(data_dir, file_suffix=file_suffix) File "C:\Projects\running_page\run_page\generator\__init__.py", line 87, in sync_from_data_dir created = update_or_create_activity(self.session, t.to_namedtuple()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Projects\running_page\run_page\generator\db.py", line 86, in update_or_create_activity g.reverse(f"{start_point.lat}, {start_point.lon}") File "C:\Program Files\Python312\Lib\site-packages\geopy\geocoders\nominatim.py", line 372, in reverse return self._call_geocoder(url, callback, timeout=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\geopy\geocoders\base.py", line 368, in _call_geocoder result = self.adapter.get_json(url, timeout=timeout, headers=req_headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\geopy\adapters.py", line 472, in get_json resp = self._request(url, timeout=timeout, headers=headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\geopy\adapters.py", line 482, in _request resp = self.session.get(url, timeout=timeout, headers=headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\requests\sessions.py", line 602, in get return self.request("GET", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\requests\sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\requests\sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\requests\adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\urllib3\connectionpool.py", line 874, in urlopen return self.urlopen( ^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\urllib3\connectionpool.py", line 790, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\urllib3\connectionpool.py", line 467, in _make_request self._validate_conn(conn) File "C:\Program Files\Python312\Lib\site-packages\urllib3\connectionpool.py", line 1096, in _validate_conn conn.connect() File "C:\Program Files\Python312\Lib\site-packages\urllib3\connection.py", line 611, in connect self.sock = sock = self._new_conn() ^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\urllib3\connection.py", line 203, in _new_conn sock = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\site-packages\urllib3\util\connection.py", line 81, in create_connection sock.close() File "C:\Program Files\Python312\Lib\socket.py", line 500, in close def close(self): KeyboardInterrupt sys:1: ResourceWarning: unclosed ^C C:\Projects\running_page>