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

docker image is missing requests_oauthlib library #1350

Open
brianmay opened this issue Oct 17, 2023 · 1 comment
Open

docker image is missing requests_oauthlib library #1350

brianmay opened this issue Oct 17, 2023 · 1 comment

Comments

@brianmay
Copy link

Running: python3 querybook/server/runweb.py --debug --webpack 10001
Traceback (most recent call last):
  File "/opt/querybook/querybook/server/runweb.py", line 18, in <module>
    from app.server import flask_app
  File "/opt/querybook/querybook/server/app/server.py", line 17, in <module>
    auth.init_app(flask_app)
  File "/opt/querybook/querybook/server/app/auth/__init__.py", line 15, in init_app
    load_auth()
  File "/opt/querybook/querybook/server/app/auth/__init__.py", line 37, in load_auth
    auth = import_module_with_default(QuerybookSettings.AUTH_BACKEND)
  File "/opt/querybook/querybook/server/lib/utils/import_helper.py", line 70, in import_module_with_default
    raise err
  File "/opt/querybook/querybook/server/lib/utils/import_helper.py", line 57, in import_module_with_default
    plugin_value = import_module(module_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/opt/querybook/querybook/server/app/auth/oauth_auth.py", line 7, in <module>
    from requests_oauthlib import OAuth2Session
ModuleNotFoundError: No module named 'requests_oauthlib'
@brianmay
Copy link
Author

brianmay commented Oct 17, 2023

Also the oauth scope appears to be hardcoded:

The dex oauth provider doesn't like this value. Needs to be something like "openid email groups"

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