Filimoa / open-parse

Improved file parsing for LLM’s
https://filimoa.github.io/open-parse/
MIT License
2.34k stars 89 forks source link

ImportError: cannot import name 'DocumentParser' from partially initialized module 'openparse' #36

Closed spar025 closed 3 months ago

spar025 commented 4 months ago

Initial Checks

Description

Why is my Basic Extraction not running properly? The prompt message is as follows: image

Example Code

import openparse

basic_doc_path = "demo.pdf"
parser = openparse.DocumentParser()
parsed_basic_doc = parser.parse(basic_doc_path)

for node in parsed_basic_doc.nodes:
    print(node)
Filimoa commented 4 months ago

How did you install open-parse?

Filimoa commented 3 months ago

Closing due to inactivity - have not been able to replicate. I think it might be due to you naming your test file openparse.py the same thing as the package