Python Forum

Full Version: ERROR: importing desired module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Folks! I have written code to fetch secrets from Azure KeyVault (no knowledge of azure is required for this issue Smile ). For this I installed azure-keyvault-secrets package. So after writing code for the same I am getting this error:

[Image: Capture_xulrrh.png]

I added print(sys.path) to see the paths interpreter is looking for the package. So what I found is interesting, say we have two paths A and B. 'A' contains package Azure.keyvault.secrets but 'B' contains only azure.keyvault. But weirdly python interpreter is looking for package only in path 'B' and not in 'A'. So I coped paste secrets folder from 'A' to 'B' in azure/keyvault folder and code is working fine. Can anybody help me with this issue?