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 'datasets' has no attribute 'Split' #38

Open
taqta opened this issue Jun 7, 2023 · 0 comments
Open

AttributeError: module 'datasets' has no attribute 'Split' #38

taqta opened this issue Jun 7, 2023 · 0 comments

Comments

@taqta
Copy link

taqta commented Jun 7, 2023

Hi, thanks for your great work. I tried to run create_embeddings.py, but get the error below:

Traceback (most recent call last):
  File "/home/dsphaoyang/centroid/inference/create_embeddings.py", line 13, in <module>
    from train_ctl_model import CTLModel
  File "/home/dsphaoyang/centroid/./train_ctl_model.py", line 13, in <module>
    import pytorch_lightning as pl
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/pytorch_lightning/__init__.py", line 65, in <module>
    from pytorch_lightning.trainer import Trainer
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/pytorch_lightning/trainer/__init__.py", line 18, in <module>
    from pytorch_lightning.trainer.trainer import Trainer
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 32, in <module>
    from pytorch_lightning.loggers import LightningLoggerBase
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/pytorch_lightning/loggers/__init__.py", line 28, in <module>
    from pytorch_lightning.loggers.mlflow import _MLFLOW_AVAILABLE, MLFlowLogger
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/pytorch_lightning/loggers/mlflow.py", line 35, in <module>
    import mlflow
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/mlflow/__init__.py", line 41, in <module>
    from mlflow import projects  # pylint: disable=unused-import
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/mlflow/projects/__init__.py", line 9, in <module>
    import mlflow.projects.databricks
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/mlflow/projects/databricks.py", line 11, in <module>
    from mlflow import tracking
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/mlflow/tracking/__init__.py", line 20, in <module>
    from mlflow.tracking.fluent import _EXPERIMENT_ID_ENV_VAR, _EXPERIMENT_NAME_ENV_VAR, _RUN_ID_ENV_VAR
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/mlflow/tracking/fluent.py", line 13, in <module>
    from mlflow.data.dataset import Dataset
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/mlflow/data/__init__.py", line 5, in <module>
    from mlflow.data import dataset_registry
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/mlflow/data/dataset_registry.py", line 137, in <module>
    from mlflow.data.huggingface_dataset import from_huggingface
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/mlflow/data/huggingface_dataset.py", line 11, in <module>
    from mlflow.data.huggingface_dataset_source import HuggingFaceDatasetSource
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/mlflow/data/huggingface_dataset_source.py", line 10, in <module>
    class HuggingFaceDatasetSource(DatasetSource):
  File "/home/dsphaoyang/anaconda3/envs/centroid/lib/python3.9/site-packages/mlflow/data/huggingface_dataset_source.py", line 23, in HuggingFaceDatasetSource
    split: Optional[Union[str, datasets.Split]] = None,
AttributeError: module 'datasets' has no attribute 'Split'

Does anyone know what the issue might be? Thank you!

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