Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name '_unicodefun' from 'click' #6013

Closed
ChiliJohnson opened this issue Mar 28, 2022 · 0 comments · Fixed by #6018
Closed

ImportError: cannot import name '_unicodefun' from 'click' #6013

ChiliJohnson opened this issue Mar 28, 2022 · 0 comments · Fixed by #6018

Comments

@ChiliJohnson
Copy link

ChiliJohnson commented Mar 28, 2022

What happened:
A recent version of click has been released which removes _unicodefun, breaking the distributed CLI.

What you expected to happen:
The distributed CLI should work; the requirements should include a cap on the click version at 8.0.2.

Minimal Complete Verifiable Example:

$ pip install distributed
…
Successfully installed MarkupSafe-2.1.1 click-8.1.0 cloudpickle-2.0.0 dask-2022.3.0 distributed-2022.3.0 fsspec-2022.2.0 heapdict-1.0.1 jinja2-3.1.1 locket-0.2.1 msgpack-1.0.3 packaging-21.3 partd-1.2.0 psutil-5.9.0 pyparsing-3.0.7 pyyaml-6.0 sortedcontainers-2.4.0 tblib-1.7.0 toolz-0.11.2 tornado-6.1 zict-2.1.0

$ dask-scheduler 
Traceback (most recent call last):
  File "/usr/local/bin/dask-scheduler", line 8, in <module>
    sys.exit(go())
  File "/usr/local/lib/python3.9/site-packages/distributed/cli/dask_scheduler.py", line 216, in go
    check_python_3()
  File "/usr/local/lib/python3.9/site-packages/distributed/cli/utils.py", line 38, in check_python_3
    from click import _unicodefun
ImportError: cannot import name '_unicodefun' from 'click' (/usr/local/lib/python3.9/site-packages/click/__init__.py)

$ pip install --upgrade click==8.0.2
…
Successfully installed click-8.0.2

$ dask-scheduler 
2022-03-28 23:57:03,412 - distributed.scheduler - INFO - -----------------------------------------------
…

Environment:

  • Dask version: 2022.3.0
  • Python version: 3.9.7
  • Operating System: Ubuntu
  • Install method (conda, pip, source): pip
graingert added a commit to graingert/distributed that referenced this issue Mar 29, 2022
graingert added a commit to graingert/distributed that referenced this issue Mar 29, 2022
beat-buesser pushed a commit to Trusted-AI/adversarial-robustness-toolbox that referenced this issue Mar 29, 2022
dask/distributed#6013
Signed-off-by: Beat Buesser <beat.buesser@ie.ibm.com>
sabinem pushed a commit to opendata-swiss/ogdch_checker that referenced this issue Mar 30, 2022
schroedtert added a commit to PedestrianDynamics/PedPy that referenced this issue Mar 31, 2022
schroedtert added a commit to PedestrianDynamics/PedPy that referenced this issue Mar 31, 2022
A recent version of click has been released which removes `_unicodefun`, breaking the CI. (see dask/distributed#6013)
beat-buesser pushed a commit to Trusted-AI/adversarial-robustness-toolbox that referenced this issue Mar 31, 2022
dask/distributed#6013
Signed-off-by: Beat Buesser <beat.buesser@ie.ibm.com>
beat-buesser pushed a commit to Trusted-AI/adversarial-robustness-toolbox that referenced this issue Mar 31, 2022
dask/distributed#6013
Signed-off-by: Beat Buesser <beat.buesser@ie.ibm.com>
calvinballing added a commit to calvinballing/speechbrain that referenced this issue Apr 1, 2022
An update to `click` causes `black` to fail with
`ImportError: cannot import name '_unicodefun' from 'click' (/Users/jimhays/.cache/pre-commit/repoef_0ghls/py_env-python3/lib/python3.10/site-packages/click/__init__.py)`

This pins `click` at a working version.

For more information, see:
dask/distributed#6013
HighSaltLevels added a commit to HighSaltLevels/car-rater that referenced this issue Apr 4, 2022
asarj pushed a commit to Ethos-lab/adversarial-robustness-toolbox that referenced this issue May 8, 2022
dask/distributed#6013
Signed-off-by: Beat Buesser <beat.buesser@ie.ibm.com>
Signed-off-by: Ajay Sarjoo <ajay.sarjoo@outlook.com>
jamesquantum pushed a commit to jamesquantum/QPFAS that referenced this issue Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant