ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
13.24k stars 2.34k forks source link

PYTHON DATA DOWNLOAD ERROR #1697

Closed federico999999 closed 1 year ago

federico999999 commented 1 year ago

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 version

last

Python version

No response

Operating system

MAC

janfrederik commented 1 year ago

This is a duplicate of #1694