Pandas-datareader: Import error when using Pandas 0.20.1

Created on 5 May 2017  路  3Comments  路  Source: pydata/pandas-datareader

There is an ImportError: cannot import name 'PandasError' when you use pandas version 0.20.1.

This is occurring on line 5 in _utils.py from pandas.core.common import PandasError

If there is anything I can do to help or fix it myself I'd love to!

Works with pandas 0.19.2 but not with pandas 0.20.1

bug

Most helpful comment

Thanks. I came into a similar problem this morning and #304 solved this perfectly after I downloaded the latest github version 0.3.1.

In case any newcomer like me with the same problem I post my error codes here

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/anaconda/lib/python2.7/site-packages/pandas_datareader/data.py", line 7, in <module> from pandas_datareader.google.daily import GoogleDailyReader File "/anaconda/lib/python2.7/site-packages/pandas_datareader/google/daily.py", line 1, in <module> from pandas_datareader.base import _DailyBaseReader File "/anaconda/lib/python2.7/site-packages/pandas_datareader/base.py", line 11, in <module> from pandas.core.common import PandasError, is_number ImportError: cannot import name PandasError

I downloaded the latest version with this code in terminal
pip install git+https://github.com/pydata/pandas-datareader.git

Thanks for the post again.

All 3 comments

this is already fixed by #304

Thanks. I came into a similar problem this morning and #304 solved this perfectly after I downloaded the latest github version 0.3.1.

In case any newcomer like me with the same problem I post my error codes here

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/anaconda/lib/python2.7/site-packages/pandas_datareader/data.py", line 7, in <module> from pandas_datareader.google.daily import GoogleDailyReader File "/anaconda/lib/python2.7/site-packages/pandas_datareader/google/daily.py", line 1, in <module> from pandas_datareader.base import _DailyBaseReader File "/anaconda/lib/python2.7/site-packages/pandas_datareader/base.py", line 11, in <module> from pandas.core.common import PandasError, is_number ImportError: cannot import name PandasError

I downloaded the latest version with this code in terminal
pip install git+https://github.com/pydata/pandas-datareader.git

Thanks for the post again.

Yea kinda strange, but the workaround using the latest source code from git fixed my import problem. I think they need to update the pip package...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vnmabus picture vnmabus  路  8Comments

nashtgc picture nashtgc  路  7Comments

allenwu25 picture allenwu25  路  9Comments

tr4cefl0w picture tr4cefl0w  路  3Comments

paintdog picture paintdog  路  7Comments