Skip to content
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

[python] Package "click" has a new version which breaks linting in CI #96

Closed
olleolleolle opened this issue Mar 29, 2022 · 1 comment · Fixed by #97
Closed

[python] Package "click" has a new version which breaks linting in CI #96

olleolleolle opened this issue Mar 29, 2022 · 1 comment · Fixed by #97

Comments

@olleolleolle
Copy link
Contributor

olleolleolle commented Mar 29, 2022

👓 What did you see?

python CI broke on using pyflakes, I think, and in doing so, reported a traceback.

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

This issue in another Python-using project describes the problem:
dask/distributed#6013

black....................................................................Failed
- hook id: black
- exit code: 1

Traceback (most recent call last):
  File "/home/runner/.cache/pre-commit/repoa_4yao8n/py_env-python3.10/bin/black", line 8, in <module>
    sys.exit(patched_main())
  File "/home/runner/.cache/pre-commit/repoa_4yao8n/py_env-python3.10/lib/python3.10/site-packages/black/__init__.py", line 1372, in patched_main
    patch_click()
  File "/home/runner/.cache/pre-commit/repoa_4yao8n/py_env-python3.10/lib/python3.10/site-packages/black/__init__.py", line 1358, in patch_click
    from click import _unicodefun
ImportError: cannot import name '_unicodefun' from 'click' (/home/runner/.cache/pre-commit/repoa_4yao8n/py_env-python3.10/lib/python3.10/site-packages/click/__init__.py)

flake8...................................................................Passed
Error: Process completed with exit code 1.

✅ What did you expect to see?

A passing CI for Python.

📦 Which tool/library version are you using?

Well, this is here, in this repo, in CI.

🔬 How could we reproduce it?

See
https://github.com/cucumber/cucumber-expressions/runs/5733063101?check_suite_focus=true

📚 Any additional context?

@olleolleolle olleolleolle changed the title [python] click new version breaks CI [python] Package "click" has a new version which breaks linting in CI Mar 29, 2022
@olleolleolle
Copy link
Contributor Author

@jsa34 Do you know how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant