Catalog.streams is generator expression instead of list
I am running into a problem with singer-python 3.5.2.
The catalog object works the first time the streams attribute is accessed but not in subsequent times.
I believe the issue is related to how the "streams" attribute is initialized.
It is a generator expression instead of a list.
This shows the problem:
import singer
c = singer.catalog.Catalog.load("catalog_categories.json")
c.to_dict() # this works
c.to_dict() # this returns an empty object : {'streams': []}
Hi @pedromachados,
Just to clarify, do you mean you are running version 3.5.2 of singer-python or version 3.5.2 of python?
Also, if this is no longer an issue, I'll close this issue.
That was the singer-python version. I haven't checked the more recent versions. At the time I found a workaround, but can't remember the details.