Azure / Azure/azure-sdk-for-python

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

Aperta
#43,530 0 commenti 1 reazione 2 assegnatari Rivendicata da @scbedd Vedi su GitHub
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g
PR unite (30g)
217

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.