-
Notifications
You must be signed in to change notification settings - Fork 683
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
Fail to download data from yahoo on 01/13/2023 #958
Comments
Assume you installed pandas-datareader using this command Faced the same issue today, but based on this commit, overwrote these 3 files: folder =
Working as expected, waiting for Issue #952 merge to main branch and a release soon. |
It works now. Thanks! |
@devmsft-github how did you overwrite the 3 files? |
|
The new files are broken again with yahoo finance df = web.DataReader("SPY", data_source='yahoo', start='2023-01-01', end='2023-01-13', session = sesh) Error msg Traceback (most recent call last): File "C:\Users\peter\AppData\Local\Temp/ipykernel_27516/630144412.py", line 1, in File "C:\Users\peter\anaconda3\lib\site-packages\pandas\util_decorators.py", line 207, in wrapper File "C:\Users\peter\anaconda3\lib\site-packages\pandas_datareader\data.py", line 370, in DataReader File "C:\Users\peter\anaconda3\lib\site-packages\pandas_datareader\base.py", line 253, in read File "C:\Users\peter\anaconda3\lib\site-packages\pandas_datareader\yahoo\daily.py", line 227, in _read_one_data File "C:\Users\peter\anaconda3\lib\site-packages\pandas_datareader\yahoo\daily.py", line 81, in decrypt_cryptojs_aes File "C:\Users\peter\anaconda3\lib\site-packages\Crypto\Util\Padding.py", line 92, in unpad ValueError: Padding is incorrect. Thanks! |
This time went the route of
then
This works with raphi6's pandas-datareader fixes I suggested above, so all you need is |
This still not working !!! |
No update on this issue? Is pandas-datareader abandoned? |
What is not working? |
Hey there,
You can check the comment on the official Hope it helps, it worked for me. |
Hello,
Data download fails from yahoo finance. The error msg is
df = web.DataReader("SPY", data_source='yahoo', start='2020-01-01', end='2020-03-03', session = sesh)
Traceback (most recent call last):
File "C:\Users\peter\AppData\Local\Temp/ipykernel_25324/3322276019.py", line 1, in
df = web.DataReader("SPY", data_source='yahoo', start='2020-01-01', end='2020-03-03', session = sesh)
File "C:\Users\peter\anaconda3\lib\site-packages\pandas\util_decorators.py", line 207, in wrapper
return func(*args, **kwargs)
File "C:\Users\peter\anaconda3\lib\site-packages\pandas_datareader\data.py", line 370, in DataReader
return YahooDailyReader(
File "C:\Users\peter\anaconda3\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:\Users\peter\anaconda3\lib\site-packages\pandas_datareader\yahoo\daily.py", line 231, in _read_one_data
data = new_j['HistoricalPriceStore']
UnboundLocalError: local variable 'new_j' referenced before assignment
It was good yesterday, 01/12/2023. Thanks!
The text was updated successfully, but these errors were encountered: