{"action":"created","issue":{"url":"https://api.github.com/repos/Miserlou/lambda-packages/issues/27","repository_url":"https://api.github.com/repos/Miserlou/lambda-packages","labels_url":"https://api.github.com/repos/Miserlou/lambda-packages/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/Miserlou/lambda-packages/issues/27/comments","events_url":"https://api.github.com/repos/Miserlou/lambda-packages/issues/27/events","html_url":"https://github.com/Miserlou/lambda-packages/issues/27","id":187891296,"number":27,"title":"MemoryError when installing latest lambda-packages","user":{"login":"robertdfrench","id":18403,"avatar_url":"https://avatars.githubusercontent.com/u/18403?v=3","gravatar_id":"","url":"https://api.github.com/users/robertdfrench","html_url":"https://github.com/robertdfrench","followers_url":"https://api.github.com/users/robertdfrench/followers","following_url":"https://api.github.com/users/robertdfrench/following{/other_user}","gists_url":"https://api.github.com/users/robertdfrench/gists{/gist_id}","starred_url":"https://api.github.com/users/robertdfrench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertdfrench/subscriptions","organizations_url":"https://api.github.com/users/robertdfrench/orgs","repos_url":"https://api.github.com/users/robertdfrench/repos","events_url":"https://api.github.com/users/robertdfrench/events{/privacy}","received_events_url":"https://api.github.com/users/robertdfrench/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-08T03:14:49Z","updated_at":"2016-11-11T23:43:20Z","closed_at":"2016-11-11T23:43:20Z","body":"Is anyone else running in to this?\r\n\r\nI am trying to install lambda-packages with pip 9.0.1 in a py2.7.12 virtualenv on amazon linux and getting a MemoryError. This is a small box with half a gig of ram, but I am not running any other processes. If no one else is seeing this, I will just chalk it up to cheap hardware.\r\n\r\n```\r\n(.venv)[ec2-user@ec2-dev-box dope-ass-lambda-app]$ pip install lambda-packages\r\nCollecting lambda-packages\r\n  Downloading lambda_packages-0.10.0-py2-none-any.whl (56.1MB)\r\n    99% |############################### | 56.1MB 50.1MB/s eta 0:00:01Exception:\r\nTraceback (most recent call last):\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/basecommand.py\", line 215, in main\r\n    status = self.run(options, args)\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/commands/install.py\", line 324, in run\r\n    requirement_set.prepare_files(finder)\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/req/req_set.py\", line 380, in prepare_files\r\n    ignore_dependencies=self.ignore_dependencies))\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/req/req_set.py\", line 620, in _prepare_file\r\n    session=self.session, hashes=hashes)\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/download.py\", line 821, in unpack_url\r\n    hashes=hashes\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/download.py\", line 659, in unpack_http_url\r\n    hashes)\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/download.py\", line 882, in _download_http_url\r\n    _download_url(resp, link, content_file, hashes)\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/download.py\", line 603, in _download_url\r\n    hashes.check_against_chunks(downloaded_chunks)\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/utils/hashes.py\", line 46, in check_against_chunks\r\n    for chunk in chunks:\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/download.py\", line 571, in written_chunks\r\n    for chunk in chunks:\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/utils/ui.py\", line 139, in iter\r\n    for x in it:\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/download.py\", line 560, in resp_read\r\n    decode_content=False):\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py\", line 357, in stream\r\n    data = self.read(amt=amt, decode_content=decode_content)\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py\", line 314, in read\r\n    data = self._fp.read(amt)\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py\", line 63, in read\r\n    self._close()\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py\", line 50, in _close\r\n    self.__callback(self.__buf.getvalue())\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/controller.py\", line 275, in cache_response\r\n    self.serializer.dumps(request, response, body=body),\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.py\", line 55, in dumps\r\n    \"body\": _b64_encode_bytes(body),\r\n  File \"/home/ec2-user/dope-ass-lambda-app/.venv/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.py\", line 12, in _b64_encode_bytes\r\n    return base64.b64encode(b).decode(\"ascii\")\r\nMemoryError\r\n```"},"comment":{"url":"https://api.github.com/repos/Miserlou/lambda-packages/issues/comments/260081403","html_url":"https://github.com/Miserlou/lambda-packages/issues/27#issuecomment-260081403","issue_url":"https://api.github.com/repos/Miserlou/lambda-packages/issues/27","id":260081403,"user":{"login":"robertdfrench","id":18403,"avatar_url":"https://avatars.githubusercontent.com/u/18403?v=3","gravatar_id":"","url":"https://api.github.com/users/robertdfrench","html_url":"https://github.com/robertdfrench","followers_url":"https://api.github.com/users/robertdfrench/followers","following_url":"https://api.github.com/users/robertdfrench/following{/other_user}","gists_url":"https://api.github.com/users/robertdfrench/gists{/gist_id}","starred_url":"https://api.github.com/users/robertdfrench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertdfrench/subscriptions","organizations_url":"https://api.github.com/users/robertdfrench/orgs","repos_url":"https://api.github.com/users/robertdfrench/repos","events_url":"https://api.github.com/users/robertdfrench/events{/privacy}","received_events_url":"https://api.github.com/users/robertdfrench/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T23:43:20Z","updated_at":"2016-11-11T23:43:20Z","body":"Yup! It looks related to https://github.com/pypa/pip/issues/2984, and the workaround suggested by those folks also worked for me. Thanks @Miserlou "}}
{"actor":{"display_login":"robertdfrench"}}