--------------------------------------------------------------------------- OperationalError Traceback (most recent call last) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/base.py in _wrap_pool_connect(self, fn, connection) 3239 try: -> 3240 return fn() 3241 except dialect.dbapi.Error as e: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in connect(self) 309 """ --> 310 return _ConnectionFairy._checkout(self) 311 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in _checkout(cls, pool, threadconns, fairy) 867 if not fairy: --> 868 fairy = _ConnectionRecord.checkout(pool) 869 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in checkout(cls, pool) 475 def checkout(cls, pool): --> 476 rec = pool._do_get() 477 try: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/impl.py in _do_get(self) 255 def _do_get(self): --> 256 return self._create_connection() 257 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in _create_connection(self) 255 --> 256 return _ConnectionRecord(self) 257 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in __init__(self, pool, connect) 370 if connect: --> 371 self.__connect() 372 self.finalize_callback = deque() /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in __connect(self) 665 with util.safe_reraise(): --> 666 pool.logger.debug("Error on connect(): %s", e) 667 else: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py in __exit__(self, type_, value, traceback) 69 if not self.warn_only: ---> 70 compat.raise_( 71 exc_value, /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/util/compat.py in raise_(***failed resolving arguments***) 206 try: --> 207 raise exception 208 finally: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in __connect(self) 660 self.starttime = time.time() --> 661 self.dbapi_connection = connection = pool._invoke_creator(self) 662 pool.logger.debug("Created new connection %r", connection) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/create.py in connect(connection_record) 589 return connection --> 590 return dialect.connect(*cargs, **cparams) 591 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/default.py in connect(self, *cargs, **cparams) 583 # inherits the docstring from interfaces.Dialect.connect --> 584 return self.dbapi.connect(*cargs, **cparams) 585 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/dialects/sqlite/aiosqlite.py in connect(self, *arg, **kw) 291 self, --> 292 await_only(connection), 293 ) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/util/_concurrency_py3k.py in await_only(awaitable) 75 # then returned to the caller (or raised as error) ---> 76 return current.driver.switch(awaitable) 77 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/util/_concurrency_py3k.py in greenlet_spawn(fn, _require_await, *args, **kwargs) 128 # result back to it. --> 129 value = await result 130 except BaseException: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/aiosqlite/core.py in _connect(self) 136 self._tx.put_nowait((future, self._connector)) --> 137 self._connection = await future 138 except Exception: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/aiosqlite/core.py in run(self) 101 LOG.debug("executing %s", function) --> 102 result = function() 103 LOG.debug("operation %s completed", function) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/aiosqlite/core.py in connector() 396 --> 397 return sqlite3.connect(loc, **kwargs) 398 OperationalError: unable to open database file The above exception was the direct cause of the following exception: OperationalError Traceback (most recent call last) /var/folders/d9/_9rrlqns6mb8xlw_314gg7480000gn/T/ipykernel_4662/2396194897.py in ----> 1 state = my_favorite_function() /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/prefect/flows.py in __call__(self, *args, **kwargs) 225 parameters = get_call_parameters(self.fn, args, kwargs) 226 --> 227 return enter_flow_run_engine_from_flow_call(self, parameters) 228 229 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/prefect/engine.py in enter_flow_run_engine_from_flow_call(flow, parameters) 110 # run async code from this synchronous context 111 with start_blocking_portal() as portal: --> 112 return portal.call(begin_run) 113 else: 114 # An event loop is not running so we will create one /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/anyio/from_thread.py in call(self, func, *args) 228 229 """ --> 230 return cast(T_Retval, self.start_task_soon(func, *args).result()) 231 232 @overload /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/concurrent/futures/_base.py in result(self, timeout) 443 raise CancelledError() 444 elif self._state == FINISHED: --> 445 return self.__get_result() 446 else: 447 raise TimeoutError() /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/concurrent/futures/_base.py in __get_result(self) 388 if self._exception: 389 try: --> 390 raise self._exception 391 finally: 392 # Break a reference cycle with the exception in self._exception /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/anyio/from_thread.py in _call_func(self, func, args, kwargs, future) 175 future.add_done_callback(callback) 176 --> 177 retval = await retval 178 except self._cancelled_exc_class: 179 future.cancel() /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/prefect/client.py in wrapper(*args, **kwargs) 56 async with client: 57 kwargs["client"] = client ---> 58 return await fn(*args, **kwargs) 59 60 return wrapper /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/prefect/engine.py in create_then_begin_flow_run(flow, parameters, client) 147 assert_parameters_are_serializable(parameters) 148 --> 149 flow_run = await client.create_flow_run( 150 flow, 151 parameters=parameters, /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/prefect/client.py in create_flow_run(self, flow, name, parameters, context, tags, parent_task_run_id, state) 349 350 # Retrieve the flow id --> 351 flow_id = await self.create_flow(flow) 352 353 flow_run_create = schemas.actions.FlowRunCreate( /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/prefect/client.py in create_flow(self, flow) 187 """ 188 flow_data = schemas.actions.FlowCreate(name=flow.name) --> 189 response = await self.post("/flows/", json=flow_data.dict(json_compatible=True)) 190 191 flow_id = response.json().get("id") /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/prefect/client.py in post(self, route, **kwargs) 115 an `httpx.Response` object 116 """ --> 117 response = await self._client.post(route, **kwargs) 118 # TODO: We may not _always_ want to raise bad status codes but for now we will 119 # because response.json() will throw misleading errors and this will ease /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/httpx/_client.py in post(self, url, content, data, files, json, params, headers, cookies, auth, allow_redirects, timeout) 1823 **Parameters**: See `httpx.request`. 1824 """ -> 1825 return await self.request( 1826 "POST", 1827 url, /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/httpx/_client.py in request(self, method, url, content, data, files, json, params, headers, cookies, auth, allow_redirects, timeout) 1492 cookies=cookies, 1493 ) -> 1494 response = await self.send( 1495 request, auth=auth, allow_redirects=allow_redirects, timeout=timeout 1496 ) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/httpx/_client.py in send(self, request, stream, auth, allow_redirects, timeout) 1584 auth = self._build_request_auth(request, auth) 1585 -> 1586 response = await self._send_handling_auth( 1587 request, 1588 auth=auth, /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/httpx/_client.py in _send_handling_auth(self, request, auth, timeout, allow_redirects, history) 1614 1615 while True: -> 1616 response = await self._send_handling_redirects( 1617 request, 1618 timeout=timeout, /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/httpx/_client.py in _send_handling_redirects(self, request, timeout, allow_redirects, history) 1653 await hook(request) 1654 -> 1655 response = await self._send_single_request(request, timeout) 1656 try: 1657 for hook in self._event_hooks["response"]: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/httpx/_client.py in _send_single_request(self, request, timeout) 1697 stream, 1698 extensions, -> 1699 ) = await transport.handle_async_request( 1700 request.method.encode(), 1701 request.url.raw, /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/httpx/_transports/asgi.py in handle_async_request(self, method, url, headers, stream, extensions) 155 156 try: --> 157 await self.app(scope, receive, send) 158 except Exception: 159 if self.raise_app_exceptions or not response_complete.is_set(): /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/fastapi/applications.py in __call__(self, scope, receive, send) 206 async with AsyncExitStack() as stack: 207 scope["fastapi_astack"] = stack --> 208 await super().__call__(scope, receive, send) 209 else: 210 await super().__call__(scope, receive, send) # pragma: no cover /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/starlette/applications.py in __call__(self, scope, receive, send) 110 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: 111 scope["app"] = self --> 112 await self.middleware_stack(scope, receive, send) 113 114 # The following usages are now discouraged in favour of configuration /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/starlette/middleware/errors.py in __call__(self, scope, receive, send) 179 # This allows servers to log the error, or allows test clients 180 # to optionally raise the error within the test case. --> 181 raise exc 182 183 def format_line( /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/starlette/middleware/errors.py in __call__(self, scope, receive, send) 157 158 try: --> 159 await self.app(scope, receive, _send) 160 except Exception as exc: 161 if not response_started: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/starlette/middleware/cors.py in __call__(self, scope, receive, send) 82 83 if origin is None: ---> 84 await self.app(scope, receive, send) 85 return 86 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/starlette/exceptions.py in __call__(self, scope, receive, send) 80 81 if handler is None: ---> 82 raise exc 83 84 if response_started: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/starlette/exceptions.py in __call__(self, scope, receive, send) 69 70 try: ---> 71 await self.app(scope, receive, sender) 72 except Exception as exc: 73 handler = None /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/starlette/routing.py in __call__(self, scope, receive, send) 654 if match == Match.FULL: 655 scope.update(child_scope) --> 656 await route.handle(scope, receive, send) 657 return 658 elif match == Match.PARTIAL and partial is None: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/starlette/routing.py in handle(self, scope, receive, send) 257 await response(scope, receive, send) 258 else: --> 259 await self.app(scope, receive, send) 260 261 def __eq__(self, other: typing.Any) -> bool: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/starlette/routing.py in app(scope, receive, send) 59 request = Request(scope, receive=receive, send=send) 60 if is_coroutine: ---> 61 response = await func(request) 62 else: 63 response = await run_in_threadpool(func, request) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/fastapi/routing.py in app(request) 214 status_code=400, detail="There was an error parsing the body" 215 ) from e --> 216 solved_result = await solve_dependencies( 217 request=request, 218 dependant=dependant, /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/fastapi/dependencies/utils.py in solve_dependencies(request, dependant, body, background_tasks, response, dependency_overrides_provider, dependency_cache) 519 stack = request.scope.get("fastapi_astack") 520 assert isinstance(stack, AsyncExitStack) --> 521 solved = await solve_generator( 522 call=call, stack=stack, sub_values=sub_values 523 ) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/fastapi/dependencies/utils.py in solve_generator(call, stack, sub_values) 440 elif is_async_gen_callable(call): 441 cm = asynccontextmanager(call)(**sub_values) --> 442 return await stack.enter_async_context(cm) 443 444 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/contextlib.py in enter_async_context(self, cm) 554 _cm_type = type(cm) 555 _exit = _cm_type.__aexit__ --> 556 result = await _cm_type.__aenter__(cm) 557 self._push_async_cm_exit(cm, _exit) 558 return result /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/contextlib.py in __aenter__(self) 173 async def __aenter__(self): 174 try: --> 175 return await self.gen.__anext__() 176 except StopAsyncIteration: 177 raise RuntimeError("generator didn't yield") from None /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/prefect/orion/api/dependencies.py in get_session() 16 17 # load engine with API timeout setting ---> 18 engine = await get_engine(timeout=settings.orion.database.timeout) 19 session_factory = await get_session_factory(bind=engine) 20 async with session_factory() as session: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/prefect/orion/utilities/database.py in get_engine(connection_url, echo, timeout) 113 or not os.path.exists(engine.url.database) 114 ): --> 115 await create_db(engine) 116 117 ENGINES[cache_key] = engine /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/prefect/orion/utilities/database.py in create_db(engine) 745 """Create all database tables.""" 746 engine = engine or await get_engine() --> 747 async with engine.begin() as conn: 748 await conn.run_sync(Base.metadata.create_all) 749 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/ext/asyncio/base.py in __aenter__(self) 58 59 async def __aenter__(self): ---> 60 return await self.start(is_ctxmanager=True) 61 62 @abc.abstractmethod /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/ext/asyncio/engine.py in start(self, is_ctxmanager) 584 585 async def start(self, is_ctxmanager=False): --> 586 await self.conn.start(is_ctxmanager=is_ctxmanager) 587 self.transaction = self.conn.begin() 588 await self.transaction.__aenter__() /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/ext/asyncio/engine.py in start(self, is_ctxmanager) 129 raise exc.InvalidRequestError("connection is already started") 130 self.sync_connection = self._assign_proxied( --> 131 await (greenlet_spawn(self.sync_engine.connect)) 132 ) 133 return self /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/util/_concurrency_py3k.py in greenlet_spawn(fn, _require_await, *args, **kwargs) 132 # the moderated greenlet so that it can continue 133 # its expected flow. --> 134 result = context.throw(*sys.exc_info()) 135 else: 136 result = context.switch(value) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/future/engine.py in connect(self) 417 418 """ --> 419 return super(Engine, self).connect() 420 421 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/base.py in connect(self, close_with_result) 3192 """ 3193 -> 3194 return self._connection_cls(self, close_with_result=close_with_result) 3195 3196 @util.deprecated( /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/base.py in __init__(self, engine, connection, close_with_result, _branch_from, _execution_options, _dispatch, _has_events, _allow_revalidate) 94 connection 95 if connection is not None ---> 96 else engine.raw_connection() 97 ) 98 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/base.py in raw_connection(self, _connection) 3271 3272 """ -> 3273 return self._wrap_pool_connect(self.pool.connect, _connection) 3274 3275 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/base.py in _wrap_pool_connect(self, fn, connection) 3241 except dialect.dbapi.Error as e: 3242 if connection is None: -> 3243 Connection._handle_dbapi_exception_noconnection( 3244 e, dialect, self 3245 ) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/base.py in _handle_dbapi_exception_noconnection(cls, e, dialect, engine) 2095 util.raise_(newraise, with_traceback=exc_info[2], from_=e) 2096 elif should_wrap: -> 2097 util.raise_( 2098 sqlalchemy_exception, with_traceback=exc_info[2], from_=e 2099 ) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/util/compat.py in raise_(***failed resolving arguments***) 205 206 try: --> 207 raise exception 208 finally: 209 # credit to /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/base.py in _wrap_pool_connect(self, fn, connection) 3238 dialect = self.dialect 3239 try: -> 3240 return fn() 3241 except dialect.dbapi.Error as e: 3242 if connection is None: /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in connect(self) 308 309 """ --> 310 return _ConnectionFairy._checkout(self) 311 312 def _return_conn(self, record): /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in _checkout(cls, pool, threadconns, fairy) 866 def _checkout(cls, pool, threadconns=None, fairy=None): 867 if not fairy: --> 868 fairy = _ConnectionRecord.checkout(pool) 869 870 fairy._pool = pool /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in checkout(cls, pool) 474 @classmethod 475 def checkout(cls, pool): --> 476 rec = pool._do_get() 477 try: 478 dbapi_connection = rec.get_connection() /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/impl.py in _do_get(self) 254 255 def _do_get(self): --> 256 return self._create_connection() 257 258 def recreate(self): /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in _create_connection(self) 254 """Called by subclasses to create a new ConnectionRecord.""" 255 --> 256 return _ConnectionRecord(self) 257 258 def _invalidate(self, connection, exception=None, _checkin=True): /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in __init__(self, pool, connect) 369 self.__pool = pool 370 if connect: --> 371 self.__connect() 372 self.finalize_callback = deque() 373 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in __connect(self) 664 except Exception as e: 665 with util.safe_reraise(): --> 666 pool.logger.debug("Error on connect(): %s", e) 667 else: 668 # in SQLAlchemy 1.4 the first_connect event is not used by /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py in __exit__(self, type_, value, traceback) 68 self._exc_info = None # remove potential circular references 69 if not self.warn_only: ---> 70 compat.raise_( 71 exc_value, 72 with_traceback=exc_tb, /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/util/compat.py in raise_(***failed resolving arguments***) 205 206 try: --> 207 raise exception 208 finally: 209 # credit to /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/pool/base.py in __connect(self) 659 try: 660 self.starttime = time.time() --> 661 self.dbapi_connection = connection = pool._invoke_creator(self) 662 pool.logger.debug("Created new connection %r", connection) 663 self.fresh = True /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/create.py in connect(connection_record) 588 if connection is not None: 589 return connection --> 590 return dialect.connect(*cargs, **cparams) 591 592 creator = pop_kwarg("creator", connect) /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/engine/default.py in connect(self, *cargs, **cparams) 582 def connect(self, *cargs, **cparams): 583 # inherits the docstring from interfaces.Dialect.connect --> 584 return self.dbapi.connect(*cargs, **cparams) 585 586 def create_connect_args(self, url): /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/dialects/sqlite/aiosqlite.py in connect(self, *arg, **kw) 290 return AsyncAdapt_aiosqlite_connection( 291 self, --> 292 await_only(connection), 293 ) 294 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/util/_concurrency_py3k.py in await_only(awaitable) 74 # switches back to this greenlet with the result of awaitable that is 75 # then returned to the caller (or raised as error) ---> 76 return current.driver.switch(awaitable) 77 78 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/sqlalchemy/util/_concurrency_py3k.py in greenlet_spawn(fn, _require_await, *args, **kwargs) 127 # wait for a coroutine from await_ and then return its 128 # result back to it. --> 129 value = await result 130 except BaseException: 131 # this allows an exception to be raised within /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/aiosqlite/core.py in _connect(self) 135 future = asyncio.get_event_loop().create_future() 136 self._tx.put_nowait((future, self._connector)) --> 137 self._connection = await future 138 except Exception: 139 self._running = False /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/aiosqlite/core.py in run(self) 100 try: 101 LOG.debug("executing %s", function) --> 102 result = function() 103 LOG.debug("operation %s completed", function) 104 /opt/homebrew/Caskroom/miniforge/base/envs/sandbox/lib/python3.9/site-packages/aiosqlite/core.py in connector() 395 loc = str(database) 396 --> 397 return sqlite3.connect(loc, **kwargs) 398 399 return Connection(connector, iter_chunk_size) OperationalError: (sqlite3.OperationalError) unable to open database file (Background on this error at: https://sqlalche.me/e/14/e3q8)