You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying : manage.py deploy --oauth2
getting error : google.appengine.tools.appcfg.OAuthNotAvailable
because GAE's oauth libs are missing in sys.path.
These needed libs are defined in GAE's wrapper_util.py : (Class) Paths: oauth_client_extra_paths
but are not included by default by dev_appserver.fix_sys_path()
I did a hack but am not sure about the clean way to do it.
In boot.py, def setup_env(): (line 72) :
# Then call fix_sys_path from the SDK# Debug heretry:
fromdev_appserverimportfix_sys_path, _PATHS, EXTRA_PATHSEXTRA_PATHS+=_PATHS.oauth_client_extra_pathsfix_sys_path()
exceptImportError:
fromold_dev_appserverimportfix_sys_path, OAUTH_CLIENT_EXTRA_PATHSfix_sys_path(OAUTH_CLIENT_EXTRA_PATHS)
In old_dev_appserver.py, it was possible to add extra paths as args (c.f. def fix_sys_path(extra_extra_paths=())), but these args are not used anymore in the new dev_appserver.py.
I don't know djangoappengine's architecture, so I'm not sure of the correct place to fix this.
Anyway, I leave it to whoever can fix it the right way.
The text was updated successfully, but these errors were encountered:
# Then call fix_sys_path from the SDK# Debug heretry:
fromdev_appserverimportfix_sys_path, _PATHS, EXTRA_PATHSEXTRA_PATHS+=_PATHS.oauth_client_extra_pathsfix_sys_path()
exceptImportError:
fromold_dev_appserverimportfix_sys_path, OAUTH_CLIENT_EXTRA_PATHSfix_sys_path(extra_extra_paths=OAUTH_CLIENT_EXTRA_PATHS)
I can confirm the issue and that the provided patch fixes it.
If it works for you it may be that you have the needed libraries within your path for some reason (global libraries perhaps?)
When trying :
manage.py deploy --oauth2
getting error :
google.appengine.tools.appcfg.OAuthNotAvailable
because GAE's oauth libs are missing in
sys.path
.These needed libs are defined in GAE's wrapper_util.py :
(Class) Paths: oauth_client_extra_paths
but are not included by default by
dev_appserver.fix_sys_path()
I did a hack but am not sure about the clean way to do it.
In boot.py,
def setup_env():
(line 72) :In old_dev_appserver.py, it was possible to add extra paths as args (c.f.
def fix_sys_path(extra_extra_paths=())
), but these args are not used anymore in the new dev_appserver.py.I don't know djangoappengine's architecture, so I'm not sure of the correct place to fix this.
Anyway, I leave it to whoever can fix it the right way.
The text was updated successfully, but these errors were encountered: