Azure / Azure/azure-sdk-for-python

[pylint] Pylint fails with import-error + no-name-in-module when there's a conflict between namespace packages

Abierto
#43,530 0 comentarios 1 reacción 2 asignados Reclamado por @scbedd Ver en GitHub
Lenguaje dominante
Python
Estrellas
5.6k
Forks
3.4k
Merge medio
2 d 2 h
PR fusionados (30 d)
213

Descripción

azure-confidentialledger has a hard dependency on azure-confidentialledger-certificate. Seems that with the way the namespaces are resolved pylint doesnt recognize that the certificate package was installed. This leads to the `import-error` and `no-name-in-module` errors.

See this CI run: https://dev.azure.com/azure-sdk/public/_build/results?buildId=5456852&view=logs&jobId=b70e5e73-bbb6-5567-0939-8415943fadb9&j=b70e5e73-bbb6-5567-0939-8415943fadb9&t=5da75d26-b661-5189-46a3-f9dd247b5d85

The errors have been ignored so the packages arent blocked on this, but to repro just remove the ignores from the patch.py files in the azure-confidentialledger package.

cc @l0lawrence @scbedd

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.