ImportError: failed to find libmagic
msampathkumar opened this issue · 4 comments
msampathkumar commented
I am using macbook & anaconda.
SDS-bash3.2$ pip install libmagic
Collecting libmagic
Downloading libmagic-1.0.tar.gz
Building wheels for collected packages: libmagic
Running setup.py bdist_wheel for libmagic ... done
Stored in directory: /Users/sampathm/Library/Caches/pip/wheels/11/e2/27/5ce37bee3102fa60cb766782797f241132903639ce25d849e9
Successfully built libmagic
Installing collected packages: libmagic
Successfully installed libmagic-1.0
SDS-bash3.2$ python Index.py
initialised
modules retreived.
Traceback (most recent call last):
File "Index.py", line 1, in <module>
from Stephanie.boot import Boot
File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/boot.py", line 2, in <module>
from Stephanie.activity import Activity
File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/activity.py", line 2, in <module>
from Stephanie.commander import Commander
File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/commander.py", line 1, in <module>
from Stephanie.AudioManager.audio_manager import AudioManager
File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/AudioManager/audio_manager.py", line 1, in <module>
from Stephanie.AudioManager.audio_getter import AudioGetter
File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/AudioManager/audio_getter.py", line 3, in <module>
from Stephanie.TextManager.speaker import Speaker
File "/Users/sampathm/devbox/opensource/stephanie-va/Stephanie/TextManager/speaker.py", line 2, in <module>
import eyed3
File "/Users/sampathm/miniconda3/lib/python3.6/site-packages/eyed3/__init__.py", line 35, in <module>
from .utils.log import log # noqa
File "/Users/sampathm/miniconda3/lib/python3.6/site-packages/eyed3/utils/__init__.py", line 27, in <module>
import magic
File "/Users/sampathm/miniconda3/lib/python3.6/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
msampathkumar commented
Solution that worked for me
SDS-bash3.2$ brew install libmagic
SlapBot commented
hey @msampathkumar can you list some required deps you needed to install in a formatted way and send a PR to the repo? like the linux one already available at: https://github.com/SlapBot/stephanie-va/edit/master/README.md
baconface11 commented
I'm trying on windows as I get the same error, but I can't use brew. Any solutions?
Cash120 commented
Can confirm not working for windows.
pip install libmagic
downloaded libmagic, but magic.py is still missing and the command cannot be completed.