[ 
https://issues.apache.org/jira/browse/SPARK-38810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523425#comment-17523425
 ] 

Bjørn Jørgensen commented on SPARK-38810:
-----------------------------------------

[~srowen] Yes, I think so. Black is updated, but the update did have some 
problems. And I have seen any fix for this yet. 

One thing we can do is to change BLACK_VERSION="21.12b0" to 
BLACK_VERSION=>"21.12b0"



> 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

Reply via email to