Opened 6 years ago

Closed 6 years ago

#30522 closed Bug (invalid)

How to use Custom install Sqlite3 in Django.

Reported by: Ananthraj Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords: sqlite
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have installed "Python 3.6.2" and " Django 2.2.1", when I tried to do "python manage.py runserver" and I received error like below:

django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.6.20).

So I have custom installed "SQLite3 3.28.0" then set ENVs for LD_LIBRARY_PATH and LD_RUN_PATH to use the latest SQLite3. In Shell and Python IDLE or normal SQL script, am able to access "3.28.0" versions Sqlite. But when running manage.py, am getting the error below:

conn = Database.connect(conn_params)

django.db.utils.NotSupportedError: URIs not supported

Please try once the steps I have followed and then to consider to keep or closing the ticket by referencing "28376"

  1. Custom install SQLite3
  2. Set env for PATH , LD_LIBRARY_PATH and LD_RUN_PATH
  3. Try accessing sqlite3 in Python scripts to check the versions.

If you are able to connect, kindly share the steps to overcome the issue from our side.

Change History (1)

comment:1 by Mariusz Felisiak, 6 years ago

Keywords: sqlite added
Resolution: invalid
Status: newclosed
Summary: How to use Custom install Sqlite3 in DjangoHow to use Custom install Sqlite3 in Django.
Type: UncategorizedBug
Version: 2.2master

Thanks for the report, but I agree that it is probably some issue with your custom SQLite installation. Closing per TicketClosingReasons/UseSupportChannels.

Refs #28376.

Note: See TracTickets for help on using tickets.
Back to Top