Traceback (most recent call last):


 "build.py", line 4, in <module>

from torch.utils.ffi import create_extension


 "/root/.pyenv/versions/3.7.1/lib/python3.7/site-packages/torch/utils/ffi/__init__.py", line 1, in <module>

raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")
ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.

Traceback (most recent call last):


 "/Users/yy/Documents/software/brew/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner

self.run()


 "/Users/yy/Documents/software/brew/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 865, in run

self._target(*self._args, **self._kwargs)


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/django/utils/autoreload.py", line 54, in wrapper

fn(*args, **kwargs)


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run

autoreload.raise_last_exception()


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/django/utils/autoreload.py", line 77, in raise_last_exception

raise _exception[1]


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/django/core/management/__init__.py", line 337, in execute

autoreload.check_errors(django.setup)()


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/django/utils/autoreload.py", line 54, in wrapper

fn(*args, **kwargs)


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/django/__init__.py", line 24, in setup

apps.populate(settings.INSTALLED_APPS)


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/django/apps/registry.py", line 114, in populate

app_config.import_models()


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/django/apps/config.py", line 211, in import_models

self.models_module = import_module(models_module_name)


 "/Users/yy/Documents/POC/saleor/lib/python3.7/importlib/__init__.py", line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 1006, in _gcd_import


 "<frozen importlib._bootstrap>", line 983, in _find_and_load


 "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 677, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 728, in exec_module


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "/Users/yy/Documents/POC/saleor/saleor/saleor/extensions/models.py", line 5, in <module>

from saleor.core.utils.json_serializer import CustomJsonEncoder


 "/Users/yy/Documents/POC/saleor/saleor/saleor/core/utils/__init__.py", line 22, in <module>

from versatileimagefield.image_warmer import VersatileImageFieldWarmer


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/versatileimagefield/image_warmer.py", line 11, in <module>

from .utils import (


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/versatileimagefield/utils.py", line 7, in <module>

import magic


 "/Users/yy/Documents/POC/saleor/lib/python3.7/site-packages/magic.py", line 181, in <module>

raise ImportError('failed to find libmagic.
Check your installation')
ImportError: failed to find libmagic.
Check your installation
