I am trying to use python-magic package, a wrapper class for libmagic.
I install using "pip install python-magic" but when I test it:
import magic
ms = magic.open(magic.MAGIC_NONE)
ms.load()
it shows that module' object has no attribute 'open'. I searched on google and somebody said that one cause is I do not have a __init__.py file. so I checked my peronsal site-packages directory. I found magic.py, magic.pyc, and a folder python_magic-0.4.3-py2.7.egg-info which just include some text files.
How can I get the __init__.py file? I checked other packages installed, some of them do have such a file.
Thanks.