I get the above error when using the records() to pull from either an
XLS or CSV source:
In [23]: recs=x.records()
In [24]: recs.next()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/aklaver/software_projects/production_database/ignore_dir/<ipython-input-24-80c5a01d2309>
in <module>()
----> 1 recs.next()
/usr/local/lib/python2.7/site-packages/brewery/ds/xls_streams.pyc in
records(self)
71
72 def records(self):
---> 73 fields = self.field_names
74 for row in self.rows():
75 yield dict(zip(fields, row))
AttributeError: 'XLSDataSource' object has no attribute 'field_names'
When I use rows() it works.
Thanks,
--
Adrian Klaver
adrian...@gmail.com