Building image...Traceback (most recent call last):


 "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 193, in _run_module_as_main


 "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 85, in _run_code


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\__main__.py", line 12, in <module>

cli(prog_name="sam")


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 829, in __call__

return self.main(*args, **kwargs)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 782, in main

rv = self.invoke(ctx)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 1259, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 1259, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 1066, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 610, in invoke

return callback(*args, **kwargs)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\decorators.py", line 73, in new_func

return ctx.invoke(f, obj, *args, **kwargs)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\click\core.py", line 610, in invoke

return callback(*args, **kwargs)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\telemetry\metrics.py", line 96, in wrapped

raise exception
# pylint: disable=raising-bad-type


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\lib\telemetry\metrics.py", line 62, in wrapped

return_value = func(*args, **kwargs)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\commands\local\invoke\cli.py", line 86, in cli

parameter_overrides,


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\commands\local\invoke\cli.py", line 151, in do_cli

context.function_name, event=event_data, stdout=context.stdout, stderr=context.stderr


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\commands\local\lib\local_lambda.py", line 100, in invoke

self.local_runtime.invoke(config, event, debug_context=self.debug_context, stdout=stdout, stderr=stderr)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\lambdafn\runtime.py", line 77, in invoke

debug_options=debug_context,


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\docker\lambda_container.py", line 72, in __init__

image = LambdaContainer._get_image(image_builder, runtime, layers, debug_options)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\docker\lambda_container.py", line 176, in _get_image

return image_builder.build(runtime, layers, is_debug)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\docker\lambda_image.py", line 123, in build

self._build_image(base_image, image_tag, downloaded_layers, is_debug_go, stream=stream_writer)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\local\docker\lambda_image.py", line 201, in _build_image

fileobj=tarballfile, custom_context=True, rm=True, tag=docker_tag, pull=not self.skip_pull_image


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\api\build.py", line 261, in build

self._set_auth_headers(headers)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\api\build.py", line 308, in _set_auth_headers

auth_data = self._auth_configs.get_all_credentials()


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\auth.py", line 311, in get_all_credentials

reg, store_name


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\auth.py", line 262, in _resolve_authconfig_credstore

store = self._get_store_instance(credstore_name)


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\auth.py", line 287, in _get_store_instance

name, environment=self._credstore_env


 "C:\Program 
s\Amazon\AWSSAMCLI\runtime\lib\site-packages\docker\credentials\store.py", line 25, in __init__

self.program
docker.credentials.errors.InitializationError: docker-credential-gcloud not installed or not available in PATH

Traceback (most recent call last):

 "C:\Python33\lib\logging__init__.py", line 943, in emit

 "C:\Python33\lib\logging__init__.py", line 923, in flushOSError: [Errno 9] Bad file descriptor