2017-01-10, 12:02
@digiltd
first thanks for your help. I did what you said, the where python and pip commands came back "command not found" but the other two "which" reported back the /usr/local/bin/python.
i ran pip install lambda-deploy and got this
Media-Center:~ Media$ pip install lambda-deploy
Requirement already satisfied: lambda-deploy in /usr/local/lib/python2.7/site-packages
Requirement already satisfied: boto3>=1.3.0 in /usr/local/lib/python2.7/site-packages (from lambda-deploy)
Requirement already satisfied: yaep>=0.0.4 in /usr/local/lib/python2.7/site-packages (from lambda-deploy)
Requirement already satisfied: requests>=2.9.1 in /usr/local/lib/python2.7/site-packages (from lambda-deploy)
Requirement already satisfied: botocore<1.5.0,>=1.4.1 in /usr/local/lib/python2.7/site-packages (from boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: s3transfer<0.2.0,>=0.1.10 in /usr/local/lib/python2.7/site-packages (from boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/local/lib/python2.7/site-packages (from boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: docutils>=0.10 in /usr/local/lib/python2.7/site-packages (from botocore<1.5.0,>=1.4.1->boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/local/lib/python2.7/site-packages (from botocore<1.5.0,>=1.4.1->boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: futures<4.0.0,>=2.2.0; python_version == "2.6" or python_version == "2.7" in /usr/local/lib/python2.7/site-packages (from s3transfer<0.2.0,>=0.1.10->boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python2.7/site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.5.0,>=1.4.1->boto3>=1.3.0->lambda-deploy)
then i ran python deploy-to-lambda.py
Media-Center:kodi-alexa-master Media$ python deploy-to-lambda.py
2017-01-10 09:53:19:INFO:botocore.vendored.requests.packages.urllib3.connectionpool: Starting new HTTP connection (1): 169.254.169.254
Traceback (most recent call last):
File "/usr/local/bin/lambda-deploy", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/lambda_deploy/lambda_deploy.py", line 360, in main
name=options.name
File "/usr/local/lib/python2.7/site-packages/lambda_deploy/lambda_deploy.py", line 75, in __init__
self.client = boto3.client('lambda')
File "/usr/local/lib/python2.7/site-packages/boto3/__init__.py", line 83, in client
return _get_default_session().client(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/boto3/session.py", line 263, in client
aws_session_token=aws_session_token, config=config)
File "/usr/local/lib/python2.7/site-packages/botocore/session.py", line 828, in create_client
client_config=config, api_version=api_version)
File "/usr/local/lib/python2.7/site-packages/botocore/client.py", line 69, in create_client
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/usr/local/lib/python2.7/site-packages/botocore/client.py", line 222, in _get_client_args
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/usr/local/lib/python2.7/site-packages/botocore/args.py", line 44, in get_client_args
endpoint_url, is_secure, scoped_config)
File "/usr/local/lib/python2.7/site-packages/botocore/args.py", line 101, in compute_client_args
service_name, region_name, endpoint_url, is_secure)
File "/usr/local/lib/python2.7/site-packages/botocore/client.py", line 295, in resolve
service_name, region_name)
File "/usr/local/lib/python2.7/site-packages/botocore/regions.py", line 122, in construct_endpoint
partition, service_name, region_name)
File "/usr/local/lib/python2.7/site-packages/botocore/regions.py", line 135, in _endpoint_for_partition
raise NoRegionError()
botocore.exceptions.NoRegionError: You must specify a region.
but when i go back to aws my function isn't there, so something has gone wrong. i saved the .env file with text edit is that ok?
first thanks for your help. I did what you said, the where python and pip commands came back "command not found" but the other two "which" reported back the /usr/local/bin/python.
i ran pip install lambda-deploy and got this
Media-Center:~ Media$ pip install lambda-deploy
Requirement already satisfied: lambda-deploy in /usr/local/lib/python2.7/site-packages
Requirement already satisfied: boto3>=1.3.0 in /usr/local/lib/python2.7/site-packages (from lambda-deploy)
Requirement already satisfied: yaep>=0.0.4 in /usr/local/lib/python2.7/site-packages (from lambda-deploy)
Requirement already satisfied: requests>=2.9.1 in /usr/local/lib/python2.7/site-packages (from lambda-deploy)
Requirement already satisfied: botocore<1.5.0,>=1.4.1 in /usr/local/lib/python2.7/site-packages (from boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: s3transfer<0.2.0,>=0.1.10 in /usr/local/lib/python2.7/site-packages (from boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/local/lib/python2.7/site-packages (from boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: docutils>=0.10 in /usr/local/lib/python2.7/site-packages (from botocore<1.5.0,>=1.4.1->boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/local/lib/python2.7/site-packages (from botocore<1.5.0,>=1.4.1->boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: futures<4.0.0,>=2.2.0; python_version == "2.6" or python_version == "2.7" in /usr/local/lib/python2.7/site-packages (from s3transfer<0.2.0,>=0.1.10->boto3>=1.3.0->lambda-deploy)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python2.7/site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.5.0,>=1.4.1->boto3>=1.3.0->lambda-deploy)
then i ran python deploy-to-lambda.py
Media-Center:kodi-alexa-master Media$ python deploy-to-lambda.py
2017-01-10 09:53:19:INFO:botocore.vendored.requests.packages.urllib3.connectionpool: Starting new HTTP connection (1): 169.254.169.254
Traceback (most recent call last):
File "/usr/local/bin/lambda-deploy", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/lambda_deploy/lambda_deploy.py", line 360, in main
name=options.name
File "/usr/local/lib/python2.7/site-packages/lambda_deploy/lambda_deploy.py", line 75, in __init__
self.client = boto3.client('lambda')
File "/usr/local/lib/python2.7/site-packages/boto3/__init__.py", line 83, in client
return _get_default_session().client(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/boto3/session.py", line 263, in client
aws_session_token=aws_session_token, config=config)
File "/usr/local/lib/python2.7/site-packages/botocore/session.py", line 828, in create_client
client_config=config, api_version=api_version)
File "/usr/local/lib/python2.7/site-packages/botocore/client.py", line 69, in create_client
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/usr/local/lib/python2.7/site-packages/botocore/client.py", line 222, in _get_client_args
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/usr/local/lib/python2.7/site-packages/botocore/args.py", line 44, in get_client_args
endpoint_url, is_secure, scoped_config)
File "/usr/local/lib/python2.7/site-packages/botocore/args.py", line 101, in compute_client_args
service_name, region_name, endpoint_url, is_secure)
File "/usr/local/lib/python2.7/site-packages/botocore/client.py", line 295, in resolve
service_name, region_name)
File "/usr/local/lib/python2.7/site-packages/botocore/regions.py", line 122, in construct_endpoint
partition, service_name, region_name)
File "/usr/local/lib/python2.7/site-packages/botocore/regions.py", line 135, in _endpoint_for_partition
raise NoRegionError()
botocore.exceptions.NoRegionError: You must specify a region.
but when i go back to aws my function isn't there, so something has gone wrong. i saved the .env file with text edit is that ok?