You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dask-scheduler and dask-worker CLI break with click==8.0.0 #4809
When using click=8.0.0 which was released on May 11th, the scheduler as well as worker CLI don't come up.
What you expected to happen:
Working scheduler and worker CLIs
Minimal Complete Verifiable Example:
$ dask-scheduler --version
ValueError: 'default' must be a list when 'multiple' is true.
$ dask-worker --version
AttributeError: module 'click._unicodefun' has no attribute '_verify_python3_env'
Anything else we need to know?:
Probable root cause for dask-scheduler:
Click changelog:
The default value for a parameter with nargs > 1 and multiple=True must be a list of tuples. #1649
The fix for multiple is trivial since the new version of clicks seems to enforce a restriction that would have made sense earlier. The issue is that all older versions of dask will suffer from this as well with the newest click. Not sure how you would go about that.
For the dask-worker I believe that code fragment that distributed used was something internal to click. Not sure how that looks like nowadays.
Thanks for reporting @ManuelBahr and investigating @quasiben! I opened up a PR over in #4810 which proposes we add some compatibility code to handle the changes in click 8
Sure that is the definition of ending support. However, that renders dask effectively unusable for Python 3.6 users until they discover the solution to constrain click. Up to now they were just frozen at a certain version.
That is true. There is not a plan at moment to take this action . Dask has typically not made patches for older versions and instead opted to encourage folks to upgrade. We recognize this comes with some frustration but we've also found this to be helpful is resolving bugs quickly while also delivering new features/improvements.
With that said, Is Python 3.6 critical for you and/or some community you are involved with ? If so, can you describe some of the blockers for moving on from 3.6 ?
@akamaus could you confirm that you were using distributed=2021.6.0 and click=8.0.1 when you saw this issue? I'm not able to reproduce with the following:
Activity
quasiben commentedon May 12, 2021
Thanks for the report @ManuelBahr . Confirmed that this is an issue:
Do you know how challenging it would be to support older and latest versions of click ?
ManuelBahr commentedon May 12, 2021
The fix for
multipleis trivial since the new version of clicks seems to enforce a restriction that would have made sense earlier. The issue is that all older versions ofdaskwill suffer from this as well with the newestclick. Not sure how you would go about that.For the
dask-workerI believe that code fragment thatdistributedused was something internal to click. Not sure how that looks like nowadays.quasiben commentedon May 12, 2021
Probably the easiest thing to do right now is set a pin for pip / conda and restrict to less than 8.X.
jrbourbeau commentedon May 12, 2021
Thanks for reporting @ManuelBahr and investigating @quasiben! I opened up a PR over in #4810 which proposes we add some compatibility code to handle the changes in
click8ManuelBahr commentedon May 12, 2021
Do you plan to backport those changes to the last version that supported Python3.6?
quasiben commentedon May 12, 2021
I don't think we need to do that. Dask has dropped Python 3.6 support: dask/dask#7006
ManuelBahr commentedon May 12, 2021
Sure that is the definition of ending support. However, that renders
daskeffectively unusable for Python 3.6 users until they discover the solution to constrainclick. Up to now they were just frozen at a certain version.quasiben commentedon May 12, 2021
That is true. There is not a plan at moment to take this action . Dask has typically not made patches for older versions and instead opted to encourage folks to upgrade. We recognize this comes with some frustration but we've also found this to be helpful is resolving bugs quickly while also delivering new features/improvements.
With that said, Is Python 3.6 critical for you and/or some community you are involved with ? If so, can you describe some of the blockers for moving on from 3.6 ?
ManuelBahr commentedon May 12, 2021
No, I was just thinking about the new user experience for that segment of
daskusers.quasiben commentedon May 14, 2021
@ManuelBahr FYI, a patch was submitted to conda-forge to restrict
click <8for versions of dask older than 2021.05.0:conda-forge/conda-forge-repodata-patches-feedstock#142
akamaus commentedon Jun 16, 2021
Stumbled upon this issue using dask-2021.6.0 and click-8.0.1 After upgrading to click-7.1.2 problem fixed.
jrbourbeau commentedon Jun 16, 2021
@akamaus could you confirm that you were using
distributed=2021.6.0andclick=8.0.1when you saw this issue? I'm not able to reproduce with the following:akamaus commentedon Jun 17, 2021
looks like previously I had
click-8.0.1,dask-2021.6.0anddistributed-2.18.0. After I upgraded todistributed-2021.6.0I can no longer reproduce the issue. Dask was installed as a dependency in my case, I don't know why authors pinneddistributed-2.18.0(https://github.com/huawei-noah/vega/blob/master/setup.py)