Pandas-datareader: pandas_datareader import error from docker build

Created on 19 May 2018  路  6Comments  路  Source: pydata/pandas-datareader

Traceback (most recent call last):
File "app.py", line 4, in
import some_custom_app as custom
File "/app/some_custom_app.py", line 11, in
from pandas_datareader import data as web
File "/usr/local/lib/python3.6/site-packages/pandas_datareader/__init__.py", line 2, in
from .data import (DataReader, Options, get_components_yahoo,
File "/usr/local/lib/python3.6/site-packages/pandas_datareader/data.py", line 14, in
from pandas_datareader.fred import FredReader
File "/usr/local/lib/python3.6/site-packages/pandas_datareader/fred.py", line 1, in
from pandas.core.common import is_list_like
ImportError: cannot import name 'is_list_like'

Most helpful comment

This was repaired in #520 and will be implemented in the 0.7.0 release. For now, I would recommend downloading the dev repo from here.

All 6 comments

This was repaired in #520 and will be implemented in the 0.7.0 release. For now, I would recommend downloading the dev repo from here.

In case anyone else has this problem I just had to change my requirements file.

From:

pandas_datareader

To:

-e git+https://github.com/pydata/pandas-datareader.git@master#egg=MyProject

Thanks addisonlynch

It's fixed in latest version, use following command to get latest:

pip install git+https://github.com/pydata/pandas-datareader.git

here is an url with more instructions:
https://pandas-datareader.readthedocs.io/en/latest/#install-latest-development-version

Thanks @vlad-bezden it solves my problem

@vlad-bezden This command installs the 0.6.0+32.gf371300 version. How can I install the 0.7 version?

pip install git+https://github.com/pydata/pandas-datareader.git

That is the latest. 0.7 is not released - it is 0.6+32 new commits.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amoriello picture amoriello  路  5Comments

wavesailor picture wavesailor  路  5Comments

walsha2 picture walsha2  路  5Comments

kumaranu7 picture kumaranu7  路  7Comments

Chandrak1907 picture Chandrak1907  路  4Comments