
Traceback (most recent call last):


 "D:\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen

chunked=chunked)


 "D:\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 357, in _make_request

conn.request(method, url, **httplib_request_kw)


 "D:\Anaconda3\lib\http\client.py", line 1239, in request

self._send_request(method, url, body, headers, encode_chunked)


 "D:\Anaconda3\lib\http\client.py", line 1285, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)


 "D:\Anaconda3\lib\http\client.py", line 1234, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)


 "D:\Anaconda3\lib\http\client.py", line 1026, in _send_output

self.send(msg)


 "D:\Anaconda3\lib\http\client.py", line 964, in send

self.connect()


 "D:\Anaconda3\lib\site-packages\urllib3\connection.py", line 166, in connect

conn = self._new_conn()


 "D:\Anaconda3\lib\site-packages\urllib3\connection.py", line 150, in _new_conn

self, "Failed to establish a new connection: %s" % e)

urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x0000027CBE176208>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝，无法连接。

Traceback (most recent call last):


 "/usr/local/bin/zipline", line 11, in <module>

load_entry_point('zipline==1.1.1', 'console_scripts', 'zipline')()


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__

return self.main(*args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main

rv = self.invoke(ctx)


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke

return callback(*args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/zipline/__main__.py", line 97, in _

return f(*args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 17, in new_func

return f(get_current_context(), *args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/zipline/__main__.py", line 240, in run

environ=os.environ,


 "/usr/local/lib/python2.7/dist-packages/zipline/utils/run_algo.py", line 179, in _run

overwrite_sim_params=False,


 "/usr/local/lib/python2.7/dist-packages/zipline/algorithm.py", line 709, in run

for perf in self.get_generator():


 "/usr/local/lib/python2.7/dist-packages/zipline/gens/tradesimulation.py", line 230, in transform

handle_benchmark(normalize_date(dt))


 "/usr/local/lib/python2.7/dist-packages/zipline/gens/tradesimulation.py", line 190, in handle_benchmark

benchmark_source.get_value(date)


 "/usr/local/lib/python2.7/dist-packages/zipline/sources/benchmark_source.py", line 75, in get_value

return self._precalculated_series.loc[dt]


 "/usr/local/lib/python2.7/dist-packages/pandas/core/indexing.py", line 1296, in __getitem__

return self._getitem_axis(key, axis=0)


 "/usr/local/lib/python2.7/dist-packages/pandas/core/indexing.py", line 1466, in _getitem_axis

self._has_valid_type(key, axis)


 "/usr/local/lib/python2.7/dist-packages/pandas/core/indexing.py", line 1403, in _has_valid_type

error()


 "/usr/local/lib/python2.7/dist-packages/pandas/core/indexing.py", line 1390, in error

(key, self.obj._get_axis_name(axis)))
KeyError: 'the label [2000-01-03 00:00:00+00:00] is not in the [index]'
