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

AttributeError: module 'threading' has no attribute '_Condition'. Did you mean: 'Condition'? #191

Open
nick-at-dave opened this issue Aug 9, 2024 · 0 comments

Comments

@nick-at-dave
Copy link

nick-at-dave commented Aug 9, 2024

Hello,
I am attempting to call this library in 3.10.7. I currently have the following package versions (only the top one is pinned):

apache-beam[gcp]>=2.52.0
setfit==1.0.3
multiprocess==0.70.9

However, when I attempt to run my code, I receive the following error:

File "/opt/py-packages/setfit/__init__.py", line 7, in <module>
    from .data import get_templated_dataset, sample_dataset
  File "/opt/py-packages/setfit/data.py", line 5, in <module>
    from datasets import Dataset, DatasetDict, load_dataset
  File "/opt/py-packages/datasets/__init__.py", line 22, in <module>
    from .arrow_dataset import Dataset
  File "/opt/py-packages/datasets/arrow_dataset.py", line 66, in <module>
    from .arrow_reader import ArrowReader
  File "/opt/py-packages/datasets/arrow_reader.py", line 30, in <module>
    from .download.download_config import DownloadConfig
  File "/opt/py-packages/datasets/download/__init__.py", line 9, in <module>
    from .download_manager import DownloadManager, DownloadMode
  File "/opt/py-packages/datasets/download/download_manager.py", line 35, in <module>
    from ..utils.py_utils import NestedDataStructure, map_nested, size_str
  File "/opt/py-packages/datasets/utils/py_utils.py", line 40, in <module>
    import multiprocess.pool
  File "/opt/py-packages/multiprocess/pool.py", line 609, in <module>
    class ThreadPool(Pool):
  File "/opt/py-packages/multiprocess/pool.py", line 611, in ThreadPool
    from .dummy import Process
  File "/opt/py-packages/multiprocess/dummy/__init__.py", line 87, in <module>
    class Condition(threading._Condition):
AttributeError: module 'threading' has no attribute '_Condition'. Did you mean: 'Condition'?

Is there a particular version of multiprocess that would work well for this version of the threading library?

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