Opened 6 years ago

Last modified 5 years ago

#30329 closed Bug

Make error message clearer when installed SQLite version is too old. — at Version 1

Reported by: Alasdair Nicol Owned by:
Component: Error reporting Version: 2.2
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Alasdair Nicol)

When an older version of sqlite is installed, the final line of the traceback is unrelated.

    raise LookupError(message)
LookupError: No installed app with label 'admin'.

If you look further up the traceback, you can see what the problem is, but this can be tricky for newer users.

    raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).

I think that if we made the error message clearer it would be helpful for new users. Perhaps we could do this by checking the sqlite version in a system check, or maybe there's a better approach.

Related Stack Overflow question: https://stackoverflow.com/questions/55512244/no-installed-app-with-label-admin-in-empty-django-2-2-project/

Change History (1)

comment:1 by Alasdair Nicol, 6 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top