Hi,
I am a student and am new in using python...
I use jupiter lab to do my analysis and when I try to download files directly from Yahoo Finance, python gives me the following error:
1 Failed download:
['AAPL']: OperationalError('unable to open database file')
how can I solve it?
I thank you in advance
Simple code that reproduces your problem
import yfinance as yf
ticker = 'AAPL'
interval = '1d'
data = yf.download(ticker, period="1y", interval=interval)
data
Debug log
[*****100%%**] 1 of 1 completed
1 Failed download:
['AAPL']: OperationalError('unable to open database file')
Describe bug
Hi, I am a student and am new in using python... I use jupiter lab to do my analysis and when I try to download files directly from Yahoo Finance, python gives me the following error: 1 Failed download: ['AAPL']: OperationalError('unable to open database file')
how can I solve it? I thank you in advance
Simple code that reproduces your problem
import yfinance as yf
ticker = 'AAPL'
interval = '1d'
data = yf.download(ticker, period="1y", interval=interval)
data
Debug log
[*****100%%**] 1 of 1 completed
1 Failed download: ['AAPL']: OperationalError('unable to open database file')
Bad data proof
No response
yfinance
versionlast
Python version
No response
Operating system
MAC