Dylan Grove
Dylan Grove

Reputation: 523

pip installing eyeD3 module. Failed to find libmagic

Trying to install eyed3 but it's giving me this error:

>>> import eyed3
Traceback (most recent call last):
  File "<pyshell#8>", line 1, in <module>
    import eyed3
  File "C:\Users\Dylan\AppData\Local\Programs\Python\Python35-32\lib\site-packages\eyed3\__init__.py", line 35, in <module>
    from .utils.log import log                                            # noqa
  File "C:\Users\Dylan\AppData\Local\Programs\Python\Python35-32\lib\site-packages\eyed3\utils\__init__.py", line 27, in <module>
    import magic
  File "C:\Users\Dylan\AppData\Local\Programs\Python\Python35-32\lib\site-packages\magic.py", line 176, in <module>
    raise ImportError('failed to find libmagic.  Check your installation')
ImportError: failed to find libmagic.  Check your installation

Here's the pip install: pip install

I tried to uninstall with pip and delete all the eyed3 files, then re-install and it still gave the same error. It also does the same thing with easy_install.

Upvotes: 13

Views: 8072

Answers (3)

Acid Magic
Acid Magic

Reputation: 397

On Windows

You'll need DLLs for libmagic. @julian-r has uploaded a version of this project that includes binaries to pypi: https://pypi.python.org/pypi/python-magic-bin/0.4.14

pip install python-magic-bin==0.4.14

Works for me.

Upvotes: 22

Rodolfo Salido
Rodolfo Salido

Reputation: 41

I fixed it by installing libmagic with this command brew install libmagic

Upvotes: 4

Gustavo Magalh&#227;es
Gustavo Magalh&#227;es

Reputation: 330

You need to install libmagic before you install eye3d.

Here is a link to the git. https://github.com/ahupp/python-magic#dependencies

You can use this to install it:

pip install python-magic

Upvotes: 1

Related Questions