๋ฒ๊ทธ ์ค๋ช
Airflow์์ ๊ธฐ๋ณธ์ ์ผ๋ก ์ ํด์๊ธฐ๊ฐ ์ผ์ ธ ์๋ 2์ผ ์ ์ ๋ฆด๋ฆฌ์ค๋ PIP๋ฅผ ์ฌ์ฉํ๋ ค๊ณ ํ ๋ ๋ฌธ์ ๊ฐ ๋ฐ์ํฉ๋๋ค.
ERROR : ์์ฒญ oauthlib [signedtoken]> = https://files.pythonhosted.org/packages/e5/54/4f96c51b171cf3a64a04b8c5167268803205bc5943b5cdf70bd770727b88/oauthlib-1.1.0-1.tar.gz#sha256=0f786c5573248a38efa86c48c59c0c93140ac836ab2a246aeefd8f9039e999ba์์ 1.0.0 (ํ jira- >apache-airflow==1.10.13) ๋ฉํ๋ฐ์ดํฐ์ ๋ค๋ฅธ ๋ฒ์ ์ด ์์ต๋๋ค: '1.1.0'
๋ฒ์ ๋ฐฉ๋ฒ
pip install --upgrade pip
pip --version
๋ 20.3์ ๋ฐํํด์ผ ํฉ๋๋ค.pip install "https://github.com/apache/airflow/archive/v1-10-test.tar.gz#egg=apache-airflow[all]" --constraint https://raw.githubusercontent.com/apache/airflow/constraints-1-10/constraints-3.6.txt
Collecting oauthlib[signedtoken]>=1.0.0
Using cached oauthlib-3.0.2-py2.py3-none-any.whl (143 kB)
Using cached oauthlib-3.0.1-py2.py3-none-any.whl (142 kB)
Using cached oauthlib-3.0.0-py2.py3-none-any.whl (142 kB)
Using cached oauthlib-2.1.0-py2.py3-none-any.whl (121 kB)
Using cached oauthlib-2.0.7-py2.py3-none-any.whl (124 kB)
Using cached oauthlib-2.0.6.tar.gz (127 kB)
Using cached oauthlib-2.0.5.tar.gz (129 kB)
Using cached oauthlib-2.0.4.tar.gz (127 kB)
Using cached oauthlib-2.0.3.tar.gz (127 kB)
Using cached oauthlib-2.0.2.tar.gz (125 kB)
Using cached oauthlib-2.0.1.tar.gz (122 kB)
Using cached oauthlib-2.0.0.tar.gz (122 kB)
Using cached oauthlib-1.1.2.tar.gz (111 kB)
Using cached oauthlib-1.1.1.tar.gz (108 kB)
Using cached oauthlib-1.1.0-1.tar.gz (106 kB)
ERROR: Requested oauthlib[signedtoken]>=1.0.0 from https://files.pythonhosted.org/packages/e5/54/4f96c51b171cf3a64a04b8c5167268803205bc5943b5cdf70bd770727b88/oauthlib-1.1.0-1.tar.gz#sha256=0f786c5573248a38efa86c48c59c0c93140ac836ab2a246aeefd8f9039e999ba (from jira->apache-airflow[all]) has different version in metadata: '1.1.0'
````
Apparently, metadata in published oauthlib 1.1.0-1 is wrong snd points to 1.1.0.
The same command with the legacy resolver works fine:
pip install --use-deprecated ๋ ๊ฑฐ์ ๋ฆฌ์กธ๋ฒ " https://github.com/apache/airflow/archive/v1-10-test.tar.gz#egg =apache-airflow[all]" --constraint https:/ /raw.githubusercontent.com/apache/airflow/constraints-1-10/constraints-3.6.txt
```
์์๋๋ ํ๋
๋ฆฌ์กธ๋ฒ๊ฐ ์์๋ ๋ฉํ๋ฐ์ดํฐ๋ก ์ธํด ์์๋์ง ์์ ๊ฒ์ผ๋ก ์์ํฉ๋๋ค.
PIP https://github.com/pypa/pip/issues/9203 ์์ ์ ์ฌํ ๋ฌธ์ ๋ฅผ ์ด์์ต๋๋ค. ๋๊ฐ ๊ณ ์น ์ ์๋์ง ํ์คํ์ง ์๊ธฐ ๋๋ฌธ์
๋๋ค.
pip install oauthlib[signedtoken]>=1.0.0
์๋ํ์ต๋๋ค.
์์๋๋ก ์๋ํฉ๋๋ค. ์ฐ๋ฆฌ๊ฐ ๋ฌด์์ ๋ ํ ์ ์๋์ง ์ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค.
์ด์ฉ๋ฉด ytou๋ ๋ฌธ์ ๊ฐ ๋๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ฒ์ ์ ์ ๊ฑฐ/๋์ด๋ผ ์ ์์ต๋๊น? ์ฐ๋ฆฌ์ ๊ฒฝ์ฐ oauthlub์ ์ ํ์ ์ถ๊ฐํ๋ ค๊ณ ํ ์๋ ์์ต๋๋ค!
pip install oauthlib[signedtoken]>=1.0.0
์๋ํ์ต๋๋ค.
์คํจํ ๋ฒ์ ์ด๋ฏ๋ก pip install oauthlib==1.1.0
์๋ํ์ญ์์ค. pip 20.3์๋ ์ถฉ๋์ ์ญ์ถ์ ํ๋ ๋ฆฌ์กธ๋ฒ๊ฐ ์์ต๋๋ค.
์ด ๋ฒ์ ์ ์ก์๋น๊ธฐ๋ฉด ์์ ํด์ผ ํ๋ค๋ PIP ๊ฐ๋ฐ์๊ฐ ํ์ธํ์ต๋๋ค. https://github.com/pypa/pip/issues/9203#issuecomment -737891765
์ ์ง ๋ณด์๊ฐ ๊ทธ๊ฒ์ ์ก์ ๋น๊ธฐ๋ ๋ฐ ๊ทธ๋ ๊ฒ ์น์ ํ ๊น์?
์ฌ๋ฌ๋ถ์ด ํด๋น ๋ฆด๋ฆฌ์ค๋ฅผ ์ก์๋น๊ธธ ์ ์๋ค๋ฉด(https://pypi.org/help/#yanked) Airflow์์ ์ฐ๋ฆฌ์ ๊ฐ์ ๋ ๋ง์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ์ค๋ฅ ์์ด ์๋ก์ด PIP ํด์๊ธฐ๋ฅผ ์ฌ์ฉํ ์ ์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
๋น์ ์ด ํ๊ณ ์๋ ๋ชจ๋ ์ผ์ ์ ๋ง๋ก ๊ฐ์ฌ๋๋ฆฝ๋๋ค
์๋
ํ์ธ์,
๋ฆด๋ฆฌ์ค๋ฅผ ๊บผ๋์ต๋๋ค. ์ง๊ธ ๊ด์ฐฎ์์ง ์๋ ค์ฃผ์ธ์.
๋ฌธ์ ์ธ์ฌ
๊ฐ์ฌํฉ๋๋ค ๐
์ ๋ง ๊ฐ์ฌํฉ๋๋ค ! ์ ๋ง ๊ฐ์ฌํฉ๋๋ค.
๋ถํํ๋ PIP ๊ด๋ฆฌ์ ํ์ธ์๋ ๋ถ๊ตฌํ๊ณ ์๋ํ์ง ์์์ต๋๋ค. https://github.com/pypa/pip/issues/9203#issuecomment -738395432
@JonathanHuot๋ฅผ ์์ ๋กญ๊ฒ ํ์ด์ฃผ์ธ์ .
์ ๋ฐ์ดํธ๋ง ํ๋ฉด ๋ฉ๋๋ค. ์์ง ํ์ง ๋ง์ธ์. :). ์์ ์ด ์ค๋ ๊ฒ ๊ฐ์ต๋๋ค https://github.com/pypa/pip/pull/9226
์ด๊ฒ์ด ์ง๊ธ ์์ ๋ ๊ฒ ๊ฐ์ต๋๋ค(pip 21.0์ ์ฌ์ฉํ์ฌ ํ ์คํธ๋จ).
์๋ ค์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค :)
@JonathanHuot ์ฐ๋ฆฌ๊ฐ ์์ง ์ถ์ unyank๋์?
๋๋ ๋ฆด๋ฆฌ์ค๋ฅผ ํ์์ต๋๋ค. ๋๊ตฐ๊ฐ๊ฐ ์ฌ์ ํ ์๋ํ๋์ง ํ์ธํ ์ ์๋ค๋ฉด ์ข์ ๊ฒ์ ๋๋ค. :)
์๋ํฉ๋๋ค :)
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋๋ ๋ฆด๋ฆฌ์ค๋ฅผ ํ์์ต๋๋ค. ๋๊ตฐ๊ฐ๊ฐ ์ฌ์ ํ ์๋ํ๋์ง ํ์ธํ ์ ์๋ค๋ฉด ์ข์ ๊ฒ์ ๋๋ค. :)