Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine Remote API does not work from local client

This is using the Python SDK version 1.8.0.

My remote API works fine using remote_api_shell.py, but doesn't work when trying to accessing from within a python script. I'm using the 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'm also importing the fix_sys_path() from dev_appserver.py to set my sys.path correctly for the google app engine SDK:

import dev_appserver dev_appserver.fix_sys_path() 

that adds, among other paths, the following line to my sys.path:

'/google_appengine_1.8.0/lib/fancy_urllib' 

However, the following error is thrown when the above call to remote_api_stub.ConfigureRemoteApi() is called:

opener.add_handler(fancy_urllib.FancyProxyHandler()) AttributeError: 'module' object has no attribute 'FancyProxyHandler' 
like image 328
drewlio Avatar asked May 26 '13 19:05

drewlio


People also ask

How do I run App Engine locally?

Running your application locallySelect File > Open to open the project you want to run. Browse to the directory containing your project. Select Tools > Cloud Code > App Engine Run on a local App Engine Standard dev server.

Does not have permission to access apps instance or it may not exist ): The caller does not have permission?

The caller does not have permission to access projectThis error occurs if the account that you used to deploy your app does not have permission to deploy apps for the current project. To resolve this issue, grant the App Engine Deployer ( roles/appengine. deployer ) role to the account.


1 Answers

Wait 7 years, and it all seems to work fine.

like image 72
Konchog Avatar answered Oct 02 '22 11:10

Konchog