facebookresearch / AugLy

A data augmentations library for audio, image, text, and video.
https://ai.facebook.com/blog/augly-a-new-data-augmentation-library-to-help-build-more-robust-ai-models/
Other
4.96k stars 301 forks source link

failed to find libmagic on M1 Mac #251

Open sciencecw opened 9 months ago

sciencecw commented 9 months ago

🐛 Bug

error importing library after pip install

To Reproduce

Steps to reproduce the behavior:

  1. pip install augly
  2. import augly.text as textaugs
     46     pass
     47 else:
     48   # It is better to raise an ImportError since we are importing magic module
---> 49   raise ImportError('failed to find libmagic.  Check your installation')

ImportError: failed to find libmagic. Check your installation

Expected behavior

brew install libmagic solves the problem

Environment

Additional context