cannot import name 'is_essentia_available' from 'transformers.utils'
Author: philschmid
Pull request: no

### System Info

```Shell
- `Accelerate` version: 0.23.0
- Platform: macOS-12.5-arm64-arm-64bit
- Python version: 3.8.12
- Numpy version: 1.21.4
- PyTorch version (GPU?): 2.0.0 (False)
- PyTorch XPU available: False
- PyTorch NPU available: False
- System RAM: 32.00 GB
- `Accelerate` default config:
        Not found

transformers-cli env: 
- `transformers` version: 4.33.2
- Platform: macOS-12.5-arm64-arm-64bit
- Python version: 3.8.12
- Huggingface_hub version: 0.16.4
- Safetensors version: 0.3.3
- Accelerate version: 0.23.0
- Accelerate config:    not found
- PyTorch version (GPU?): 2.0.0 (False)
```


### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] One of the scripts in the examples/ folder of Accelerate or an officially supported `no_trainer` script in the `examples` folder of the `transformers` repo (such as `run_no_trainer_glue.py`)
- [ ] My own task or dataset (give details below)

### Reproduction

1. pip install transformers and accelerate
2. try to run the code below
```python
from accelerate.commands.estimate import estimate_command_parser, estimate_command, gather_data

parser = estimate_command_parser()
args = parser.parse_args(["bert-base-cased", "--dtypes", "float32"])
output = gather_data(args)
```

### Expected behavior

works, but error is: 

```bash
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[/var/folders/qt/wszh_95953qc0znj82hjxs5m0000gn/T/ipykernel_53424/1002179948.py](https://file+.vscode-resource.vscode-cdn.net/var/folders/qt/wszh_95953qc0znj82hjxs5m0000gn/T/ipykernel_53424/1002179948.py) in 
----> 1 from accelerate.commands.estimate import estimate_command_parser, estimate_command, gather_data
      2 
      3 parser = estimate_command_parser()
      4 args = parser.parse_args(["bert-base-cased", "--dtypes", "float32"])
      5 output = gather_data(args)

[/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/commands/estimate.py](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/commands/estimate.py) in 
     19 from huggingface_hub.utils import GatedRepoError, RepositoryNotFoundError
     20 
---> 21 from accelerate import init_empty_weights
     22 from accelerate.utils import (
     23     calculate_maximum_sizes,

[/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/__init__.py](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/__init__.py) in 
      1 __version__ = "0.23.0"
      2 
----> 3 from .accelerator import Accelerator
      4 from .big_modeling import (
      5     cpu_offload,

[/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/accelerator.py](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/accelerator.py) in 
     34 import torch.utils.hooks as hooks
     35 
---> 36 from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state
     37 from .data_loader import DataLoaderDispatcher, prepare_data_loader, skip_first_batches
     38 from .logging import get_logger

[/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/checkpointing.py](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/checkpointing.py) in 
     22 from torch.cuda.amp import GradScaler
     23 
---> 24 from .utils import (
     25     MODEL_NAME,
     26     OPTIMIZER_NAME,

[/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/utils/__init__.py](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/utils/__init__.py) in 
    145     prepare_tpu,
    146 )
--> 147 from .megatron_lm import (
    148     AbstractTrainStep,
    149     BertTrainStep,

[/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/utils/megatron_lm.py](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/accelerate/utils/megatron_lm.py) in 
     30 
     31 if is_transformers_available():
---> 32     from transformers.modeling_outputs import (
     33         CausalLMOutputWithCrossAttentions,
     34         Seq2SeqLMOutput,

[/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/transformers/__init__.py](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/transformers/__init__.py) in 
     25 # Check the dependencies satisfy the minimal versions required.
     26 from . import dependency_versions_check
---> 27 from .utils import (
     28     OptionalDependencyNotAvailable,
     29     _LazyModule,

ImportError: cannot import name 'is_essentia_available' from 'transformers.utils' (/opt/homebrew/Caskroom/miniforge/base/envs/hf/lib/python3.8/site-packages/transformers/utils/__init__.py)
```

Comments:
cc @pacman100 

solved ✅

Transfering to `transformers` as it's a `transformers` issue underneath

> solved ✅

Hi,I got the same error when I import diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion. 
`RuntimeError: Failed to import diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion because of the following error (look up to see its traceback):
cannot import name 'is_essentia_available' from 'transformers.utils' (C:\Users\Ziz\AppData\Roaming\Python\Python311\site-packages\transformers\utils\__init__.py)`

Can you kindly show how you solved the problem?thank you!
best wishes.