aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap
CloudFormation helper scripts do not run on Python 3.10 (Ubuntu 22.04)
- Dominant language
- No language data
- Stars
- 1.1k
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
### Resource Name
AWS::CloudFormation::Init
### Details
Problem running it on Ubuntu22.04l. Not working running on python3.10
Error
cfnbootstrap/packages/requests/cookies.py", line 159, in
class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'
Some solutions discussed at https://www.datasciencelearner.com/attributeerror-module-collections-has-no-attribute-mutablemapping/
"Attributeerror: module collections has no attribute mutablemapping error is because of internal code changes in the 3.10 version. If you are using any syntax related to the collections module which is compatible with the 3.9 version over the python 3.10-based python environment, you will get this error."
Related to https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/151
Installed using "pip3 install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz"
Contributor guide
Research direction
Start with cfnbootstrap/packages/requests/cookies.py and reproduce the reported installation and execution on Ubuntu 22.04 with Python 3.10 using the published aws-cfn-bootstrap package. Confirm that AWS::CloudFormation::Init runs without the collections.MutableMapping AttributeError; no test file is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100