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

gptme-server fails with No module named 'flask' #290

Closed
FilipHarald opened this issue Nov 29, 2024 · 2 comments
Closed

gptme-server fails with No module named 'flask' #290

FilipHarald opened this issue Nov 29, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@FilipHarald
Copy link

Perhaps this is an easy fix, but I didn't see anything for it in the docs.

$ gptme-server
Traceback (most recent call last):
  File "/home/filip/.local/bin/gptme-server", line 5, in <module>
    from gptme.server.cli import main
  File "/home/filip/.local/share/pipx/venvs/gptme/lib/python3.12/site-packages/gptme/server/__init__.py", line 5, in <module>
    from .api import create_app
  File "/home/filip/.local/share/pipx/venvs/gptme/lib/python3.12/site-packages/gptme/server/api.py", line 17, in <module>
    import flask
ModuleNotFoundError: No module named 'flask'
@ErikBjare
Copy link
Owner

ErikBjare commented Nov 29, 2024

You need to install it with the server extras (pipx install gptme[server]).

I see it is not mentioned in https://gptme.org/docs/server.html, will fix straight away.

@ErikBjare
Copy link
Owner

Fixed in cb561d6

@ErikBjare ErikBjare added the documentation Improvements or additions to documentation label Nov 29, 2024
@ErikBjare ErikBjare changed the title bug: gptme-server fails with No module named 'flask' gptme-server fails with No module named 'flask' Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants