Skip to content

Flask Error with Python3, Import Error with just Python #27

@KarmaMole

Description

@KarmaMole

If I try to start the server with python3 server.py as instructed, I get:

Traceback (most recent call last):
File "C:\Stable Diffusion Engines\stable-diffusion-api-server-main\server.py", line 5, in
import flask
ModuleNotFoundError: No module named 'flask'

I've also tried pip install flask, but it just says 'requirements fullfilled'.

And if I try to start it with just python server.py, I get:
ImportError: cannot import name 'SAFE_WEIGHTS_NAME' from 'transformers.utils' (C:\Users\Omar.conda\envs\sd-api-server\lib\site-packages\transformers\utils_init_.py)

I've followed all the instructions exactly as specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions