I use pymupdf to automatically sign my document. But the package name is pymupdf even the warning is that “fitz” is not installed. If come across an error message like
import fitz
File “/home/phsamuel/p3/lib/python3.10/site-packages/fitz/__init__.py”, line 1, in <module>
from frontend import *
File “/home/phsamuel/p3/lib/python3.10/site-packages/frontend/__init__.py”, line 1, in <module>
from .events import *
File “/home/phsamuel/p3/lib/python3.10/site-packages/frontend/events/__init__.py”, line 1, in <module>
from .clipboard import *
File “/home/phsamuel/p3/lib/python3.10/site-packages/frontend/events/clipboard.py”, line 2, in <module>
from ..dom import Event
File “/home/phsamuel/p3/lib/python3.10/site-packages/frontend/dom.py”, line 439, in <module>
from . import dispatcher
File “/home/phsamuel/p3/lib/python3.10/site-packages/frontend/dispatcher.py”, line 15, in <module>
from . import config, server
File “/home/phsamuel/p3/lib/python3.10/site-packages/frontend/server.py”, line 24, in <module>
app.mount(config.STATIC_ROUTE, StaticFiles(directory=config.STATIC_DIRECTORY), name=config.STATIC_NAME)
File “/home/phsamuel/p3/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
One should pip uninstall fitz and pip install pymupdf instead.