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
ImportError: cannot import name '_unicodefun' from 'click' #2976
Describe the bug
A recent version of click has been released which removes _unicodefun, breaking black (see also dask/distributed#6013).
To Reproduce
docker run --rm -it python:3.9-alpine sh
In the container:
pip install "click==8.1.0" "black==22.1.0"
black .
The resulting error is:
Traceback (most recent call last):
File "/usr/local/bin/black", line 8, in<module>sys.exit(patched_main())
File "/usr/local/lib/python3.9/site-packages/black/__init__.py", line 1423, in patched_main
patch_click()
File "/usr/local/lib/python3.9/site-packages/black/__init__.py", line 1409, in patch_click
from click import _unicodefun
ImportError: cannot import name '_unicodefun' from 'click' (/usr/local/lib/python3.9/site-packages/click/__init__.py)
Reacted by idob-sp, Akshath Kothari, Emin Buğra Saral, Taner Topal, zerocewl, Maria Clara Bezerra, Christophe Combelles and Beniamin Kalinowski
Activity
zerocewl commentedon Mar 30, 2022
maybe pin
clickto the version before as first workaround?click==8.0.2pip install --upgrade click==8.0.2see also dask/distributed#6013
Jackenmen commentedon Mar 30, 2022
This has been fixed by Black 22.3.0. Versions before that won't work with click 8.1.0.
felix-hilden commentedon Mar 30, 2022
Correct, see issue #2964 for more info.
requirements: Fix black version to more recent one
Update pre-commit config and run black
Update pre-commit config and run black (#315)
Upgrade black
Range limit click
Range limit click (#1)
pyproject: Bump black to 22.3.0.
pyproject: Bump black to 22.3.0.
pyproject: Bump black to 22.3.0.
1 remaining item
Bump black dependency
Bump black dependency
Bumps black to v22.3.0
Update black to 22.3.0 due to psf/black#2976
require click >-8.0.2 due to psf/black#2976
Fix all CI jobs except docs failing to run (#19)
Squash commits from dls-python3-skeleton skeleton branch
Squash commits from dls-python3-skeleton skeleton branch
Squash commits from dls-python3-skeleton skeleton branch
Add ability to print asset currency
dependency: update black to avoid incompatibility with old version of…
dependency: update black to avoid incompatibility with old version of…
dependency: update black to avoid incompatibility with old version of…
Bump Black=22.10.0
Bump Black=22.10.0