Accessing Jira with Python without importing magic library?

Hi all,


I'm trying to have access to JIRA using Python. I've found this webpage with a good explanation of how to do it including the needed libraries and the code itself.

The problem is that I'm trying to do this in windows 7 professional and I can't import the magic library. Using the terminal I've installed libmagic library and filemagic library using pip install . But when I open Python with the terminal and I try to import magic library it gives me this error:

>>> import magic
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\magic\", line 18, in <module>
from magic.identify import Magic, MagicError
File "C:\Python27\lib\site-packages\magic\", line 16, in <module>
from magic import api
File "C:\Python27\lib\site-packages\magic\", line 22, in <module>
raise ImportError('Unable to find magic library')
ImportError: Unable to find magic library

I've installed all the other libraries that I needed but I can't use the first line of the code: from jira.client import JIRA

because it gives me this error: ImportError: No module named jira.client.


I know the problem is that it needs the magic library because I've installed all the libraries in Linux and it works. 

Anyone have any idea of how I can solve this problem?

Thanks in Advance.

Enric Justiniano



1 answer

This seems like a bug, so use the bug tracker to report it (if is not already reported)

Sadly, I cannot help you too much as I do not have time to support Windows, I am already too busy supporting the Linux and OS X platforms.

Any patch would be welcome. 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,338 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot