[ https://issues.apache.org/jira/browse/SPARK-38810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523427#comment-17523427 ]
Bjørn Jørgensen commented on SPARK-38810: ----------------------------------------- You are right Sean it not a Spark bug. But now that Black is updated. And the script /dev/reformat-python only work with BLACK_VERSION="21.12b0" it`s a problem for us that have a newer version of Black. I have changed this from a bug to improvement. > Upgrade Python black in /dev/reformat-python > -------------------------------------------- > > Key: SPARK-38810 > URL: https://issues.apache.org/jira/browse/SPARK-38810 > Project: Spark > Issue Type: Improvement > 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