Repository: huggingface/evaluate
Issue: Try to import evaluate but get "Library not loaded: @rpath/libwebp.7.dylib" error
Root cause: Environment Incompatibility

I am trying to import evaluate but got "Library not loaded: @rpath/libwebp.7.dylib" error. Can anyone clarify what i am missing?

My full stack trace:
```
  File "/Users/czxttkl/github/test_trl/main.py", line 9, in <module>
    import evaluate
  File "/opt/miniconda3/lib/python3.9/site-packages/evaluate/__init__.py", line 29, in <module>
    from .evaluation_suite import EvaluationSuite
  File "/opt/miniconda3/lib/python3.9/site-packages/evaluate/evaluation_suite/__init__.py", line 10, in <module>
    from ..evaluator import evaluator
  File "/opt/miniconda3/lib/python3.9/site-packages/evaluate/evaluator/__init__.py", line 27, in <module>
    from .audio_classification import AudioClassificationEvaluator
  File "/opt/miniconda3/lib/python3.9/site-packages/evaluate/evaluator/audio_classification.py", line 23, in <module>
    from .base import EVALUATOR_COMPUTE_RETURN_DOCSTRING, EVALUTOR_COMPUTE_START_DOCSTRING, Evaluator
  File "/opt/miniconda3/lib/python3.9/site-packages/evaluate/evaluator/base.py", line 34, in <module>
    from transformers import Pipeline, pipeline
  File "<frozen importlib._bootstrap>", line 1055, in _handle_fromlist
  File "/opt/miniconda3/lib/python3.9/site-packages/transformers/utils/import_utils.py", line 1354, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "/opt/miniconda3/lib/python3.9/site-packages/transformers/utils/import_utils.py", line 1366, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback):
dlopen(/opt/miniconda3/lib/python3.9/site-packages/PIL/_imaging.cpython-39-darwin.so, 0x0002): Library not loaded: @rpath/libwebp.7.dylib
  Referenced from: <49490F72-C0C8-310F-8D2E-7B48C3A9AB68> /opt/miniconda3/lib/libtiff.6.dylib
  Reason: tried: '/opt/miniconda3/lib/libwebp.7.dylib' (no such file), '/opt/miniconda3/lib/python3.9/site-packages/PIL/../../../libwebp.7.dylib' (no such file), '/opt/miniconda3/lib/python3.9/site-packages/PIL/../../../libwebp.7.dylib' (no such file), '/opt/miniconda3/bin/../lib/libwebp.7.dylib' (no such file), '/opt/miniconda3/bin/../lib/libwebp.7.dylib' (no such file), '/usr/local/lib/libwebp.7.dylib' (no such file), '/usr/lib/libwebp.7.dylib' (no such file, not in dyld cache)
```



my system information:
```
(base) czxttkl@czxttkl-mbp ~ % system_profiler SPSoftwareDataType SPHardwareDataType


Software:

    System Software Overview:

      System Version: macOS 14.3 (23D56)
      Kernel Version: Darwin 23.3.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: xxx
      User Name: xxx
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 8 days, 6 hours, 30 minutes

Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro16,1
      Processor Name: 8-Core Intel Core i9
      Processor Speed: 2.4 GHz
      Number of Processors: 1
      Total Number of Cores: 8
      L2 Cache (per Core): 256 KB
      L3 Cache: 16 MB
      Hyper-Threading Technology: Enabled
      Memory: 64 GB
      System Firmware Version: 2020.80.5.0.1 (iBridge: 21.16.3049.0.0,0)
      OS Loader Version: 580~1337
      Serial Number (system): C02CG407MD6T
      Hardware UUID: DCCBBEE5-4627-59E7-AB2C-25B040CC2D72
      Provisioning UDID: DCCBBEE5-4627-59E7-AB2C-25B040CC2D72
      Activation Lock Status: Disabled
```


ok, solved by "brew update && brew install webp"