Azure / Azure/azure-sdk-for-python
[pylint] Pylint fails with import-error + no-name-in-module when there's a conflict between namespace packages
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.