Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

ImportError: cannot import name '_unicodefun' from 'click' #695

Open
hirotosuzuki opened this issue Sep 3, 2022 · 2 comments
Open

ImportError: cannot import name '_unicodefun' from 'click' #695

hirotosuzuki opened this issue Sep 3, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@hirotosuzuki
Copy link

🐛 Bug Report

This error occurs.

make pre-commit-install
> ImportError: cannot import name '_unicodefun' from 'click'

psf/black#2964
I can fix by this command

poetry add click==8.0.2
@hirotosuzuki hirotosuzuki added the bug Something isn't working label Sep 3, 2022
@dschonholtz
Copy link

This is also fixed by upgrading black in your project.
https://stackoverflow.com/questions/71673404/importerror-cannot-import-name-unicodefun-from-click
I would just upgrade the black version in your local project in the poetry files.

It would also probably make sense to upgrade black in the cookie cutter template

@fengwang
Copy link

You can also pin the click package in the .toml file by setting

click = "8.0.2"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants