Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not run #31

Open
tomchiverton opened this issue May 5, 2023 · 1 comment
Open

Does not run #31

tomchiverton opened this issue May 5, 2023 · 1 comment

Comments

@tomchiverton
Copy link

16:26 $ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: boto3 in /home/tchiverton/.local/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (1.24.88)
Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in /home/tchiverton/.local/lib/python3.10/site-packages (from boto3->-r requirements.txt (line 1)) (0.10.0)
Requirement already satisfied: botocore<1.28.0,>=1.27.88 in /home/tchiverton/.local/lib/python3.10/site-packages (from boto3->-r requirements.txt (line 1)) (1.27.96)
Requirement already satisfied: s3transfer<0.7.0,>=0.6.0 in /home/tchiverton/.local/lib/python3.10/site-packages (from boto3->-r requirements.txt (line 1)) (0.6.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/lib/python3/dist-packages (from botocore<1.28.0,>=1.27.88->boto3->-r requirements.txt (line 1)) (2.8.1)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /usr/lib/python3/dist-packages (from botocore<1.28.0,>=1.27.88->boto3->-r requirements.txt (line 1)) (1.26.5)
~/workspace/clear-lambda-storage [master|✔ ] 
16:26 $ python clear_lambda_storage.py  --profile-id serverless-dev --num-to-keep 10
  File "clear_lambda_storage.py", line 68
    yield lambda_function
SyntaxError: 'return' with argument inside generator

Ubuntu 22.04 LTS

@ranrib
Copy link
Member

ranrib commented May 5, 2023

I could not reproduce it. Maybe you can get to here:
https://github.com/epsagon/clear-lambda-storage/blob/master/clear_lambda_storage.py#L62

And comment out this line, and try again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants