django can't find new sqlite version? (SQLite 3.8.3 or later is required (found 3.7.17))

April 15, 2019 14.4k views
CentOS Python Django

I’ve cloned a django project to a Centos 7 vps and I’m trying to run it now, but I get this error when trying to migrate:

$ python manage.py migrate
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).

When I checked the version for sqlite, it was 3.7.17, so I downloaded the newest version from sqlite website and replaced it with the old one, and now when I version it, it gives:

$ sqlite3 --version
3.27.2 2019-02-25 16:06:06 bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0f6d7

Still when I try to migrate the project, I get the exact same message as before which means the newer version is not found. I’m new to linux and would appreciate any help.

2 Answers

I had the same issue but didnt want to deviate from installing standard packages so I downgraded the Django version to 2.1

pip3 install –upgrade Django==2.1

…which seems to have worked.

Greetings!

I’m not that much of an expert on using sqlite in Python, but I at least have an idea. Try adding this at the top of manage.py:

import sqlite3

If that still doesn’t have the latest version, the application you’re running may be built for a newer version of Python.

Jarland

  • Hi and thanks for the help. Unfortunately though it didn’t help and the same issue kept rising.

    Quick newbie question, could I be able to go around this problem by switching to Postgres?

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!