You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Bjørn Jørgensen (Jira)" <ji...@apache.org> on 2022/04/17 18:23:00 UTC

[jira] [Updated] (SPARK-38810) Upgrade Python black in /dev/reformat-python

     [ https://issues.apache.org/jira/browse/SPARK-38810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bjørn Jørgensen updated SPARK-38810:
------------------------------------
    Issue Type: Improvement  (was: Bug)

> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org