Custom Data Loading attribute error

I have followed the instructions for loading Custom data. It all seems to work and I have loaded the SQL database with a sample column of data.

However, as I try to set up the field in my zipline pipeline get the below error!. There are no errors in loading the data and the data is there. The CustomFundemantals class autocompletes the Column name, I think like I had this working and now I get this error. Any help is appriciated.

from zipline.pipeline.data.db import Database, Column
class CustomFundamentals(Database):

    CODE = "test-fundamentals"
    LOOKBACK_WINDOW = 180
    sector = Column(str),
    Symbol  = Column(str),

Pipeline(columns={“test”: CustomFundamentals.sector.latest,})


AttributeError Traceback (most recent call last)
in ()
1
2
----> 3 Pipeline(columns={“test”: CustomFundamentals.sector.latest,})
4
5

AttributeError: ‘tuple’ object has no attribute ‘latest’

Here is the type info

CustomFundamentals.sector
(<zipline.pipeline.data.dataset.Column at 0x7fb5d1a013c8>,)

This is just Python, not QuantRocket. You have stray commas after Column(str), which creates a tuple.

Brian Thanks very much!

I actually was also using the str type (from the db definition ) instead of Object !!! and then I inserted a comma for some reason and the class returned no errors !! so I made a double mistake which creates the error

Agghhh …