Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: __init__() got an unexpected keyword argument 'concurrent' #155

Open
zmadscientist opened this issue Aug 10, 2023 · 1 comment

Comments

@zmadscientist
Copy link

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!

@JECSand
Copy link
Owner

JECSand commented Aug 10, 2023

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants