I use the import statement: from pipeline_live.data.alpaca.pricing import USEquityPricing
. I attach the pipeline using
attach_pipeline(pipe, 'Stocks')
.
However, when I run a scheduled function with the line:
pipe_output = pipeline_output('Stocks')
,
I get the following error:
AttributeError: type object 'USEquityPricing' has no attribute 'get_loader'[2019-06-24 19:26:01.238885] WARNING: Executor: Continuing execution
I have run my algo with iex.pricing and polygon.pricing, yet get the same error. Any help is much appreciated, thanks!
Full Error: [2019-06-24 19:26:01.021099] ERROR: Executor: type object 'USEquityPricing' has no attribute 'get_loader'Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/pylivetrader/executor/executor.py", line 67, in wrapper func(*args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/pylivetrader/executor/executor.py", line 88, in every_bar handle_data(algo, current_data, dt_to_use) File "/usr/local/lib/python3.6/dist-packages/pylivetrader/misc/events.py", line 218, in handle_data dt, File "/usr/local/lib/python3.6/dist-packages/pylivetrader/misc/events.py", line 237, in handle_data self.callback(context, data) File "HVLv1.py", line 86, in late_day_trade pipe_output = pipeline_output('Stocks') File "/usr/local/lib/python3.6/dist-packages/pylivetrader/misc/api_context.py", line 62, in wrapped return getattr(algorithm, f.__name__)(*args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/pylivetrader/algorithm.py", line 1077, in pipeline_output output = eng.run_pipeline(self._pipelines[name]) File "/usr/local/lib/python3.6/dist-packages/pipeline_live/engine.py", line 77, in run_pipeline initial_workspace, File "/usr/local/lib/python3.6/dist-packages/pipeline_live/engine.py", line 216, in compute_chunk loader_groups = groupby(loader_group_key, graph.loadable_terms) File "/usr/local/lib/python3.6/dist-packages/toolz/itertoolz.py", line 93, in groupby d[key(item)](item) File "/usr/local/lib/python3.6/dist-packages/toolz/functoolz.py", line 596, in __call__ return tuple(func(*args, **kwargs) for func in self.funcs) File "/usr/local/lib/python3.6/dist-packages/toolz/functoolz.py", line 596, in <genexpr> return tuple(func(*args, **kwargs) for func in self.funcs) File "/usr/local/lib/python3.6/dist-packages/pipeline_live/engine.py", line 214, in <lambda> lambda x: x.dataset.get_loader(), getitem(AttributeError: type object 'USEquityPricing' has no attribute 'get_loader'[2019-06-24 19:26:01.238885] WARNING: Executor: Continuing execution