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

Compatibility with python3 #12

Closed
rishavsharma9802 opened this issue Mar 24, 2021 · 2 comments
Closed

Compatibility with python3 #12

rishavsharma9802 opened this issue Mar 24, 2021 · 2 comments

Comments

@rishavsharma9802
Copy link

Getting the following error while running it inside a kubernetes pod or even as a container

Traceback (most recent call last):
File "/usr/local/bin/aws-quota-checker", line 7, in
from aws_quota.cli import cli
File "/usr/local/lib/python3.7/site-packages/aws_quota/cli.py", line 2, in
from aws_quota.utils import get_account_id
File "/usr/local/lib/python3.7/site-packages/aws_quota/utils.py", line 6, in
def get_account_id(session: boto3.Session) -> str:
File "/usr/lib64/python3.7/functools.py", line 490, in lru_cache
raise TypeError('Expected maxsize to be an integer or None')
TypeError: Expected maxsize to be an integer or None

@brennerm
Copy link
Owner

Hey @kungfupanda792, thanks for reporting. Seems like that's an Python 3.7 issue cause the functools interface changed a bit in Python 3.8.

Will fix it in the next days. Until then you can use Python 3.8 if that's an option for you.

@brennerm
Copy link
Owner

Issue should be fixed with version 1.4.1.

BTW here are the changes that were necessary. ;)

-@functools.lru_cache                                                                                                                                                                                                            
+@functools.lru_cache()

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