SQLite Driver not Installed

I am writing an automation with a python code to fetch latest price of tickers (obtained from Postgres) from Yahoo Finance. But to test, I ran the below sample code:

import yfinance as yf
ticker = yf.Ticker("AAPL")
current_price = ticker.info['regularMarketPrice']
return {"symbol": "AAPL", "price": current_price}

Issue: When running it I get the below error. Same code if I run it in Python IDE like Pycharm, I do not get the error. Please note I am not using any SQL database too for my project. This looks internal to Yahoo Finance library.
{"data":null,"error":"ImproperlyConfigured: SQLite driver not installed! (line 7)"}

Could you help me how this can be resolved?

Hi @vjpaij,

This is a bug that we've unfortunately run into with a couple of python libraries. We're tracking this in our backlog, so I'll reach out here when I get an update internally

It's possible that maybe an older version of the library will be more compatible in the meantime

Hey @vjpaij - I realize that it's been a while, but this should be working now! We made some changes to the base image in version 3.351.0 that explicitly add the libsqlite3-0 package. let us know if you run into any additional issues or have questions. :+1: