I have a funny problem with Prefect. Seems like ru...
# ppcc-may-16-2023
e
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.
Copy code
File "/Users/edmondop/Library/Caches/pypoetry/virtualenvs/prefect-cert-vZ3jWajt-py3.10/lib/python3.10/site-packages/prefect/server/api/server.py", 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/server.py", line 404, in run_migrations
    await db.create_db()
the exception at the end is the following
Copy code
Traceback (most recent call last):
  File "/Users/edmondop/Library/Caches/pypoetry/virtualenvs/prefect-cert-vZ3jWajt-py3.10/lib/python3.10/site-packages/starlette/datastructures.py", line 702, in __getattr__
    return self._state[key]
KeyError: 'services'
and this is the output of the
prefect version
command
Copy code
❯ 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>
j
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.
e
didn’t work. No love for ARM users, nevermind, I can work with GitPod
🤔 1