Repository: huggingface/evaluate
Issue: unable to import evaluate
Root cause: External Dependency Breakage


---------------------------------------------------------------------------

AttributeError                            Traceback (most recent call last)

[<ipython-input-1-d1e2d76cbd38>](https://localhost:8080/#) in <cell line: 1>()
----> 1 import evaluate
      2 indic_glue_metric=evaluate.load('indic_glue','wiki-ner.ta')

10 frames

[/usr/local/lib/python3.10/dist-packages/evaluate/__init__.py](https://localhost:8080/#) in <module>
     27 del version
     28 
---> 29 from .evaluation_suite import EvaluationSuite
     30 from .evaluator import (
     31     AutomaticSpeechRecognitionEvaluator,

[/usr/local/lib/python3.10/dist-packages/evaluate/evaluation_suite/__init__.py](https://localhost:8080/#) in <module>
      5 from typing import Callable, Dict, Optional, Union
      6 
----> 7 from datasets import Dataset, DownloadMode, load_dataset
      8 from datasets.utils.version import Version
      9 

[/usr/local/lib/python3.10/dist-packages/datasets/__init__.py](https://localhost:8080/#) in <module>
     41 del version
     42 
---> 43 from .arrow_dataset import Dataset
     44 from .arrow_reader import ReadInstruction
     45 from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder

[/usr/local/lib/python3.10/dist-packages/datasets/arrow_dataset.py](https://localhost:8080/#) in <module>
     63 
     64 from . import config
---> 65 from .arrow_reader import ArrowReader
     66 from .arrow_writer import ArrowWriter, OptimizedTypedSequence
     67 from .download.download_config import DownloadConfig

[/usr/local/lib/python3.10/dist-packages/datasets/arrow_reader.py](https://localhost:8080/#) in <module>
     28 import pyarrow.parquet as pq
     29 
---> 30 from .download.download_config import DownloadConfig
     31 from .naming import _split_re, filenames_for_dataset_split
     32 from .table import InMemoryTable, MemoryMappedTable, Table, concat_tables

[/usr/local/lib/python3.10/dist-packages/datasets/download/__init__.py](https://localhost:8080/#) in <module>
      7 
      8 from .download_config import DownloadConfig
----> 9 from .download_manager import DownloadManager, DownloadMode
     10 from .streaming_download_manager import StreamingDownloadManager

[/usr/local/lib/python3.10/dist-packages/datasets/download/download_manager.py](https://localhost:8080/#) in <module>
     33 from ..utils.info_utils import get_size_checksum_dict
     34 from ..utils.logging import get_logger, is_progress_bar_enabled, tqdm
---> 35 from ..utils.py_utils import NestedDataStructure, map_nested, size_str
     36 from .download_config import DownloadConfig
     37 

[/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in <module>
     38 import dill
     39 import multiprocess
---> 40 import multiprocess.pool
     41 import numpy as np
     42 from packaging import version

[/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py](https://localhost:8080/#) in <module>
    607 #
    608 
--> 609 class ThreadPool(Pool):
    610 
    611     from .dummy import Process

[/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py](https://localhost:8080/#) in ThreadPool()
    609 class ThreadPool(Pool):
    610 
--> 611     from .dummy import Process
    612 
    613     def __init__(self, processes=None, initializer=None, initargs=()):

[/usr/local/lib/python3.10/dist-packages/multiprocess/dummy/__init__.py](https://localhost:8080/#) in <module>
     85 #
     86 
---> 87 class Condition(threading._Condition):
     88     # XXX
     89     if sys.version_info < (4, 0):

AttributeError: module 'threading' has no attribute '_Condition'

Upgrading datasets and multiprocess solved the issue
`pip install --upgrade datasets multiprocess`