Skip to content

Instantly share code, notes, and snippets.

@seanbreckenridge
Created September 22, 2023 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanbreckenridge/58f0b9f9dbcfeb970270e7fba99604d7 to your computer and use it in GitHub Desktop.
Save seanbreckenridge/58f0b9f9dbcfeb970270e7fba99604d7 to your computer and use it in GitHub Desktop.
[ERROR 2023-09-21 19:23:42,017 my.time.tz.via_location __init__.py:283 ] [my.time.tz.via_location:_iter_tzs] error while setting up cache, falling back to non-cached version
[ERROR 2023-09-21 19:23:42,017 my.time.tz.via_location __init__.py:284 ] [my.time.tz.via_location:_iter_tzs] (sqlite3.ProgrammingError) Cannot operate on a closed database.
(Background on this error at: https://sqlalche.me/e/14/f405)
Traceback (most recent call last):
File "/home/sean/.local/lib/python3.11/site-packages/cachew/__init__.py", line 815, in cachew_wrapper
yield from cached_items()
GeneratorExit
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1057, in _rollback_impl
self.engine.dialect.do_rollback(self.connection)
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 683, in do_rollback
dbapi_connection.rollback()
sqlite3.ProgrammingError: Cannot operate on a closed database.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/sean/.local/lib/python3.11/site-packages/cachew/__init__.py", line 809, in cachew_wrapper
with BackendCls(cache_path=db_path, logger=logger) as backend:
File "/home/sean/.local/lib/python3.11/site-packages/cachew/backend/sqlite.py", line 79, in __exit__
self.transaction.__exit__(*args)
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/util.py", line 249, in __exit__
self.rollback()
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2438, in rollback
self._do_rollback()
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2642, in _do_rollback
self._close_impl(try_deactivate=True)
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2625, in _close_impl
self._connection_rollback_impl()
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2617, in _connection_rollback_impl
self.connection._rollback_impl()
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1059, in _rollback_impl
self._handle_dbapi_exception(e, None, None, None, None)
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2124, in _handle_dbapi_exception
util.raise_(
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/util/compat.py", line 208, in raise_
raise exception
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1057, in _rollback_impl
self.engine.dialect.do_rollback(self.connection)
File "/home/sean/.local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 683, in do_rollback
dbapi_connection.rollback()
sqlalchemy.exc.ProgrammingError: (sqlite3.ProgrammingError) Cannot operate on a closed database.
(Background on this error at: https://sqlalche.me/e/14/f405)
Exception ignored in: <generator object cachew_wrapper at 0x7f2174710be0>
Traceback (most recent call last):
File "/home/sean/.local/lib/python3.11/site-packages/cachew/__init__.py", line 840, in cachew_wrapper
File "/home/sean/Repos/HPI-karlicoss/my/time/tz/via_location.py", line 188, in _iter_tzs
File "/home/sean/Repos/HPI-karlicoss/my/time/tz/via_location.py", line 135, in _iter_local_dates
File "/home/sean/Repos/HPI-karlicoss/my/time/tz/via_location.py", line 68, in _timezone_finder
ImportError: sys.meta_path is None, Python is likely shutting down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment