I have been using zipline in local development since March this year. I can load my custom data bundle till early June fine.
After I came back from a long trip, I found out the unit test failed with following error:
Traceback (most recent call last):
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/Users/mintu/PycharmProjects/myZipline/myzipline/tests/testZigzagTrend_2014.py", line 138, in test_zigzag_trends_2014
bundle="ETF")
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/site-packages/zipline/utils/run_algo.py", line 430, in run_algorithm
blotter=blotter,
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/site-packages/zipline/utils/run_algo.py", line 159, in _run
trading_days=trading_calendar.schedule[start:end].index,
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/site-packages/zipline/finance/trading.py", line 103, in __init__
self.bm_symbol,
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/site-packages/zipline/data/loader.py", line 149, in load_market_data
environ,
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/site-packages/zipline/data/loader.py", line 216, in ensure_benchmark_data
data = get_benchmark_returns(symbol)
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/site-packages/zipline/data/benchmarks.py", line 35, in get_benchmark_returns
data = r.json()
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/mintu/anaconda3/envs/q/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
after some debug, seems like the error come from loading 5 years ago data
start = pd.Timestamp(datetime(2014, 6, 9, tzinfo=pytz.UTC))
end = pd.Timestamp(datetime(2014, 6, 10, tzinfo=pytz.UTC))
Any suggestions?
Thanks in advance