You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Python 3.13.1, running python backtest_strategies.py
Enter a stock ticker: TSLA
Enter number of years: 10
Traceback (most recent call last):
File "c:\python3\code\public_domain\github\Finance\portfolio_strategies\backtest_strategies.py", line 86, in <module>
main()
~~~~^^
File "c:\python3\code\public_domain\github\Finance\portfolio_strategies\backtest_strategies.py", line 77, in main
df = get_stock_data(stock, start, end)
File "c:\python3\code\public_domain\github\Finance\portfolio_strategies\backtest_strategies.py", line 12, in get_stock_data
return pdr.get_data_yahoo(stock, start, end)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "c:\programs\Python313\Lib\site-packages\pandas_datareader\data.py", line 80, in get_data_yahoo
return YahooDailyReader(*args, **kwargs).read()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "c:\programs\Python313\Lib\site-packages\pandas_datareader\base.py", line 253, in read
df = self._read_one_data(self.url, params=self._get_params(self.symbols))
File "c:\programs\Python313\Lib\site-packages\pandas_datareader\yahoo\daily.py", line 152, in _read_one_data
j = json.loads(re.search(ptrn, resp.text, re.DOTALL).group(1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
The text was updated successfully, but these errors were encountered:
Using Python 3.13.1, running
python backtest_strategies.py
The text was updated successfully, but these errors were encountered: