question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error message: "generator raised StopIteration" for a generated schema

See original GitHub issue

I’m following: https://github.com/frictionlessdata/frictionless-py/blob/master/docs/target/validating-data/README.md#validating-resource

Same file as the attached file (but named as .csv instead of .txt as Github doesn’t support .csv files)

create_datapackage_header.txt

I’ve done:

describe ~/Baixades/create_datapackage_header.csv --json > test.json
frictionless validate test.json 
[invalid] test.json

row    field    code          message
-----  -------  ------------  ----------------------------------------------------------------------------------------------
                source-error  The data source has not supported or has inconsistent contents: generator raised StopIteration

I expected validation errors or all good but not this error message. frictionless version: 0.6.1


Please preserve this line to notify @roll (lead of this repository)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rollcommented, Oct 8, 2020

Thanks, @lwinfree, I agree - https://github.com/frictionlessdata/frictionless-py/issues/462 - current behavior is a mostly historical artifact of tabulator

0reactions
lwinfreecommented, Oct 7, 2020

@roll my opinion here is that we should consider any json file as metadata. I’ve found that people are confused about this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

generator raised StopIteration" every time I try to run app ...
So I run the pip install -e git+https://github.com/webpy/webpy.git#egg=webpy command to get the latest version from master branch. This won't ...
Read more >
RuntimeError('generator raised StopIteration') #576 - GitHub
RuntimeError('generator raised StopIteration') #576 ... the tests run with errors (yet do pass) out of the box on Python 3.7.4. thread.
Read more >
Using Generators for substantial memory savings in Python
When the generator's iteration is complete, it signals the caller by raising the StopIteration exception and it exits. Below code explains ...
Read more >
Python 3.7 - RuntimeError: generator raised StopIteration
You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group. To unsubscribe from this group and stop ...
Read more >
RuntimeError: generator raised StopIteration" every time i run ...
So every time I try to run the app I get "RuntimeError: generator raised StopIteration error". I am using Python 3.7 (btw I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found