vps ubuntu python could not locate runnable browser

52 views Asked by At

i trying to run google Oauth with django project on vps ubuntu server

the google flow file use python module webbrowser.py ,

when run the app get error "could not locate runnable browser"

google flow code is

import webbrowser 
webbrowser.get(None).open(auth_url, new=1, autoraise=True)  

any one can help in this

when remove webbrowser.get(None) and use only webbrowser.open(auth_url, new=1, autoraise=True) i receive bad gateway error

0

There are 0 answers