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

fred.py - cannot import name is_list_like: ImportError #534

Closed
mindtd opened this issue May 31, 2018 · 2 comments
Closed

fred.py - cannot import name is_list_like: ImportError #534

mindtd opened this issue May 31, 2018 · 2 comments

Comments

@mindtd
Copy link

mindtd commented May 31, 2018

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"

@addisonlynch
Copy link
Contributor

addisonlynch commented May 31, 2018

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

@yurivict
Copy link

Please make a release with the fix.

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

3 participants