Azure / Azure/azure-sdk-for-python

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

Offen
#43,530 0 Kommentare 1 Reaktion 2 zugewiesene Personen Beansprucht von @scbedd Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
5.6k
Forks
3.4k
Ø Merge
2 T.
Gemergte PRs (30 T.)
217

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.