pdfGPT icon indicating copy to clipboard operation
pdfGPT copied to clipboard

Getting error when running

Open m3kwong opened this issue 2 years ago • 3 comments

using python3:

File "/Users/m3kwong/PythonCode/LLM/pdfGPT-main/app.py", line 2, in import fitz File "/Users/m3kwong/PythonCode/LLM/pdfGPT-main/new/lib/python3.10/site-packages/fitz/init.py", line 1, in from frontend import * File "/Users/m3kwong/PythonCode/LLM/pdfGPT-main/new/lib/python3.10/site-packages/frontend/init.py", line 1, in from .events import * File "/Users/m3kwong/PythonCode/LLM/pdfGPT-main/new/lib/python3.10/site-packages/frontend/events/init.py", line 1, in from .clipboard import * File "/Users/m3kwong/PythonCode/LLM/pdfGPT-main/new/lib/python3.10/site-packages/frontend/events/clipboard.py", line 2, in from ..dom import Event File "/Users/m3kwong/PythonCode/LLM/pdfGPT-main/new/lib/python3.10/site-packages/frontend/dom.py", line 439, in from . import dispatcher File "/Users/m3kwong/PythonCode/LLM/pdfGPT-main/new/lib/python3.10/site-packages/frontend/dispatcher.py", line 15, in from . import config, server File "/Users/m3kwong/PythonCode/LLM/pdfGPT-main/new/lib/python3.10/site-packages/frontend/server.py", line 24, in app.mount(config.STATIC_ROUTE, StaticFiles(directory=config.STATIC_DIRECTORY), name=config.STATIC_NAME) File "/Users/m3kwong/PythonCode/LLM/pdfGPT-main/new/lib/python3.10/site-packages/starlette/staticfiles.py", line 57, in init raise RuntimeError(f"Directory '{directory}' does not exist") RuntimeError: Directory 'static/' does not exist

m3kwong avatar Apr 22 '23 14:04 m3kwong

try pip install fitz

bhaskatripathi avatar Apr 26 '23 09:04 bhaskatripathi

I was getting the same error (when deploying to HuggingFace), I was able to resolve this by not adding fitz or frontend in the requirements.txt.

kpatdev avatar Apr 26 '23 20:04 kpatdev

same error. P.s i already installed fitz and frontend

HabibiErfan avatar Apr 29 '23 17:04 HabibiErfan

same error caused by broken fitz, which missed static such as css files and i solve it by

pip uninstall fitz
pip install pymupdf

riverind avatar Sep 22 '23 11:09 riverind