Edmondo Porcu

05/15/2023, 11:37 PM
I have a funny problem with Prefect. Seems like running the script tries to initialize the server, I got an exception whose stacktrace is really interesting.
File "/Users/edmondop/Library/Caches/pypoetry/virtualenvs/prefect-cert-vZ3jWajt-py3.10/lib/python3.10/site-packages/prefect/server/api/", line 481, in lifespan
    await run_migrations()
  File "/Users/edmondop/Library/Caches/pypoetry/virtualenvs/prefect-cert-vZ3jWajt-py3.10/lib/python3.10/site-packages/prefect/server/api/", line 404, in run_migrations
    await db.create_db()
the exception at the end is the following
Traceback (most recent call last):
  File "/Users/edmondop/Library/Caches/pypoetry/virtualenvs/prefect-cert-vZ3jWajt-py3.10/lib/python3.10/site-packages/starlette/", line 702, in __getattr__
    return self._state[key]
KeyError: 'services'
and this is the output of the
prefect version
❯ prefect version
Version:             2.10.9
API version:         0.8.4
Python version:      3.10.0
Git commit:          1655c1fa
Built:               Thu, May 11, 2023 2:29 PM
OS/Arch:             darwin/arm64
Profile:             default
Server type:         <client error>

Jeff Hale

05/16/2023, 12:38 AM
Afk atm, but looks like it might be related to an open issue with arm chips. Fix there was to delete the sqlite db in ~/.prefect folder. I would give that a shot.

Edmondo Porcu

05/16/2023, 1:49 PM
didn’t work. No love for ARM users, nevermind, I can work with GitPod
🤔 1