Décrivez le bogue
Dans Airflow, nous rencontrons des problèmes lorsque nous essayons d'utiliser le PIP publié il y a 2 jours qui a le nouveau résolveur activé par défaut.
ERREUR : demande oauthlib[signedtoken]>=1.0.0 à partir de https://files.pythonhosted.org/packages/e5/54/4f96c51b171cf3a64a04b8c5167268803205bc5943b5cdf70bd770727b88/oauthlib-1.1.0-1.tar.gz6ac55732 >apache-airflow==1.10.13) a une version différente dans les métadonnées : '1.1.0'
Comment reproduire
pip install --upgrade pip
pip --version
devrait renvoyer 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
```
Comportement prévisible
Je m'attends à ce que le résolveur ne soit pas cassé par des métadonnées cassées.
Ouverture d'un problème similaire dans PIP https://github.com/pypa/pip/issues/9203 car je ne sais pas qui peut le résoudre.
J'ai essayé pip install oauthlib[signedtoken]>=1.0.0
.
Cela fonctionne comme prévu. Je ne sais pas ce que nous pouvons faire d'autre.
Peut-être que vous pouvez supprimer/tirer la version de la bibliothèque incriminée ? Je peux aussi essayer d'ajouter une limitation à oauthlub dans notre cas !
J'ai essayé
pip install oauthlib[signedtoken]>=1.0.0
.
Essayez pip install oauthlib==1.1.0
, car c'est la version qui échoue. pip 20.3 a un résolveur qui revient en arrière sur les conflits.
Confirmé par les développeurs PIP que le retrait de cette version devrait le corriger. https://github.com/pypa/pip/issues/9203#issuecomment -737891765
Les mainteneurs seraient-ils si gentils de le retirer?
Si vous pouvez retirer (https://pypi.org/help/#yanked) cette version, cela devrait nous aider chez Airflow et, espérons-le, plus de bibliothèques comme nous à utiliser le nouveau résolveur PIP sans erreur.
J'apprécie vraiment tout le travail que vous faites
Salut,
J'ai arraché la sortie. Faites-moi savoir si tout va bien maintenant.
Salutations
Merci, j'apprécie
Merci beaucoup ! Vraiment apprécié.
Malheureusement, malgré la confirmation du responsable PIP, cela n'a pas fonctionné : https://github.com/pypa/pip/issues/9203#issuecomment -738395432
N'hésitez pas à détacher @JonathanHuot
Il suffit de mettre à jour - ne le retirez pas encore s'il vous plaît :). Il semble que le correctif arrive https://github.com/pypa/pip/pull/9226
On dirait que cela est corrigé maintenant (testé à l'aide de pip 21.0)
Merci de nous en informer :)
@JonathanHuot Avons-nous déjà décroché la sortie?
J'ai décroché la version, si quelqu'un pouvait confirmer qu'elle fonctionne toujours, ce serait génial :)
Travaux :)
Commentaire le plus utile
J'ai décroché la version, si quelqu'un pouvait confirmer qu'elle fonctionne toujours, ce serait génial :)