singer-python icon indicating copy to clipboard operation
singer-python copied to clipboard

Catalog.streams is generator expression instead of list

Open pedromachados opened this issue 8 years ago • 2 comments

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': []}

pedromachados avatar Sep 29 '17 20:09 pedromachados

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.

luandy64 avatar Nov 13 '18 19:11 luandy64

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.

pedromachados avatar Nov 22 '18 16:11 pedromachados