Python Forum
ERROR: importing desired module - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: ERROR: importing desired module (/thread-33191.html)



ERROR: importing desired module - mbgamer28 - Apr-05-2021

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?