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

Missing dependencies and error #37

Open
raffaem opened this issue Oct 11, 2022 · 0 comments
Open

Missing dependencies and error #37

raffaem opened this issue Oct 11, 2022 · 0 comments

Comments

@raffaem
Copy link

raffaem commented Oct 11, 2022

After installing, termpdf.py complains that the module "fitz" is missing.

After pip3 install fitz, it complains that the frontend module is missing.

After pip3 install frontend, here is the error I get when I try to open a PDF file:

Traceback (most recent call last):
  File "/home/raffaele/.local/bin/termpdf.py", line 56, in <module>
    import fitz
  File "/home/raffaele/.local/lib/python3.10/site-packages/fitz/__init__.py", line 1, in <module>
    from frontend import *
  File "/home/raffaele/.local/lib/python3.10/site-packages/frontend/__init__.py", line 1, in <module>
    from .events import *
  File "/home/raffaele/.local/lib/python3.10/site-packages/frontend/events/__init__.py", line 1, in <module>
    from .clipboard import *
  File "/home/raffaele/.local/lib/python3.10/site-packages/frontend/events/clipboard.py", line 2, in <module>
    from ..dom import Event
  File "/home/raffaele/.local/lib/python3.10/site-packages/frontend/dom.py", line 439, in <module>
    from . import dispatcher
  File "/home/raffaele/.local/lib/python3.10/site-packages/frontend/dispatcher.py", line 15, in <module>
    from . import config, server
  File "/home/raffaele/.local/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/raffaele/.local/lib/python3.10/site-packages/starlette/staticfiles.py", line 55, in __init__
    raise RuntimeError(f"Directory '{directory}' does not exist")
RuntimeError: Directory 'static/' does not exist
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