Python Forum
ERROR: importing desired module
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ERROR: importing desired module
#1
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?
Larz60+ write Apr-05-2021, 10:20 PM:
When posting errors, please use bbcode error tags, Refer to BBCode.
Also, post the entire and unaltered error traceback as it contains valuable debugging information.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  importing variables from module 8376459 1 266 Feb-18-2024, 02:24 PM
Last Post: deanhystad
  no module named 'docx' when importing docx MaartenRo 1 813 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  pyarrow error when importing pandas sravva 1 921 Jun-06-2023, 05:09 PM
Last Post: snippsat
  Json filter is not capturing desired key/element mrapple2020 1 1,113 Nov-24-2022, 09:22 AM
Last Post: ibreeden
  My code displays too much output when importing class from a module lil_e 4 1,139 Oct-22-2022, 12:56 AM
Last Post: Larz60+
  how can I display only desired items? 3lnyn0 5 2,014 Dec-25-2021, 06:49 PM
Last Post: menator01
  Importing module in jupyter Noteboook ajitnayak1987 0 1,733 Jun-04-2021, 12:26 PM
Last Post: ajitnayak1987
  Not rounding to desired decimal places? pprod 2 2,534 Mar-05-2021, 11:11 AM
Last Post: pprod
Bug Error while importing numpy Erfan 3 3,264 Nov-28-2020, 07:49 AM
Last Post: bowlofred
  Why this code not getting desired output ? MDRI 2 2,514 Sep-18-2020, 02:11 AM
Last Post: MDRI

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020