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
  how can I display only desired items? 3lnyn0 5 295 Dec-25-2021, 06:49 PM
Last Post: menator01
  Importing module in jupyter Noteboook ajitnayak1987 0 760 Jun-04-2021, 12:26 PM
Last Post: ajitnayak1987
  Not rounding to desired decimal places? pprod 2 1,090 Mar-05-2021, 11:11 AM
Last Post: pprod
Bug Error while importing numpy Erfan 3 1,797 Nov-28-2020, 07:49 AM
Last Post: bowlofred
  Why this code not getting desired output ? MDRI 2 1,380 Sep-18-2020, 02:11 AM
Last Post: MDRI
  showing only desired part of a plot grknkilicaslan 1 1,019 Jul-10-2020, 03:51 PM
Last Post: Marbelous
  importing module - not working jdhamblett 3 1,336 Jun-22-2020, 07:33 PM
Last Post: jdhamblett
  importing same python library in multiple custom module escape_freedom13 6 1,869 May-10-2020, 07:01 PM
Last Post: escape_freedom13
  vlc module error pythonprogrammer 1 1,277 Apr-23-2020, 04:16 AM
Last Post: Larz60+
  Importing module from a package results in import error goghvv 2 1,082 Mar-27-2020, 07:13 PM
Last Post: goghvv

Forum Jump:

User Panel Messages

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