-
Notifications
You must be signed in to change notification settings - Fork 419
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
v22.1.0 ERROR: deprecated() got an unexpected keyword argument 'name' #1154
Comments
Same issue spotted with awscli==1.22.24 |
See #1151 |
Got this after ArchLinux upgrade: |
This error cannot occur if you're actually using pyopenssl 22.1, so despite upgrading your OS package you're using an older version somewhere. |
okay turns out i had |
I too facing same issue, any solutions? |
We've downgraded as a temporary workaround in case it helps anyone else:
|
This is not a bug in pyOpenSSL 22.1. pyOpenSSL 22.1 unambiguously specifies a dependency on Lines 97 to 100 in d7e539c
I'm not sure how y'all end up installing pyOpenSSL 22.1 without also installing a compatible version of cryptography, but it's definitely not a bug in pyOpenSSL but a problem with how you install/upgrade your Python packages. |
I can confirm that
breaks awscli on MacOS.
This is the error:
|
This can happen if you install incompatible versions of pyOpenSSL and cryptography in separate pip instructions like
During the second install transaction, you will see
Had you installed both in a single instruction, you would have run into an installation error instead
So that's it:
|
@n1ngu
pyOpenSSL uninstalled:
pyOpenSSL installed, what automatically installs the right version of cryptography
awscli still broken with cryptography-38.0.1 and pyOpenSSL-22.1.0:
|
I'm facing the same error. I tried to uninstall the packages like examples above but the error is also happening when I use pip3 install/uninstall. I'm using ubuntu 20.04.5. |
These issues are almost certainly caused by version mismatches. For example, in the stack trace provided by @nicolamarangoni AWS CLI is loading libraries out of at least two different Unfortunately, this doesn't fail with the way homebrew has this packaged (since the awscli site-packages are not entirely isolated) and so it imports There are a few fixes possible here, listed in order of how robust they would be
Any of those options will "fix" this particular problem, but only the first will prevent any possible problems in the future. However, that one is also likely to be the most challenging so I'd suggest folks affected by this who know they need pyOpenSSL pursue both option 1 and 3. |
Homebrew guys are informed and will correct their awscli distribution. This fixes the issue temporarily:
|
I have highlighted issue here Even |
Same here, one of the apache airflow provider packages I use to set up a managed airflow locally with docker, seems to install OpenSSL==22.1.0. |
Thank you! |
- Due to an upstream issue pyca/pyopenssl#1154 downgrading the version to v22.0.0 - This fixes the issue during installation time "ERROR: deprecated() got an unexpected keyword argument 'name'" Change-Id: I694e3c4366c2455c683878271ff0079b601327be Signed-off-by: Ankit Jain <[email protected]> Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/18672 Tested-by: Michelle Wang <[email protected]> Reviewed-by: Tapas Kundu <[email protected]>
If you cannot run
|
I applied one by one all solution but not resolved same error faced
|
The text was updated successfully, but these errors were encountered: