Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8382545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:57:08+00:00 2026-06-09T16:57:08+00:00

I have a very small, simple sqlite database, and several python scripts to access

  • 0

I have a very small, simple sqlite database, and several python scripts to access the database. I want to run these scripts using Heroku, but it seems that Heroku doesn’t support sqlite3.

I have tried adding the line

sqlite3==3.0

to my requirements.txt file before running

pip install -r requirements.txt

but it says it can’t find sqlite3.

What is the easiest, most lightweight way to be able to query my sqlite database on Heroku?

  1. Do I need to convert the sqlite database? If so, how do I do that?
  2. If I’m not allowed to import sqlite in python on Heroku, what is the alternative package I need to use and how do I change my python code which calls execute statements like

    SELECT * FROM table

I find that the Heroku documentation assumes that the user has a bit more expertise. Also, it seems from other stackoverflow, blog posts that folks where somehow able to use sqlite3 with Ruby.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:57:09+00:00Added an answer on June 9, 2026 at 4:57 pm

    The external modulename would be pysqlite.

    However, Heroku runs Python 2.7 and if import sqlite3 is not supported, Heroku will not have the pre-requisite sqlite C libraries installed. I thus suspect that loading the pysqlite module will not work either.

    Note that there is really no point in using sqlite on the Heroku platform, as the filesystem is ephemeral; every time your app starts you have a clean slate and any writes performed by your app disappear once done. Since sqlite can only write to the local filesystem, this means the database will be gone the next time you start your app. See Using Sqlite3 on Heroku Cedar stack.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have vales with very small difference like... 0.000001. I want to visualize them
I have a small very simple function. $('#desk, #chair, #seat, #tablet').hover( function(){ $(this).find('.hoverBlack').stop().animate({bottom:'0', opacity:'1'},{queue:false,duration:200})
I have a VS 2008 C++ project, with one very small and simple code
I have a feeling I'm missing one small thing. I have very simple page,
i have a very small utilty app written in c# that works fine on
I have a very small form where a user can enter their zip code
I have a very small office environment, and my team sends created pdfs to
I have a very small program: public static void main(String[] args) { Queue<String> queue
I have to multiply a very small sized matrix ( size - 10x10 )
I have a requirement to change a very small part of the WPF ComboBox's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.