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

ModuleNotFoundError: No module named 'megaparse.parser' #161

Open
JeisonJimenezA opened this issue Dec 5, 2024 · 5 comments
Open

ModuleNotFoundError: No module named 'megaparse.parser' #161

JeisonJimenezA opened this issue Dec 5, 2024 · 5 comments

Comments

@JeisonJimenezA
Copy link

JeisonJimenezA commented Dec 5, 2024

I found this error when executing the example from the readme:
ModuleNotFoundError: No module named 'megaparse.parser'

@jojogh
Copy link

jojogh commented Dec 6, 2024

same issue here

@StanGirard
Copy link
Contributor

#158 ;)

@russellballestrini
Copy link

russellballestrini commented Dec 7, 2024

Oh no this seems bad... Can we fix this without a workaround? I will help with a PR to fix it if you lead me to the problem.

@JoaquinMulet
Copy link

In this example:

from megaparse import MegaParse
from langchain_openai import ChatOpenAI
from megaparse.parser.llama_parser import LlamaParser

parser = LlamaParser(api_key = os.getenv("LLAMA_CLOUD_API_KEY"))
megaparse = MegaParse(parser)
response = megaparse.load("./test.pdf")
print(response)
megaparse.save("./test.md") #saves the last processed doc in md format

try this: from megaparse.parser.llama import LlamaParser
instead of megaparse.parser.llama import LlamaParser

@erdooom
Copy link

erdooom commented Dec 12, 2024

Which version did you install ? I had the same problem, needed to move to python 3.11 and ver 0.0.48, then it works

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

6 participants