Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error importing JIRA python library during runtime

soumya awasthi July 15, 2024

Dear Community,

I have facing issue while running an import statement - from jira import JIRA

I have module installed. I have no compilation error in file (file name - util.py)

When I run this statement individually using SHIFT+Enter, it runs fine without error.

But when I run a file I get error - 

 

Traceback (most recent call last):
  File "<filepath>\util.py", line 3, in <module>
    from jira import JIRA
ModuleNotFoundError: No module named 'jira'
Can you please help. Thank you.

2 answers

0 votes
soumya awasthi July 16, 2024

This is resolved by deleting a virtual environment. Creating new one and installing library again.

0 votes
Mohamed Benziane
Community Champion
July 15, 2024

Can you make sure that you already have installed the jira module. Are you using an virtual environment in python ?

soumya awasthi July 16, 2024

Hi @Mohamed Benziane Yes, I have already installed the module and dependencies. I am using a virtual environment which is active.

 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events