Pandas-datareader: fred.py - cannot import name is_list_like: ImportError

Created on 1 Jun 2018  路  2Comments  路  Source: pydata/pandas-datareader

While using zappa-deploy to AWS lambda, got this error message.

cannot import name is_list_like: ImportError
Traceback (most recent call last):
File "/var/task/handler.py", line 509, in lambda_handler
return LambdaHandler.lambda_handler(event, context)
File "/var/task/handler.py", line 237, in lambda_handler
handler = cls()
File "/var/task/handler.py", line 129, in __init__
self.app_module = importlib.import_module(self.settings.APP_MODULE)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/var/task/portfolio_game.py", line 10, in
from pandas_datareader import data
File "c:\users\user\appdata\local\temp\pip-build-ovycb5\pandas-datareader\pandas_datareader__init__.py", line 2, in
File "c:\users\user\appdata\local\temp\pip-build-ovycb5\pandas-datareader\pandas_datareader\data.py", line 14, in
File "c:\users\user\appdata\local\temp\pip-build-ovycb5\pandas-datareader\pandas_datareader\fred.py", line 1, in
ImportError: cannot import name is_list_like

Workaround - remove fred.py altogether, and comment out
_init_,py - from .data import(..., get_data_fred ...)
data.py - from pandas_datareader.fred import FredReader, def get_data_fred(args, *kwargs), elif data_source == "fred"

Most helpful comment

Please make a release with the fix.

All 2 comments

This has been repaired in #520. It's best to download the development version (the current master of this repo) to avoid this problem. The repair will be integrated into the next release (0.7.0 #495) as well

Please make a release with the fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paintdog picture paintdog  路  7Comments

Chandrak1907 picture Chandrak1907  路  4Comments

vnmabus picture vnmabus  路  8Comments

walsha2 picture walsha2  路  5Comments

PLAYER69 picture PLAYER69  路  7Comments