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

magic-pdf 0.6.1 requires PyMuPDF>=1.24.7, but you have pymupdf 1.24.5 which is incompatible. #23

Open
rhythm35 opened this issue Jul 31, 2024 · 2 comments

Comments

@rhythm35
Copy link

pip install fairy-doc
success!
run: ModuleNotFoundError: No module named 'magic_pdf'
but requirement magic_doc
pip install magic_pdf
magic-pdf 0.6.0 requires PyMuPDF>=1.24.7, but you have pymupdf 1.24.5 which is incompatible.

@icecraft
Copy link
Collaborator

icecraft commented Aug 2, 2024

could you provide the version of fairy-doc using the following command

pip freeze | grep fairy-doc

@Fusaaaann
Copy link

Fusaaaann commented Oct 9, 2024

Same problem here, especially when setting up new environment which needs magic-pdf and magic-doc simultaneously.
I have fairy-doc==1.44, and it works well with pymupdf 1.24.9 (which magic-pdf can work well with), so how about considering loosen dependency requirement on pymupdf? maybe pymupdf>=1.24.5,<2 could work, while also avoiding future breaking changes.

My current working environment was achieved by installing magic-doc manually first, before installing pymupdf==1.24.9 and magic-pdf. When setting up new environment programmatically (e.g. Docker) , this method is not favourable (increases code management complexity). I would like to see the loosening happens in dependencies of magic-doc, if possible.

I'll put my working steps here, in case anyone needs it:

# ... install build-essential and cython beforehand
pip install fairy-doc
pip install pymupdf==1.24.9 --force-reinstall
pip install magic-pdf

Anyway thanks for your great work!

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

3 participants