Closed
Description
When I run example/finance.py from current master I see the below error.
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/finance.py:485: MatplotlibDeprecationWarning: This function has been deprecated in 1.4 in favor of `quotes_historical_yahoo_ochl`, which maintains the original argument order, or `quotes_historical_yahoo_ohlc`, which uses the open-high-low-close order. This function will be removed in 1.5
mplDeprecation)
Traceback (most recent call last):
File "examples/finance.py", line 38, in <module>
goog = getQuotes('GOOG', startDate, endDate)
File "examples/finance.py", line 22, in getQuotes
quotes = fin.quotes_historical_yahoo(symbol, start, end)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/finance.py", line 489, in quotes_historical_yahoo
ochl=True)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/finance.py", line 621, in _quotes_historical_yahoo
fh = fetch_historical_yahoo(ticker, date1, date2, cachename)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/finance.py", line 431, in fetch_historical_yahoo
with contextlib.closing(urlopen(url)) as urlfh:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
Here is pd.show_versions()
output
In [2]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: 9f439f0e53409fd48e5486a3acf84b844f200270
python: 2.7.9.final.0
python-bits: 64
OS: Darwin
OS-release: 14.0.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.15.2-118-g6ba5846
nose: 1.3.4
Cython: 0.21.2
numpy: 1.9.1
scipy: 0.14.1
statsmodels: 0.6.1
IPython: 2.3.1
sphinx: 1.2.3
patsy: None
dateutil: 2.4.0
pytz: 2014.10
bottleneck: 0.8.0
tables: None
numexpr: 2.4
matplotlib: 1.4.2
openpyxl: None
xlrd: 0.9.3
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
rpy2: 2.4.2
sqlalchemy: 0.9.8
pymysql: None
psycopg2: None
Updating the stock symbol GOOG to GOOGL fixes this apparently.
Metadata
Metadata
Assignees
Labels
No labels