votes up 2

SQLite 3.9.0 or later is required (found %s).

Package:
django
github stars 59414
Exception Class:
ImproperlyConfigured

Raise code

""" provided function to the data.
    """
    return type('ListAggregate', (list,), {'finalize': function, 'step': list.append})


def check_sqlite_version():
    if Database.sqlite_version_info < (3, 9, 0):
        raise ImproperlyConfigured(
            'SQLite 3.9.0 or later is required (found %s).' % Database.sqlite_version
        )


check_sqlite_version()

Database.register_converter("bool", b'1'.__eq__)
Database
😲 Agile task management is now easier than calling a taxi. #Tracklify
🙏 Scream for help to Ukraine
Today, 14th August 2022, Russia continues bombing and firing Ukraine. Don't trust Russia, they are bombing us and brazenly lying in same time they are not doing this 😠, civilians and children are dying too! We are screaming and asking exactly you to help us, we want to survive, our families, children, older ones.
Please spread the information, and ask your governemnt to stop Russia by any means. We promise to work extrahard after survival to make the world safer place for all.

Ways to fix

votes up 1 votes down

First of all, check which version of SQLite Python is using:

$ python
Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.31.1'

# Or alternative way (USED by Django itself to drop exception):
>>> from sqlite3 import dbapi2 as Database
>>> Database.sqlite_version_info
(3, 31, 1)
>>>

Since SQLite version is compiled into Python itself, we recommend just to install fresh version of Python and also using pipenv.

Jun 22, 2021 ivan answer
ivan 110

Add a possible fix

Please authorize to post fix