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

'UnstructuredParser' object is not iterable #236

Open
mchwasta opened this issue Feb 19, 2025 · 3 comments
Open

'UnstructuredParser' object is not iterable #236

mchwasta opened this issue Feb 19, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@mchwasta
Copy link

I keep getting this error: 'UnstructuredParser' object is not iterable

I get a similar error using the openai parser

Tried running it in a clean env and still not working

Thanks!

Copy link

linear bot commented Feb 19, 2025

Copy link

dosubot bot commented Feb 19, 2025

Hey @mchwasta! I'm a bot designed to help you with bugs, questions, and contributions. I'm here to assist you while you wait for a human maintainer.

The error "'UnstructuredParser' object is not iterable" occurs because the UnstructuredParser is not designed to be used as an iterable object. This means you cannot use it in a context that requires iteration, such as in a loop or a comprehension. To resolve this, ensure that you are not trying to iterate over the UnstructuredParser object itself. Instead, use its methods, like convert, to process documents individually [1].

If you're encountering a similar issue with the OpenAI parser, it might be due to a similar misuse. Make sure to check how you're using these parsers and ensure you're not attempting to iterate over them directly.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added the bug Something isn't working label Feb 19, 2025
@camucamulemon7
Copy link

The same problem occurs with MegaParseVision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants