Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catalog.streams is generator expression instead of list #43

Open
pedromachados opened this issue Sep 29, 2017 · 2 comments
Open

Catalog.streams is generator expression instead of list #43

pedromachados opened this issue Sep 29, 2017 · 2 comments

Comments

@pedromachados
Copy link

pedromachados commented Sep 29, 2017

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

@luandy64
Copy link
Contributor

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.

@pedromachados
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants