open-parse icon indicating copy to clipboard operation
open-parse copied to clipboard

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

Open spar025 opened this issue 1 year ago • 1 comments

Initial Checks

  • [X] I confirm that I'm on the latest version

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)

spar025 avatar Apr 27 '24 23:04 spar025

How did you install open-parse?

Filimoa avatar Apr 28 '24 18:04 Filimoa

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

Filimoa avatar Jun 04 '24 14:06 Filimoa