The Python SDK version 1.8.0 is used.
My remote API works fine with remote_api_shell.py , but it doesnβt work when trying to access from a python script. I am using a sample code from Google :
from google.appengine.ext.remote_api import remote_api_stub import getpass def auth_func(): return (raw_input('Username:'), getpass.getpass('Password:')) remote_api_stub.ConfigureRemoteApi(None, '/_ah/remote_api', auth_func, 'localhost:8080')
and I also import fix_sys_path() from dev_appserver.py to correctly set my sys.path for the SDK for the Google engine:
import dev_appserver dev_appserver.fix_sys_path()
which adds, among other paths, the following line to my sys.path :
'/google_appengine_1.8.0/lib/fancy_urllib'
However, when calling remote_api_stub.ConfigureRemoteApi() , the following error is raised:
opener.add_handler(fancy_urllib.FancyProxyHandler()) AttributeError: 'module' object has no attribute 'FancyProxyHandler'
source share