-
Notifications
You must be signed in to change notification settings - Fork 40
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: type object argument after * must be an iterable, not float #26
Comments
Could you use a later python version? 3.7 will be deprecated in only a few months.
|
Big thanks belugame! |
Thanks for reporting! This should definitely still be working in Python 3.7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tested the code in Python3.7:
And I got:
TypeError Traceback (most recent call last)
/var/folders/5z/nfxgl_ps6qlf5tvrct964q980000gn/T/ipykernel_77052/2760101674.py in
6 timestamp = time.mktime(datetime.datetime(2007, 1, 1).timetuple())
7
----> 8 data = Fetcher("AAPL", timestamp)
9 print(data.get_historical())
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yahoo_historical/fetch.py in init(self, ticker, start, end, interval)
20 self.ticker = ticker.upper()
21 self.interval = interval
---> 22 self.start = int(cal.timegm(dt.datetime(*start).timetuple()))
23
24 if end is not None:
TypeError: type object argument after * must be an iterable, not float
The text was updated successfully, but these errors were encountered: