Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to find libmagic on M1 Mac #251

Open
sciencecw opened this issue Jan 26, 2024 · 0 comments
Open

failed to find libmagic on M1 Mac #251

sciencecw opened this issue Jan 26, 2024 · 0 comments

Comments

@sciencecw
Copy link

🐛 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

  • AugLy Version: 1.0.0
  • OS (e.g., Linux): Mac Sonoma 14.2.1
  • How you installed AugLy (pip install augly, clone & pip install -e AugLy): pip install augly
  • Python version: 3.11.4
  • Other relevant packages (Tensorflow, etc):

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant