open-mmlab / mmcv

OpenMMLab Computer Vision Foundation
https://mmcv.readthedocs.io/en/latest/
Apache License 2.0
5.91k stars 1.65k forks source link

improve error handling and faq.md #2976

Open YiyaoYang1 opened 1 year ago

YiyaoYang1 commented 1 year ago

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Three subclasses of ImportError are defined in order to help users solve the following errors.

*DLL load failed while importing _ext https://github.com/open-mmlab/mmcv/issues/2937

*undefined symbol https://github.com/open-mmlab/mmcv/issues/2904

*No module named 'mmcv._ext' https://github.com/open-mmlab/mmcv/issues/2929

Modification

Please briefly describe what modification is made in this PR.

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repositories? If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

Before PR:

After PR:

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.