question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conda Install failed

See original GitHub issue

When installing with conda (as described in the guide), the dask package is not installed correctly.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new conda environment conda create --name myenv
  2. Activate the environment conda activate myenv
  3. follow the anaconda tutorial on https://automl.github.io/auto-sklearn/master/installation.html#conda-forge
  4. start python interpreter and enter >>> from autosklearn.classification import AutoSklearnClassifier
  5. 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:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
eddiebergmancommented, Nov 17, 2021

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.

1reaction
mfeurercommented, Nov 3, 2021

@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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

can't install anything using conda, it hangs in solving ... - GitHub
Hello,. I don't seem to be able to install anything using conda. It hangs in "solving environment". I tried: conda install -c anaconda...
Read more >
Troubleshooting — conda 22.11.1.post13+5eef286ca ...
Occasionally, an installed package becomes corrupted. Conda works by unpacking the packages in the pkgs directory and then hard-linking them to the environment....
Read more >
Troubleshooting — Anaconda documentation
403 error; HTTP 000 CONNECTION FAILED ; Anaconda installer download ... If the package downloads are interrupted, just run conda install anaconda again....
Read more >
anaconda - Conda install local package fails - Stack Overflow
Conda install local package fails · I would try using and absolute file name and see whether that helps. See docs.anaconda.com/anaconda/user- ...
Read more >
Conda Installation Failing – Forum - OVITO
First, please check which version of the ovito package is currently installed in your conda environment by running conda list . Pay attention...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found