SillyTavern / SillyTavern-Extras

Extensions API for SillyTavern.
GNU Affero General Public License v3.0
563 stars 133 forks source link

ModuleNotFoundError: No module named 'flask' #9

Closed trihardseven closed 1 year ago

trihardseven commented 1 year ago

Getting this error when trying to install the extra modules:

$ python server.py --enable-modules=caption Traceback (most recent call last): File "N:\AI\Text\TavernAI-extras\server.py", line 2, in from flask import Flask, jsonify, request, render_template_string, abort ModuleNotFoundError: No module named 'flask'

Cohee1207 commented 1 year ago

Did you run pip install -r requirements.txt first?

trihardseven commented 1 year ago

Yes. I just checked and I'm getting an error when running that.

Successfully built transformers Installing collected packages: networkx, MarkupSafe, markdown, itsdangerous, idna, filelock, colorama, charset-normalizer, certifi, Werkzeug, tqdm, requests, jinja2, click, webuiapi, torch, huggingface-hub, flask, transformers, flask-cors, flask-cloudflared ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\Python311\share' Consider using the --user option or check the permissions.

trihardseven commented 1 year ago

ran with --user like the console suggested and it worked

hboxgames commented 1 year ago

Hi, What do you mean running with --user could you specify the solution for others... please thanks