Pylint no-member warnings in 4.5.4.58
envgap__opencv__opencv-python-570
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
84bfd763bf8c65861c3fb495320cfc13e9f59eaa- Manifest
setup.py- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
opencv/opencv-python #570 · read the original issue
### Expected behaviour Pylint was previously able to inspect `cv2` member existence with the `extension-pkg-whitelist` parameter. ### Actual behaviour For opencv-python-4.5.4.58, pylint can no longer inspect the members. ### Steps to reproduce On Windows 10, Python 3.8 64bit, using Pylint 2.11.1: ```py """Test module test.py""" from cv2 import getStructuringElement, MORPH_ELLIPSE a = getStructuringElement(MORPH_ELLIPSE, (3, 3)) ``` With opencv-python-4.5.3.56: ``` $ pylint test.py --extension-pkg-whitelist=cv2 ------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 5.00/10, +5.00) ``` With opencv-python-4.5.4.58: ``` $ pylint test.py --extension-pkg-whitelist=cv2 ************* Module test test.py:2:0: E0611: No name 'getStructuringElement' in module 'cv2' (no-name-in-module) test.py:2:0: E0611: No name 'MORPH_ELLIPSE' in module 'cv2' (no-name-in-module) ---------------------------------------------------------------------- Your code has been rated at -40.00/10 (previous run: 10.00/10, -50.00) ``` ##### Issue submission checklist - [x] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.) <!-- Use Q&A forums such as https://answers.opencv.org/questions/ and https://stackoverflow.com/ and other communities to discuss problems. Tickets without real issue statements related to this build toolchain will be closed. --> - [x] I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here) <!-- If you have some OpenCV bug report which needs to fixed in the C++ code, please report issue to the OpenCV repository: https://github.com/opencv/opencv/issues See also: * OpenCV documentation: https://docs.opencv.org * OpenCV FAQ page: https://github.com/opencv/opencv/wiki/FAQ * OpenCV forum: https://answers.opencv.org * Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv --> - [x] The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency") - [x] I'm using the latest version of ``opencv-python``
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]