2016-12-16, 16:42
Can anyone help with deciphering whats the issue is with my install on a rpi2?
Have pip installed all the requirements and tried both sudo and non sudo on python deploy-to-lambda.py
Code:
pi@raspberrypi ~/kodi-alexa $ sudo python deploy-to-lambda.py
2016-12-16 14:37:03:INFO:botocore.credentials: Found credentials in environment variables.
2016-12-16 14:37:04:INFO:lambda_deploy: Packaging lambda kodi-alexa
2016-12-16 14:37:04:WARNING:lambda_deploy: A .env file exists in your Lambda directory - be careful that it does not contain any secrets you don't want uploaded to AWS!
2016-12-16 14:37:04:WARNING:lambda_deploy: Skipping inclusion of of .env file - use LAMBDA_ENV_VARS instead (see documentation for more information)
2016-12-16 14:38:43:INFO:botocore.vendored.requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): lambda.us-east-1.amazonaws.com
2016-12-16 14:38:44:INFO:lambda_deploy: Adding new kodi-alexa lambda
Traceback (most recent call last):
File "/usr/local/bin/lambda-deploy", line 9, in <module>
load_entry_point('lambda-deploy==0.1.2', 'console_scripts', 'lambda-deploy')()
File "/usr/local/lib/python2.7/dist-packages/lambda_deploy/lambda_deploy.py", line 376, in main
method()
File "/usr/local/lib/python2.7/dist-packages/lambda_deploy/lambda_deploy.py", line 215, in deploy
Publish=True
File "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 251, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 513, in _make_api_call
api_params, operation_model, context=request_context)
File "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 566, in _convert_to_request_dict
api_params, operation_model)
File "/usr/local/lib/python2.7/dist-packages/botocore/validate.py", line 272, in serialize_to_request
operation_model)
File "/usr/local/lib/python2.7/dist-packages/botocore/serialize.py", line 416, in serialize_to_request
serialized, shape, shape_members)
File "/usr/local/lib/python2.7/dist-packages/botocore/serialize.py", line 461, in _serialize_payload
partitioned['body_kwargs'], shape)
File "/usr/local/lib/python2.7/dist-packages/botocore/serialize.py", line 527, in _serialize_body_params
return json.dumps(serialized_body).encode(self.DEFAULT_ENCODING)
MemoryError
Downloading/unpacking requests (from -r /home/pi/kodi-alexa/kodi-alexa/requirements.txt (line 1))
Running setup.py egg_info for package requests
warning: no files found matching 'test_requests.py'
Downloading/unpacking gunicorn (from -r /home/pi/kodi-alexa/kodi-alexa/requirements.txt (line 2))
Running setup.py egg_info for package gunicorn
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
Downloading/unpacking yaep (from -r /home/pi/kodi-alexa/kodi-alexa/requirements.txt (line 3))
Downloading yaep-0.0.6.tar.gz
Running setup.py egg_info for package yaep
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
Downloading/unpacking pycountry (from -r /home/pi/kodi-alexa/kodi-alexa/requirements.txt (line 4))
Running setup.py egg_info for package pycountry
warning: no previously-included files matching 'src/pycountry' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Downloading/unpacking pytz (from -r /home/pi/kodi-alexa/kodi-alexa/requirements.txt (line 5))
Running setup.py egg_info for package pytz
Downloading/unpacking fuzzywuzzy (from -r /home/pi/kodi-alexa/kodi-alexa/requirements.txt (line 6))
Downloading fuzzywuzzy-0.14.0.tar.gz
Running setup.py egg_info for package fuzzywuzzy
Installing collected packages: requests, gunicorn, yaep, pycountry, pytz, fuzzywuzzy
Found existing installation: requests 0.12.1
Uninstalling requests:
Successfully uninstalled requests
Running setup.py install for requests
warning: no files found matching 'test_requests.py'
Running setup.py install for gunicorn
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
SyntaxError: ('invalid syntax', ('/tmp/tmpzRVaV3/lib/python/gunicorn/workers/_gaiohttp.py', 84, 26, ' yield from self.wsgi.close()\n'))
Installing gunicorn_paster script to /tmp/tmpzRVaV3/bin
Installing gunicorn script to /tmp/tmpzRVaV3/bin
Installing gunicorn_django script to /tmp/tmpzRVaV3/bin
Found existing installation: yaep 0.0.6
Uninstalling yaep:
Successfully uninstalled yaep
Running setup.py install for yaep
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
Running setup.py install for pycountry
warning: no previously-included files matching 'src/pycountry' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Running setup.py install for pytz
Running setup.py install for fuzzywuzzy
Successfully installed requests gunicorn yaep pycountry pytz fuzzywuzzy
Cleaning up...
Have pip installed all the requirements and tried both sudo and non sudo on python deploy-to-lambda.py