yask123 / Instant-Music-Downloader

🎷 Downloads Music From The Web
http://iyask.me/Instant-Music-Downloader/
1.42k stars 160 forks source link

magic dependency fail? #136

Open reagle opened 5 years ago

reagle commented 5 years ago
╰─➤  pip3 install instantmusic
Collecting instantmusic
Requirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (from instantmusic) (2.21.0)
Requirement already satisfied: youtube-dl in /usr/local/lib/python3.7/site-packages (from instantmusic) (2019.5.20)
Requirement already satisfied: eyed3 in /usr/local/lib/python3.7/site-packages (from instantmusic) (0.8.10)
Requirement already satisfied: BeautifulSoup4 in /usr/local/lib/python3.7/site-packages (from instantmusic) (4.7.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->instantmusic) (2018.11.29)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->instantmusic) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->instantmusic) (2.8)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->instantmusic) (1.24.1)
Requirement already satisfied: python-magic in /usr/local/lib/python3.7/site-packages (from eyed3->instantmusic) (0.4.15)
Requirement already satisfied: six in /usr/local/lib/python3.7/site-packages (from eyed3->instantmusic) (1.12.0)
Requirement already satisfied: soupsieve>=1.2 in /usr/local/lib/python3.7/site-packages (from BeautifulSoup4->instantmusic) (1.7.3)
Installing collected packages: instantmusic
Successfully installed instantmusic-2.2
╭─reagle@hom ~
╰─➤  instantmusic -h
/usr/local/lib/python3.7/site-packages/magic/__pycache__/_cffi__x7681a35x54cebdac.c:208:10: fatal error:
      'magic.h' file not found
#include <magic.h>
         ^~~~~~~~~
1 error generated.
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'clang' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/cffi/ffiplatform.py", line 55, in _build
    dist.run_command('build_ext')
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
    depends=ext.depends)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'clang' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/instantmusic", line 8, in <module>
    import eyed3
  File "/usr/local/lib/python3.7/site-packages/eyed3/__init__.py", line 32, in <module>
    from .utils.log import log                                          # noqa: E402
  File "/usr/local/lib/python3.7/site-packages/eyed3/utils/__init__.py", line 27, in <module>
    import magic
  File "/usr/local/lib/python3.7/site-packages/magic/__init__.py", line 1, in <module>
    from . import ffi
  File "/usr/local/lib/python3.7/site-packages/magic/ffi.py", line 27, in <module>
    ext_package="magic")
  File "/usr/local/lib/python3.7/site-packages/cffi/api.py", line 437, in verify
    lib = self.verifier.load_library()
  File "/usr/local/lib/python3.7/site-packages/cffi/verifier.py", line 113, in load_library
    self._compile_module()
  File "/usr/local/lib/python3.7/site-packages/cffi/verifier.py", line 210, in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "/usr/local/lib/python3.7/site-packages/cffi/ffiplatform.py", line 29, in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose)
  File "/usr/local/lib/python3.7/site-packages/cffi/ffiplatform.py", line 62, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command 'clang' failed with exit status 1