Repository navigation
Closed
Description
What happened: Error when calling dask-scheduler or dask-worker
What you expected to happen: Not an error
Minimal Complete Verifiable Example:
# Start from a blank python 3.8 environment
$ pip install distributed
# installs click 8.0.0 as a dependency
$ dask-scheduler --help
Traceback (most recent call last):
File "/Users/nmerket/opt/anaconda3/envs/tempdask/bin/dask-scheduler", line 5, in <module>
from distributed.cli.dask_scheduler import go
File "/Users/nmerket/opt/anaconda3/envs/tempdask/lib/python3.8/site-packages/distributed/cli/dask_scheduler.py", line 120, in <module>
def main(
File "/Users/nmerket/opt/anaconda3/envs/tempdask/lib/python3.8/site-packages/click/decorators.py", line 247, in decorator
_param_memo(f, OptionClass(param_decls, **option_attrs))
File "/Users/nmerket/opt/anaconda3/envs/tempdask/lib/python3.8/site-packages/click/core.py", line 2467, in __init__
super().__init__(param_decls, type=type, multiple=multiple, **attrs)
File "/Users/nmerket/opt/anaconda3/envs/tempdask/lib/python3.8/site-packages/click/core.py", line 2106, in __init__
raise ValueError(
ValueError: 'default' must be a list when 'multiple' is true.
$ dask-worker --help
Traceback (most recent call last):
File "/Users/nmerket/opt/anaconda3/envs/tempdask/bin/dask-worker", line 8, in <module>
sys.exit(go())
File "/Users/nmerket/opt/anaconda3/envs/tempdask/lib/python3.8/site-packages/distributed/cli/dask_worker.py", line 461, in go
check_python_3()
File "/Users/nmerket/opt/anaconda3/envs/tempdask/lib/python3.8/site-packages/distributed/cli/utils.py", line 32, in check_python_3
_unicodefun._verify_python3_env()
AttributeError: module 'click._unicodefun' has no attribute '_verify_python3_env'Anything else we need to know?:
If I downgrade click to 7.1.2, it works as expected.
Environment:
- Dask version: 2021.4.1
- Python version: 3.7, 3.8
- Operating System: Mac, CentOS
- Install method (conda, pip, source): pip or conda (conda-forge)
certifi==2020.12.5
click==8.0.0
cloudpickle==1.6.0
dask==2021.4.1
distributed==2021.4.1
fsspec==2021.4.0
HeapDict==1.0.1
locket==0.2.1
msgpack==1.0.2
partd==1.2.0
psutil==5.8.0
PyYAML==5.4.1
sortedcontainers==2.3.0
tblib==1.7.0
toolz==0.11.1
tornado==6.1
zict==2.0.0
Reacted by Rajendra Adhikari and danielk43
Metadata
Metadata
Assignees
Labels
No labels
Activity
jrbourbeau commentedon May 13, 2021
Thanks for reporting this issue @nmerket! There's a new release of
distributedcoming out tomorrow which includes updates to supportclick >= 8.0.0(xref #4810).Additionally, we've recently patched all existing
distributedreleases onconda-forgeto pinclick < 8. If you're usingpipto installdistributedfrom PyPI, could you please manually pinclick < 8until thedistributedrelease tomorrow. Thanks!jrbourbeau commentedon May 13, 2021
I'm also pinning this issue in the issue tracker to (hopefully) increase its visibility for other who may also be running into the same issue
nmerket commentedon May 13, 2021
Wow, thanks for the quick response!
fredms commentedon May 14, 2021
Seeing the same issue. Tried to install the latest package of distributed 2021.5.0, but got error:
ResolvePackageNotFound:
jrbourbeau commentedon May 14, 2021
@fredms how are you attempting to install
distributed?distributed==2021.5.0should be on PyPI, but isn't up onconda-forgeyetfredms commentedon May 14, 2021
Just tried pip install distributed==2021.5.0
ERROR: Could not find a version that satisfies the requirement distributed==2021.5.0
ERROR: No matching distribution found for distributed==2021.5.0
jrbourbeau commentedon May 14, 2021
Hmm, unfortunately I'm not able to reproduce.
distributed==2021.5.0is definitely on PyPI. I did the following locally on my mac:which ran successfully for me (output shown below). I'm not totally sure how to help debug further. By chance to do you have
pipconfigured to point to some non-default index?Details:
fredms commentedon May 15, 2021
It works now. I tried a different machine.
jakirkham commentedon May 17, 2021
Closing as this should be fixed in the latest release