I follow this tutorial about setting up cloud computing endpoints in python on googles engine and keep getting import error
ImportError: No module named control
in Creating an OpenAPI configuration file as you type
python lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname echo-api.endpoints.projectid.cloud.goog
I did the following in a new account and still got this error. Don't know what I'm doing wrong / steps I skip.
here is the trace:
Traceback (most recent call last): File "lib/endpoints/endpointscfg.py", line 625, in <module> main(sys.argv) File "lib/endpoints/endpointscfg.py", line 621, in main args.callback(args) File "lib/endpoints/endpointscfg.py", line 479, in _GenOpenApiSpecCallback application_path=args.application) File "lib/endpoints/endpointscfg.py", line 324, in _GenOpenApiSpec application_path=application_path) File "lib/endpoints/endpointscfg.py", line 181, in GenApiConfig module = __import__(module_name, fromlist=base_service_class_name) File "/home/hairyhenry/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/main.py", line 19, in <module> import endpoints File "/home/hairyhenry/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/__init__.py", line 29, in <module> from apiserving import * File "/home/hairyhenry/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/apiserving.py", line 74, in <module> from google.api.control import client as control_client ImportError: No module named control
any understanding would be incredible
source share