authlib / example-oauth2-server

Example for OAuth 2 Server for Authlib.
https://authlib.org/
684 stars 285 forks source link

authlib module not found error #62

Closed raveenb closed 4 years ago

raveenb commented 4 years ago

I am getting a module not found error for authlib, i had followed the instructions as written

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 235, in locate_app
    __import__(module_name)
  File "/Users/raveenbeemsingh/Developer/projects/flask_oauth/example-oauth2-server/app.py", line 1, in <module>
    from website.app import create_app
  File "/Users/raveenbeemsingh/Developer/projects/flask_oauth/example-oauth2-server/website/app.py", line 3, in <module>
    from .models import db
  File "/Users/raveenbeemsingh/Developer/projects/flask_oauth/example-oauth2-server/website/models.py", line 3, in <module>
    from authlib.integrations.sqla_oauth2 import (
ModuleNotFoundError: No module named 'authlib'
raveenb commented 4 years ago

this is my directory structure i am using a virtual env and have installed all libs in that and activated it too

 ~/Developer/…/flask_oauth/example-oauth2-server >  venv >
README.md        __pycache__      app.py           db.sqlite        requirements.txt venv             website
lepture commented 4 years ago

try to install:

$ pip install -r requirements.txt

find out if it is not installed successful with:

$ pip freeze