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
[glow] Fixing CI issues after changes in psf/black formatting utility #5929
Conversation
This pull request was exported from Phabricator. Differential Revision: D35149268 |
Summary: Pull Request resolved: pytorch#5929 Differential Revision: D35149268 fbshipit-source-id: 7f04225765111a6b8fe588495d4f7059bf72c549
d6e2a85
to
8eebcab
Compare
This pull request was exported from Phabricator. Differential Revision: D35149268 |
Summary: Pull Request resolved: pytorch#5929 Differential Revision: D35149268 fbshipit-source-id: 1e34db3826ad5e2ae9a7eb9b37bc43677e61f0e2
8eebcab
to
db93025
Compare
This pull request was exported from Phabricator. Differential Revision: D35149268 |
Summary: Pull Request resolved: pytorch#5929 Differential Revision: D35149268 fbshipit-source-id: 0dce0045819fc28dd5491f1e4e3e02d0e01faf5c
db93025
to
9657145
Compare
This pull request was exported from Phabricator. Differential Revision: D35149268 |
Summary: Pull Request resolved: pytorch#5929 Differential Revision: D35149268 fbshipit-source-id: ed184cea6b858eb63503111badd3574831dc20e3
9657145
to
a7c1913
Compare
This pull request was exported from Phabricator. Differential Revision: D35149268 |
…ch#5929) Summary: Pull Request resolved: pytorch#5929 ## The problem Earlier this week `black` formatting utility got broken psf/black#2964. An example stack trace: ``` Traceback (most recent call last): File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/tmp/venv/lib/python3.9/site-packages/black/__main__.py", line 3, in <module> patched_main() File "/tmp/venv/lib/python3.9/site-packages/black/__init__.py", line 6606, in patched_main patch_click() File "/tmp/venv/lib/python3.9/site-packages/black/__init__.py", line 6595, in patch_click from click import _unicodefun # type: ignore ImportError: cannot import name '_unicodefun' from 'click' (/tmp/venv/lib/python3.9/site-packages/click/__init__.py) ``` Sample failed run https://app.circleci.com/pipelines/github/pytorch/glow/14399/workflows/db9175d4-6b03-4da1-8650-23001941a5a3/jobs/106452 ## The solution Seems that we have to update to version `22.3.0`. This change also required to upgrade some Python scripts from `python2` to `python3`. Differential Revision: D35149268 fbshipit-source-id: 88d7356bbf8eff316821e03e016515b863551b82
a7c1913
to
42dcd42
Compare
This pull request was exported from Phabricator. Differential Revision: D35149268 |
…ch#5929) Summary: Pull Request resolved: pytorch#5929 ## The problem Earlier this week `black` formatting utility got broken psf/black#2964. An example stack trace: ``` Traceback (most recent call last): File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/tmp/venv/lib/python3.9/site-packages/black/__main__.py", line 3, in <module> patched_main() File "/tmp/venv/lib/python3.9/site-packages/black/__init__.py", line 6606, in patched_main patch_click() File "/tmp/venv/lib/python3.9/site-packages/black/__init__.py", line 6595, in patch_click from click import _unicodefun # type: ignore ImportError: cannot import name '_unicodefun' from 'click' (/tmp/venv/lib/python3.9/site-packages/click/__init__.py) ``` Sample failed run https://app.circleci.com/pipelines/github/pytorch/glow/14399/workflows/db9175d4-6b03-4da1-8650-23001941a5a3/jobs/106452 ## The solution Seems that we have to update to version `22.3.0`. This change also required to upgrade some Python scripts from `python2` to `python3`. Reviewed By: hl475 Differential Revision: D35149268 fbshipit-source-id: e6a3af9ae8ff56d9e1e2209f3535744f0b19f33e
This pull request was exported from Phabricator. Differential Revision: D35149268 |
42dcd42
to
1ecd79d
Compare
The problem
Earlier this week black formatting utility got broken psf/black#2964.
An example stack trace:
Sample failed run https://app.circleci.com/pipelines/github/pytorch/glow/14399/workflows/db9175d4-6b03-4da1-8650-23001941a5a3/jobs/106452
The solution
Seems that we have to update to version 22.3.0. This change also required to upgrade some Python scripts from python2 to python3.
Differential Revision: D35149268