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

c7n Dependency Issues With Other Paackages Like c7n-org and c7n-mailer #9385

Closed
KISStian opened this issue Mar 26, 2024 · 3 comments
Closed
Labels

Comments

@KISStian
Copy link
Contributor

Describe the bug

While attempting to test the latest version of Custodian in a new Python virtual environment, issues are encountered when installing secondary packages like c7n-org and c7n-mailer. Version 0.9.35 installs successfully. If c7n-org is installed, c7n is downgraded to 0.9.34. The version of c7n-org installed is 0.6.33. If c7n-mailer is installed after the initial install of c7n, the following error is encountered:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
c7n 0.9.35 requires boto3==1.34.55; python_version >= "3.8" and python_version < "4.0", but you have boto3 1.34.21 which is incompatible.
c7n 0.9.35 requires botocore==1.34.55; python_version >= "3.8" and python_version < "4.0", but you have botocore 1.34.21 which is incompatible.
c7n 0.9.35 requires jsonschema==4.21.1; python_version >= "3.8" and python_version < "4.0", but you have jsonschema 4.21.0 which is incompatible.
c7n 0.9.35 requires python-dateutil==2.9.0.post0; python_version >= "3.8" and python_version < "4.0", but you have python-dateutil 2.8.2 which is incompatible.
c7n 0.9.35 requires rpds-py==0.18.0; python_version >= "3.8" and python_version < "4.0", but you have rpds-py 0.17.1 which is incompatible.

What did you expect to happen?

All three packages will install successfully and be at the latest version (c7n==0.9.35, c7n-org==0.6.34, and c7n-mailer==0.6.34).

Cloud Provider

Amazon Web Services (AWS)

Cloud Custodian version and dependency information

Custodian:   0.9.34
Python:      3.11.7 (main, Dec  4 2023, 18:10:11) [Clang 15.0.0 (clang-1500.1.0.2.5)]
Platform:    posix.uname_result(sysname='Darwin', nodename='DI3NC47XP2D73', release='23.4.0', version='Darwin Kernel Version 23.4.0: Wed Feb 21 21:45:49 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6020', machine='arm64')
Using venv:  True
Docker: False
Installed: 

argcomplete==3.2.1
attrs==23.2.0
boto3==1.34.21
botocore==1.34.21
docutils==0.18.1
importlib-metadata==6.11.0
jmespath==1.0.1
jsonschema==4.21.0
jsonschema-specifications==2023.12.1
python-dateutil==2.8.2
pyyaml==6.0.1
referencing==0.31.1
rpds-py==0.17.1
s3transfer==0.10.0
six==1.16.0
tabulate==0.9.0
urllib3==1.26.18
zipp==3.17.0

Policy

No response

Relevant log/traceback output

No response

Extra information or context

No response

@kapilt
Copy link
Collaborator

kapilt commented Mar 26, 2024

Yeah I noticed this earlier today, it looks like some of the sub packages are missing their releases

@ajkerrigan
Copy link
Member

Can you give this a shot again when you get a chance? It looked like we had the latest packages built but not everything got uploaded to PyPI. A few (including c7n-org and c7n-mailer) have the latest releases published as of a few minutes ago.

@KISStian
Copy link
Contributor Author

All looks good now. Thanks!

@kapilt kapilt closed this as completed Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants