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

[glow] Fixing CI issues after changes in psf/black formatting utility #5929

Closed
wants to merge 1 commit into from

Conversation

khabinov
Copy link
Contributor

@khabinov khabinov commented Mar 25, 2022

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

@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D35149268

khabinov added a commit to khabinov/glow that referenced this pull request Mar 31, 2022
Summary: Pull Request resolved: pytorch#5929

Differential Revision: D35149268

fbshipit-source-id: 7f04225765111a6b8fe588495d4f7059bf72c549
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D35149268

khabinov added a commit to khabinov/glow that referenced this pull request Mar 31, 2022
Summary: Pull Request resolved: pytorch#5929

Differential Revision: D35149268

fbshipit-source-id: 1e34db3826ad5e2ae9a7eb9b37bc43677e61f0e2
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D35149268

khabinov added a commit to khabinov/glow that referenced this pull request Mar 31, 2022
Summary: Pull Request resolved: pytorch#5929

Differential Revision: D35149268

fbshipit-source-id: 0dce0045819fc28dd5491f1e4e3e02d0e01faf5c
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D35149268

khabinov added a commit to khabinov/glow that referenced this pull request Mar 31, 2022
Summary: Pull Request resolved: pytorch#5929

Differential Revision: D35149268

fbshipit-source-id: ed184cea6b858eb63503111badd3574831dc20e3
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D35149268

khabinov added a commit to khabinov/glow that referenced this pull request Mar 31, 2022
…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
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D35149268

@khabinov khabinov changed the title Dummy commit to check CI [glow] Fixing CI issues after changes in psf/black formatting utility Mar 31, 2022
…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
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D35149268

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

Successfully merging this pull request may close these issues.

None yet

2 participants