You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/03/30 20:23:54 UTC

[GitHub] [incubator-superset] johnseekins opened a new issue #9419: flask_oauthlib doesn't load properly

johnseekins opened a new issue #9419: flask_oauthlib doesn't load properly
URL: https://github.com/apache/incubator-superset/issues/9419
 
 
   When trying to enable OAuth2 (with Okta) with superset (following documentation here: https://superset.incubator.apache.org/installation.html#custom-oauth2-configuration), the service fails to start.
   
   ### Expected results
   
   Superset starts up and can handle OAuth2 configs
   
   ### Actual results
   
   ```
   Mar 30 20:18:50 use1-superset-1 gunicorn[8851]: ImportError: cannot import name 'url_quote'
   Mar 30 20:18:50 use1-superset-1 gunicorn[8851]: During handling of the above exception, another exception occurred:
   Mar 30 20:18:50 use1-superset-1 gunicorn[8851]: Traceback (most recent call last):
   Mar 30 20:18:50 use1-superset-1 gunicorn[8851]:   File "/datto/monitoring/superset/.pyenv/versions/3.6.8/lib/python3.6/site-packages/gunicorn/instrument/statsd.py", line 121, in _sock_send
   Mar 30 20:18:50 use1-superset-1 gunicorn[8851]:     self.sock.send(msg)
   ```
   
   #### How to reproduce the bug
   
   1. Install recent superset (0.35.2) (`pip3 install apache-superset`)
   2. install flask_oauthlib/authlib (`pip3 install flask_oauthlib Authlib`)
   3. Enable OAuth2 in Superset config:
   ```
   from flask_appbuilder.security.manager import AUTH_OAUTH
   AUTH_TYPE = AUTH_OAUTH
   ```
   4. See error
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: `0.35.2`
   - python version: `3.6.8`
   - node.js version: `??`
   - npm version: `???`
   
   ### Checklist
   
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't found one similar.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] closed issue #9419: flask_oauthlib doesn't load properly

Posted by GitBox <gi...@apache.org>.
stale[bot] closed issue #9419:
URL: https://github.com/apache/incubator-superset/issues/9419


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] commented on issue #9419: flask_oauthlib doesn't load properly

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #9419:
URL: https://github.com/apache/incubator-superset/issues/9419#issuecomment-636265859


   This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue `.pinned` to prevent stale bot from closing the issue.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] hwhsu commented on issue #9419: flask_oauthlib doesn't load properly

Posted by GitBox <gi...@apache.org>.
hwhsu commented on issue #9419:
URL: https://github.com/apache/incubator-superset/issues/9419#issuecomment-641768473


   @ChiakaiChang
   You can try to add Flask_OAuthlib to requirements.txt and change the version of the werkzeug==1.0.1 -> werkzeug==0.16 then rebuild it.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] ChiakaiChang commented on issue #9419: flask_oauthlib doesn't load properly

Posted by GitBox <gi...@apache.org>.
ChiakaiChang commented on issue #9419:
URL: https://github.com/apache/incubator-superset/issues/9419#issuecomment-641678456


   I have this problem too when trying to use oauth2.
   Could someone help ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] ChiakaiChang commented on issue #9419: flask_oauthlib doesn't load properly

Posted by GitBox <gi...@apache.org>.
ChiakaiChang commented on issue #9419:
URL: https://github.com/apache/incubator-superset/issues/9419#issuecomment-641843012


   @hwhsu 
   It works. Thank you !


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org