Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
NameError: name 'daily_bar_writer' is not defined

Hi,
Hi I am trying to write a custom data bundle (to ingest in zipline) , but I am stuck on the following error;

NameError: name 'daily_bar_writer' is not defined

I am only importing the writer but the imports fail, what I have tried:

from zipline.data.bundles import bcolz_daily_bars
from bcolz_daily_bars import BcolzDailyBarWriter
from zipline.data import bcolz_daily_bars
from zipline.data.bcolz_daily_bars import BcolzDailyBarWriter, daily_bar_writer

but all these generate errors (module not find or cannot import..)

My question is; what is the correct way to import the daily_bar_writer