automl / automl/Auto-PyTorch

Errors on running example_tabular_classification.py

Open
#503 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.5k
Forks
300
PR merge metrics
No merged PRs in 30d

Description

when I run `python examples/20_basics/example_tabular_classification.py`, the terminal shows

```
Traceback (most recent call last):
File "examples/20_basics/example_tabular_classification.py", line 26, in
from autoPyTorch.api.tabular_classification import TabularClassificationTask
File "/opt/homebrew/anaconda3/envs/auto-pytorch/lib/python3.8/site-packages/autoPyTorch-0.2.1-py3.8.egg/autoPyTorch/api/tabular_classification.py", line 7, in
from autoPyTorch.api.base_task import BaseTask
File "/opt/homebrew/anaconda3/envs/auto-pytorch/lib/python3.8/site-packages/autoPyTorch-0.2.1-py3.8.egg/autoPyTorch/api/base_task.py", line 20, in
import dask.distributed
File "/opt/homebrew/anaconda3/envs/auto-pytorch/lib/python3.8/site-packages/dask/distributed.py", line 11, in
from distributed import *
File "/opt/homebrew/anaconda3/envs/auto-pytorch/lib/python3.8/site-packages/distributed-2023.8.1-py3.8.egg/distributed/__init__.py", line 23, in
from distributed.actor import Actor, ActorFuture, BaseActorFuture
File "/opt/homebrew/anaconda3/envs/auto-pytorch/lib/python3.8/site-packages/distributed-2023.8.1-py3.8.egg/distributed/actor.py", line 13, in
from distributed.client import Future
File "/opt/homebrew/anaconda3/envs/auto-pytorch/lib/python3.8/site-packages/distributed-2023.8.1-py3.8.egg/distributed/client.py", line 61, in
from distributed import cluster_dump, preloading
File "/opt/homebrew/anaconda3/envs/auto-pytorch/lib/python3.8/site-packages/distributed-2023.8.1-py3.8.egg/distributed/preloading.py", line 225, in
class PreloadManager(Sequence[Preload]):
TypeError: 'ABCMeta' object is not subscriptable
```

I did manual installation by running the following commands
```
# Following commands assume the user is in a cloned directory of Auto-Pytorch

# We also need to initialize the automl_common repository as follows
# You can find more information about this here:
# https://github.com/automl/automl_common/
git submodule update --init --recursive

# Create the environment
conda create -n auto-pytorch python=3.8
conda activate auto-pytorch
conda install swig
python setup.py install
```

Is this error somehow related to the version of auto-pytorch or distributed? How do you think I should solve it?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.