Conda Install failed
See original GitHub issueWhen installing with conda (as described in the guide), the dask package is not installed correctly.
To Reproduce
Steps to reproduce the behavior:
- Create a new conda environment
conda create --name myenv
- Activate the environment
conda activate myenv
- follow the anaconda tutorial on https://automl.github.io/auto-sklearn/master/installation.html#conda-forge
- start python interpreter and enter
>>> from autosklearn.classification import AutoSklearnClassifier
- see error
Workaround
Just install dask after step 3.
conda install dask
Actual behavior, stacktrace or logfile
>>> from autosklearn.classification import AutoSklearnClassifier Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/lukas/anaconda3/envs/import_test/lib/python3.9/site-packages/autosklearn/classification.py", line 1, in <module> from autosklearn.estimators import AutoSklearnClassifier # noqa (imported but unused) File "/home/lukas/anaconda3/envs/import_test/lib/python3.9/site-packages/autosklearn/estimators.py", line 6, in <module> import dask.distributed File "/home/lukas/anaconda3/envs/import_test/lib/python3.9/site-packages/dask/distributed.py", line 3, in <module> from distributed import * File "/home/lukas/anaconda3/envs/import_test/lib/python3.9/site-packages/distributed/__init__.py", line 4, in <module> from .actor import Actor, ActorFuture File "/home/lukas/anaconda3/envs/import_test/lib/python3.9/site-packages/distributed/actor.py", line 6, in <module> from .client import Future, default_client File "/home/lukas/anaconda3/envs/import_test/lib/python3.9/site-packages/distributed/client.py", line 30, in <module> from dask.compatibility import apply ImportError: cannot import name 'apply' from 'dask.compatibility' (/home/lukas/anaconda3/envs/import_test/lib/python3.9/site-packages/dask/compatibility.py)
Environment and installation:
Please give details about your installation:
- Ubuntu 20.04
- conda version==4.10.1
- python 3.8.8
- autosklearn version 0.14.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Hi @BastianZim,
Thanks a lot for doing this! It appears that @Louquinze was able to create a new environment and it installed without issue. I will close this issue.
If anyone else run’s into this issue, please feel free to re-open the discussion.
@BastianZim it appears that this is an issue with the conda package for Auto-sklearn not specifying a dependency correctly. Would you mind having a look into this?