FS#49877 - [python-pandas-datareader] exception when importing "data" submodule

Attached to Project: Community Packages
Opened by Ian Liu (ianliu) - Tuesday, 28 June 2016, 19:51 GMT
Last edited by Andrzej Giniewicz (Giniu) - Saturday, 30 July 2016, 14:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Andrzej Giniewicz (Giniu)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Trying to import the pandas_datareader module gives exception


Additional info:
* package version(s):

$ pacman -Ss python-pandas
community/python-pandas 0.18.1-1 [installed]
Cross-section and time series data analysis toolkit
community/python-pandas-datareader 0.2.1-1 [installed]
Data readers extracted from the pandas codebase

Steps to reproduce:

Execute the following python script:

from pandas_datareader import data

To get:

---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-75f869254055> in <module>()
----> 1 from pandas_datareader import data

/usr/lib/python3.5/site-packages/pandas_datareader/data.py in <module>()
5 import warnings
6
----> 7 from pandas_datareader.google.daily import GoogleDailyReader
8 from pandas_datareader.google.quotes import _get_data as get_quote_google
9

/usr/lib/python3.5/site-packages/pandas_datareader/google/daily.py in <module>()
----> 1 from pandas_datareader.base import _DailyBaseReader
2
3
4 class GoogleDailyReader(_DailyBaseReader):
5

/usr/lib/python3.5/site-packages/pandas_datareader/base.py in <module>()
5
6 import requests
----> 7 from requests_file import FileAdapter
8
9 from pandas import to_datetime

ImportError: No module named 'requests_file'
This task depends upon

Closed by  Andrzej Giniewicz (Giniu)
Saturday, 30 July 2016, 14:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 0.2.1-2.
Comment by Doug Newgard (Scimmia) - Wednesday, 29 June 2016, 01:38 GMT Comment by Ian Liu (ianliu) - Wednesday, 29 June 2016, 11:48 GMT
Doug, yes, installing that package fixes it.
Comment by Andrzej Giniewicz (Giniu) - Thursday, 30 June 2016, 15:27 GMT
Thanks for letting me know. I will move python-request-file to community later today as a dependency then.

Loading...