aws-samples / aws-samples/amazon-orglevels3inventorycontrolplane
Version issue with boto3 and botocore
- Dominant language
- Python
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
I carried out these three commands:
```
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
python3 createAttachPolicyToDestAcct.py
```
and then got this error:
```
Traceback (most recent call last):
File "/Users/awsrhys/Documents/dcs/amazon-orglevels3inventorycontrolplane/createAttachPolicyToDestAcct.py", line 1, in
import boto3
File "/Users/awsrhys/Documents/dcs/amazon-orglevels3inventorycontrolplane/.venv/lib/python3.13/site-packages/boto3/__init__.py", line 16, in
from boto3.session import Session
File "/Users/awsrhys/Documents/dcs/amazon-orglevels3inventorycontrolplane/.venv/lib/python3.13/site-packages/boto3/session.py", line 17, in
import botocore.session
File "/Users/awsrhys/Documents/dcs/amazon-orglevels3inventorycontrolplane/.venv/lib/python3.13/site-packages/botocore/session.py", line 29, in
import botocore.configloader
File "/Users/awsrhys/Documents/dcs/amazon-orglevels3inventorycontrolplane/.venv/lib/python3.13/site-packages/botocore/configloader.py", line 19, in
from botocore.compat import six
File "/Users/awsrhys/Documents/dcs/amazon-orglevels3inventorycontrolplane/.venv/lib/python3.13/site-packages/botocore/compat.py", line 33, in
from botocore.vendored.six.moves import http_client
ModuleNotFoundError: No module named 'botocore.vendored.six.moves'
```
So I updated requirements to:
```
boto3==1.37.19
botocore==1.37.19
```
and it works OK:
```
pip3 install -r requirements.txt
createAttachPolicyToDestAcct.py
```
Contributor guide
Assessment
This issue has not been assessed yet.