python-package-template
python-package-template copied to clipboard
ImportError: cannot import name '_unicodefun' from 'click'
🐛 Bug Report
This error occurs.
make pre-commit-install
> ImportError: cannot import name '_unicodefun' from 'click'
https://github.com/psf/black/issues/2964 I can fix by this command
poetry add click==8.0.2
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
You can also pin the click package in the .toml file by setting
click = "8.0.2"