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

Cloudlift is Breaking in Python 3.12 #162

Open
tasnimzotder opened this issue Dec 20, 2024 · 0 comments
Open

Cloudlift is Breaking in Python 3.12 #162

tasnimzotder opened this issue Dec 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tasnimzotder
Copy link
Collaborator

tasnimzotder commented Dec 20, 2024

Issue Description

Cloudlift fails to run on Python 3.12 due to dependency issues related to the removed distutils module. The error manifests in two ways:

  1. Initially fails with six.moves import error.
  2. After removing six dependency, fails with missing distutils module error.

Root Cause

Steps to Reproduce

  1. Create a Python 3.12 virtual environment
  2. Run pip install .
  3. Execute cloudlift --version

image

Now if we remove six==1.10.0 from the dependencies, and then reinstall and run cloudlift version check, we get:

image

Solution

Add setuptools as a dependency, which provides the removed distutils functionality. With updated requirements.txt:

image

The changed requirements.txt file should look like the following:

boto3==1.34.111  
awscli==1.32.111  
certifi==2017.7.27.1
cfn-flip==1.0.3
chardet==3.0.4
click==6.7
colorclass==2.2.2
dictdiffer==0.7.0
docutils==0.14
future==0.16.0
futures==3.1.1
idna==2.6
jmespath==0.9.3
jsonschema==2.6.0
python-dateutil==2.8.2
requests>=2.20.0
stringcase==1.0.6
terminaltables==3.1.0
troposphere==4.5.2
awacs==2.4.0
botocore==1.34.111
setuptools==75.6.0 # Added to provide distutils functionality

# Removed: six==1.10.0
@tasnimzotder tasnimzotder added the bug Something isn't working label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant