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

Recent versions of python3-fitz renamed fitz_old to fitz_old . pdf2docx fails #323

Open
EricV2 opened this issue Oct 23, 2024 · 0 comments

Comments

@EricV2
Copy link

EricV2 commented Oct 23, 2024

Description of the bug

python3-fitz now has the following files:
/usr/lib/python3/dist-packages/fitz_old
/usr/lib/python3/dist-packages/fitz_old/init.py
/usr/lib/python3/dist-packages/fitz_old/main.py
/usr/lib/python3/dist-packages/fitz_old/_fitz_old.cpython-312-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/fitz_old/fitz_old.py
/usr/lib/python3/dist-packages/fitz_old/table.py
/usr/lib/python3/dist-packages/fitz_old/utils.py

So starting pdf2docx even without arguments fails with:
File "/usr/local/lib/python3.12/dist-packages/pdf2docx-0.5.8-py3.12.egg/pdf2docx/converter.py", line 9, in
import fitz
ModuleNotFoundError: No module named 'fitz'

Installer should check python3-fitz and use either fitz or fitz_old.

How to reproduce the bug

Install python-fitz version 1.24.2 and try to run pd2todocx

pdf2docx version

Built from source

Operating system

Linux

Python version

3.12

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

1 participant