Open gw37 opened 6 months ago
What version of Python is this in?
we see this in python 3.11.6 , 3.11.7
Introduced in https://github.com/Azure-Samples/azure-search-openai-demo/pull/1056
fitz is missing from the prep docs dependency input, it might be a transient dependency that's unique to certain platforms.
Thanks for the report. I'll test this out on a Windows machine
Update after trying to reproduce this. Fitz is part of pymupdf
so it seems that package didn't install correctly.
This is a known issue with PyMuPDF on certain versions of Windows. They have a solution here https://github.com/pymupdf/PyMuPDF/blob/main/docs/installation.rst#problems-after-installation
thanks i'll test this out and update here if any further issues
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Running prepdocs.ps1 into prepdocs.py from a newly cloned copy of the repo today
Any log messages given by the failure
Running "prepdocs.py" Traceback (most recent call last): File "C:\Files\repo1\scripts\prepdocs.py", line 10, in
from prepdocslib.blobmanager import BlobManager
File "C:\Files\repo1\scripts\prepdocslib\blobmanager.py", line 7, in
import fitz # type: ignore
^^^^^^^^^^^
File "C:\Files\repo1\scripts.venv\Lib\site-packages\fitz__init__.py", line 22, in
from fitz.fitz import *
File "C:\Files\repo1\scripts.venv\Lib\site-packages\fitz\fitz.py", line 14, in
from . import _fitz
ImportError: DLL load failed while importing _fitz: The specified module could not be found.
Expected/desired behavior
Prepdocs would work
OS and Version?
Windows 11 22h2, also repro on Windows 10 22h2
azd version?
azd version 1.5.0 (commit 012ae734904e0c376ce5074605a6d0d3f05789ee)
Versions
Mention any other details that might be useful