I just installed a clean prefect 2.8.2 installation on an EC2 machine with a separate venv, but when I try to launch prefect scripts I get the following error :
RuntimeError: Prefect requires sqlite >= 3.24.0 but we found version 3.7.17
Is this something on my end?
02/22/2023, 12:47 AM
Hi Hamza! This usually happens if you run Amazon Linux on your EC2 instance, because it comes with a very old version of SQLite installed.
The easiest way to overcome the issue is to use Anaconda. I wrote a post on how to do it here: https://discourse.prefect.io/t/how-to-run-prefect-2-on-centos-7-or-rhel-7/1507
The post is about CentOS, but Amazon Linux is based on CentOS, so the instructions should work.
Alternatively, if you don't need to run Amazon Linux, you could use one of the other distros EC2 supports. Ubuntu 22.04 LTS would be a good choice.
02/22/2023, 1:37 AM
Or use Postgres as a backing database or use Prefect Cloud :)
02/22/2023, 9:16 AM
Thank you for your answer, I figured it would be an aws EC2 problem with the distro.
I already have prefect cloud entreprise, but I'm trying to onboard new teams on Prefect and I need them to be able to test it out on an isolated environment before accessing the production stack.