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 Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

905 views 3 9
Read article

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