-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name '_unicodefun' from 'click' #2225
Comments
This internal module is no longer needed for any supported version of Python, and has been removed. If a project was importing this, usually to disable it, they can either set their minimum version to Click>=8.1.0, or they can use |
when will the fixed version be out? |
Looks like you just need to use a recent black version. For the future: If you get an exception, include the traceback as well. |
@karthiknadig This is an issue with black, not with click. psf/black#2964 |
@Sillocan Thanks for info and Sorry for missing the details on this. |
pallets/click#2225 Doing this instead of updating since updating black will change several files due to some formatting change. I would like to take that on separately from unbreaking CI.
pallets/click#2225 Doing this instead of updating since updating black will change several files due to some formatting change. I would like to take that on separately from unbreaking CI.
pallets/click#2225 Doing this instead of updating since updating black will change several files due to some formatting change. I would like to take that on separately from unbreaking CI.
This comment was marked as off-topic.
This comment was marked as off-topic.
A module starting with an underscore was always internal and never meant to be relied upon / used by anyone else. so while you may have a strong opinion about removing/deprecating anything that was part of a public API, this certainly cannot applied to |
This comment was marked as off-topic.
This comment was marked as off-topic.
pallets/click#2225 Doing this instead of updating since updating black will change several files due to some formatting change. I would like to take that on separately from unbreaking CI.
pallets/click#2225 Doing this instead of updating since updating black will change several files due to some formatting change. I would like to take that on separately from unbreaking CI.
pallets/click#2225 Doing this instead of updating since updating black will change several files due to some formatting change. I would like to take that on separately from unbreaking CI.
pallets/click#2225 psf/black#2964 Black 22.1.0 raises an error when used with pre-commit: `ImportError: cannot import name '_unicodefun' from 'click'`. Black 22.3.0 resolves the `ImportError`.
https://black.readthedocs.io/en/stable/change_log.html pallets/click#2225 psf/black#2964 Black was raising an error when used with pre-commit: `ImportError: cannot import name '_unicodefun' from 'click'`. Black 22.3.0 resolves the `ImportError`.
pallets/click#2225 Doing this instead of updating since updating black will change several files due to some formatting change. I would like to take that on separately from unbreaking CI.
* Updating changelog * Update appdmg to 0.6.4 to work with macos 12.3 (#10886) * restrict click to < 8.1 for black pallets/click#2225 Doing this instead of updating since updating black will change several files due to some formatting change. I would like to take that on separately from unbreaking CI. * Check for vulnerable openssl (#10988) * Check for vulnerable openssl * Update OpenSSL on MacOS * First attempt - openssl Ubuntu 18.04 and 20.04 * place local/bin ahead in PATH * specify install openssl * correct path * run ldconfig * stop building and check for patched openssl * spell sudo right by removing it * Remove openssl building - 1st attempt RHs * Test Windows OpenSSL version HT @AmineKhaldi * Get updated openssl version (#10991) * Get updated openssl version * Update pyinstaller * Fix typo * lets try this * Let's try this * Try this Co-authored-by: Earle Lowe <e.lowe@chia.net> * Gh 1.3.3v2 (#11011) * Non Hobo patch the winstaller for CVE-2022-0778 (#10995) * install.sh is not upgrading OpenSSL on MacOS (#11003) * MacOS isn't updating OpenSSL in install.sh * Exit if no brew on MacOS * Code the if tree like a pro instead. Co-authored-by: Kyle Altendorf <sda@fstab.net> Co-authored-by: Kyle Altendorf <sda@fstab.net> * Remove hobo patch * apt show not needed (#10997) * install/upgrade openssl on Arch Linux also * Update CHANGELOG * revert Arch change backport Co-authored-by: Kyle Altendorf <sda@fstab.net> Co-authored-by: wallentx <william.allentx@gmail.com> Co-authored-by: Chris Marslender <chrismarslender@gmail.com> Co-authored-by: Gene Hoffman <30377676+hoffmang9@users.noreply.github.com> Co-authored-by: William Allen <wallentx@users.noreply.github.com> Co-authored-by: Earle Lowe <e.lowe@chia.net>
https://black.readthedocs.io/en/stable/change_log.html pallets/click#2225 psf/black#2964 Black was raising an error when used with pre-commit: `ImportError: cannot import name '_unicodefun' from 'click'`. Black 22.3.0 resolves the `ImportError`.
This fixes pallets/click#2225
* Update black This fixes pallets/click#2225 * Update black and python version Python version is updated to satisfy black constraint The current project's Python requirement (>=3.6,<4.0) is not compatible with some of the required packages Python requirement: - black requires Python >=3.6.2, so it will not be satisfied for Python >=3.6,<3.6.2 * Reformat files with black 22.3.0 * Remove black from pyproject.toml Co-authored-by: Branch Vincent <branchevincent@gmail.com> * Revert updating python version Co-authored-by: Branch Vincent <branchevincent@gmail.com>
Environment:
This used to work fine with previous version, now I get this error when running tools like
black
:The text was updated successfully, but these errors were encountered: