[ https://issues.apache.org/jira/browse/SPARK-38810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17518563#comment-17518563 ]
Hyukjin Kwon commented on SPARK-38810: -------------------------------------- I faced the same issue. This can be fixed by reinstalling click==8.0.4. I guess they will land a fix soon though. > Upgrade Python black in /dev/reformat-python > -------------------------------------------- > > Key: SPARK-38810 > URL: https://issues.apache.org/jira/browse/SPARK-38810 > Project: Spark > Issue Type: Bug > Components: Build > Affects Versions: 3.4.0 > Reporter: Bjørn Jørgensen > Priority: Major > > There are some problems with Python Black > [https://github.com/psf/black/issues/2964|https://github.com/psf/black/issues/2964] > And we have BLACK_VERSION="21.12b0" hard coded in `/dev/reformat-python` > python -m black > Traceback (most recent call last): > File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main > return _run_code(code, main_globals, None, > File "/usr/lib/python3.10/runpy.py", line 86, in _run_code > exec(code, run_globals) > File "/home/bjorn/.local/lib/python3.10/site-packages/black/__main__.py", > line 3, in <module> > patched_main() > File "/home/bjorn/.local/lib/python3.10/site-packages/black/__init__.py", > line 1372, in patched_main > patch_click() > File "/home/bjorn/.local/lib/python3.10/site-packages/black/__init__.py", > line 1358, in patch_click > from click import _unicodefun > ImportError: cannot import name '_unicodefun' from 'click' > (/usr/lib/python3.10/site-packages/click/__init__.py) -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org