The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Error importing JIRA python library during runtime

soumya awasthi
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
soumya awasthi
Contributor
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
Contributor
July 16, 2024

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