Skip to content

Error Running App containing pandas_datareader #224

@ronaldoussoren

Description

@ronaldoussoren

Original report by ThatBlokeDave (Bitbucket: ThatBlokeDave, ).


I get an error when it tries to import Pandas Error. I narrowed it down to my imports of either

#!python

import pandas_datareader as pd_dr
import pandas_datareader.data as web

When running the app I can see the following error in the terminal.

#!bash

/data-downloader.app/Contents/Resources/__boot__.py", line 107, in _run
    exec(compile(source, script, 'exec'), globals(), globals())
  File "/Users/dave/Google Drive/Development/Python/Python3/data-downloader/data-downloader.py", line 16, in <module>
    import pandas_datareader as pd_dr
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas_datareader/__init__.py", line 3, in <module>
    from .data import (get_components_yahoo, get_data_famafrench, get_data_google, get_data_yahoo, get_data_enigma,  # noqa
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas_datareader/data.py", line 7, in <module>
    from pandas_datareader.google.daily import GoogleDailyReader
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas_datareader/google/daily.py", line 1, in <module>
    from pandas_datareader.base import _DailyBaseReader
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas_datareader/base.py", line 13, in <module>
    from pandas_datareader._utils import (RemoteDataError, SymbolWarning,
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas_datareader/_utils.py", line 5, in <module>
    from pandas.core.common import PandasError
ImportError: cannot import name 'PandasError'
2017-05-08 14:03:35.034 data-downloader[21603:11584460] data-downloader Error

Do I need to include something additional in the py2app or py2applet options? I saw there are some options that deal specifically deal with Matplotlib but didn't notice anything panda's related.

I am running the following packages.

py2app (0.13)
pandas (0.20.1)
pandas-datareader (0.3.0.post0)

Any pointers would be great. Apologies in advance if I have missed something obvious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions