Bjørn Jørgensen created SPARK-38810:
---------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]