描述错误
在 Airflow 中,当我们尝试使用 2 天前发布的 PIP 时遇到问题,该 PIP 默认情况下启用了新的解析器。
ERROR:请求oauthlib [signedtoken]> = 1.0.0从https://files.pythonhosted.org/packages/e5/54/4f96c51b171cf3a64a04b8c5167268803205bc5943b5cdf70bd770727b88/oauthlib-1.1.0-1.tar.gz#sha256=0f786c5573248a38efa86c48c59c0c93140ac836ab2a246aeefd8f9039e999ba(从jira- >apache-airflow==1.10.13) 在元数据中有不同的版本:'1.1.0'
如何繁殖
pip install --upgrade pip
pip --version
应该返回 20.3pip 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 legacy-resolver " 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
。
它按预期工作。 我不确定我们还能做什么。
也许你可以删除/猛拉有问题的库版本? 在我们的案例中,我也可以尝试为 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
维护者会这么好心把它拉出来吗?
如果你们可以 yanked (https://pypi.org/help/#yanked) 该版本,它应该可以帮助我们在 Airflow 和希望更多像我们这样的库使用新的 PIP 解析器而不会出错。
真的很感谢你们所做的所有工作
你好,
我已经取消了发布。 让我知道现在是否可以。
问候
谢谢,谢谢🙏
只需更新 - 请不要解开它:)。 似乎修复即将到来https://github.com/pypa/pip/pull/9226
看起来现在已经修复了(使用 pip 21.0 测试)
感谢您让我们知道 :)
@JonathanHuot我们是否取消了发布?
我已经取消了发布,如果有人可以确认它仍然有效,那就太好了:)
作品:)
最有用的评论
我已经取消了发布,如果有人可以确认它仍然有效,那就太好了:)