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

Unable to update azure sdk for python3 in automation #79

Open
jbouzekri opened this issue Mar 13, 2021 · 6 comments
Open

Unable to update azure sdk for python3 in automation #79

jbouzekri opened this issue Mar 13, 2021 · 6 comments

Comments

@jbouzekri
Copy link

I tried to use the import python3 package script to update azure mgmt libraries.

Everything works fine however when I install adal, it installs a new version of cryptographie and now, I am unable to login by token because of the error :

The version of cryptography does not match the loaded shared object. This can happen if you have multiple copies of cryptography installed in your Python path. Please try creating a new virtual environment to resolve this issue. Loaded python version: 3.4.6, shared object version: b'2.8'
@alkhos
Copy link

alkhos commented Mar 19, 2021

+1 on this issue
Appreciate if you can comment on it

@bgmonroe
Copy link

+1 too. Until the package management is improved (a lot), Python is effectively unusable in AA.

@sHooPmyWooP
Copy link

+1, do you have a workaround to share?

@jbouzekri
Copy link
Author

@sHooPmyWooP : I don't have a workaround to use the AzureRunAsConnection. So I fallbacked to ClientSecretCredential for the moment.

@sHooPmyWooP
Copy link

For me the broken dependencies were

  • cryptography
  • pyjwt

As a quick and dirty fix, I changed my requirements, to match the automation accounts packages:

  • certifi==2019.11.28
  • cffi==1.13.2
  • chardet==3.0.4
  • charset-normalizer==2.0.4
  • cryptography==2.8
  • PyJWT==1.7.1
  • pyOpenSSL==19.1.0

This worked, at least for my requirements.

Not using the provided package import runbook, but the REST endpoint.

@palten08
Copy link

Looks like Microsoft has yet to address this, as I've just encountered this and couldn't find anything helpful anywhere in regards to even working around it temporarily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants