SQLite 3.8.3 or later is required (found 3.7.17).

7,096 views
Skip to first unread message

anchal agarwal

unread,
Jul 19, 2019, 8:37:06 AM7/19/19
to django...@googlegroups.com
Hello Django users,
i am trying to deploy my django on AWS 
Everything was going right but when i run python manage.py migrate , it's giving me this error
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).
how can i resolve this?
Please help me 

Desh Deepak

unread,
Jul 19, 2019, 9:36:19 AM7/19/19
to django...@googlegroups.com
Hi, show me your database connection, also tell me python and Django version.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMT%3DisVCsYAju5agUWxPrpjZ5a-NGc1X0A7U34c4QthnAM0jKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

anchal agarwal

unread,
Jul 19, 2019, 3:00:50 PM7/19/19
to django...@googlegroups.com
I used default sqlite as my Database
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
My python version is python3 and Django version is 2.1.5

anchal agarwal

unread,
Jul 19, 2019, 3:14:15 PM7/19/19
to django...@googlegroups.com
This is my whole Traceback
Traceback (most recent call last):
  File "manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute
    django.setup()
  File "/usr/local/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.7/site-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.7/site-packages/django/apps/config.py", line 211, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/ec2-user/wavybeatz/music/models.py", line 4, in <module>
    class Album(models.Model):
  File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 117, in __new__
    new_class.add_to_class('_meta', Options(meta, app_label))
  File "/usr/local/lib/python3.7/site-packages/django/db/models/base.py", line 321, in add_to_class
    value.contribute_to_class(cls, name)
  File "/usr/local/lib/python3.7/site-packages/django/db/models/options.py", line 204, in contribute_to_class
    self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
  File "/usr/local/lib/python3.7/site-packages/django/db/__init__.py", line 28, in __getattr__
    return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 201, in __getitem__
    backend = load_backend(db['ENGINE'])
  File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 110, in load_backend
    return import_module('%s.base' % backend_name)
  File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 66, in <module>
    check_sqlite_version()
  File "/usr/local/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 63, in check_sqlite_version
    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).

Jani Tiainen

unread,
Jul 19, 2019, 3:22:20 PM7/19/19
to django...@googlegroups.com
Hi.

Error is simple. Python is using too old version of sqlite. There are few options to fix that depending what os your system runs on.

Though sqlite is not very suitable for production so you may want to use something better like Postgres.


Tal

unread,
Jul 19, 2019, 4:08:50 PM7/19/19
to Django users
This is a known problem - at least on CentOS 7. Not sure what OS you're running on AWS - I don't have much experience with AWS. I literally just ran into this on my CentOS 7. I posted a fix for CentOS 7. Maybe it'll help you.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

Tal

unread,
Jul 19, 2019, 4:15:30 PM7/19/19
to Django users
Or, if you prefer, use a slightly older version of Django that doesn't require an sqlite library that's newer than your OS has.

Either that, or if you plan on using a database other than sqlite in production, once you modify your settings.py's DATABASES variable to use something other than sqlite, you won't have this problem anymore.

Joe Reitman

unread,
Jul 20, 2019, 8:51:38 AM7/20/19
to Django users
I had the same problem. To fix it I used Python 3.6 and Django 2.1. 

Desh Deepak

unread,
Jul 20, 2019, 9:02:21 AM7/20/19
to django...@googlegroups.com
Sorry for the late reply, 

You can try these commands on your terminal:-

pip uninstall Django

Then

pip install Django 2.0

and try to run the server again.....


Thanks and regards:-
 Desh Deepak

On Fri, 19 Jul 2019, 18:06 anchal agarwal, <agarwal...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

amul justin

unread,
Nov 5, 2019, 8:02:31 AM11/5/19
to Django users
Tq so much bro can u send u r contact number pls im from tamilnadu


On Saturday, July 20, 2019 at 6:32:21 PM UTC+5:30, Desh Deepak wrote:
Sorry for the late reply, 

You can try these commands on your terminal:-

pip uninstall Django

Then

pip install Django 2.0

and try to run the server again.....


Thanks and regards:-
 Desh Deepak

On Fri, 19 Jul 2019, 18:06 anchal agarwal, <agarwal...@gmail.com> wrote:
Hello Django users,
i am trying to deploy my django on AWS 
Everything was going right but when i run python manage.py migrate , it's giving me this error
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).
how can i resolve this?
Please help me 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages