yahoofinancials
yahoofinancials copied to clipboard
TypeError: __init__() got an unexpected keyword argument 'concurrent'
When running from Jupyter notebook this fails. but code works from python script in the same customer kernel:
from yahoofinancials import YahooFinancials tickers = ['AAPL', 'GOOG', 'C'] yahoo_financials = YahooFinancials(tickers, concurrent=True, max_workers=8, country="US") balance_sheet_data_qt = yahoo_financials.get_financial_stmts('quarterly', 'balance') print(balance_sheet_data_qt)
generates error: TypeError: init() got an unexpected keyword argument 'concurrent'
IF I do a git clone from your repo and cd into that yahoofinancials folder and only in that folder (where I ran the python setup.py install): the above code in Jupyter works!
@zmadscientist Thank you for reporting this issue! I'll look into this after work.
EDIT: Could you also include which versions of python and YahooFinancials you are encountering this issue with?