-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocomplete suggestions not working for OpenCV built from source #1609
Comments
Could you try copying your built version to inside your interpreter's installed library folder, and see if that works? |
Already has soft-link after built:
|
Pylance does not inspect Can you provide some logs so we can see what is being resolved and what your final paths are? We bundle a stub for cv2, but perhaps it's not being applied with this dev setup. https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue |
Pylance language server output [Info - 9:35:05 AM] Pylance language server 2021.7.5 (pyright 06d75c6c) starting
[Info - 9:35:05 AM] Server root directory: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist
[Info - 9:35:05 AM] No configuration file found.
[Info - 9:35:05 AM] No pyproject.toml file found.
[Info - 9:35:05 AM] Setting pythonPath for service "extract_old_roof": "/Users/lky/miniforge3/bin/python"
[Warn - 9:35:05 AM] stubPath /Users/lky/code_repos/extract_old_roof/typings is not a valid directory.
[Info - 9:35:05 AM] Assuming Python version 3.9
[Info - 9:35:05 AM] Assuming Python platform Darwin
Search paths for /Users/lky/code_repos/extract_old_roof
/Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib
/Users/lky/code_repos/extract_old_roof
/Users/lky/code_repos/extract_old_roof/ls /usr/local/lib/python3.9/site-packages/cv2/python-3.9
/Users/lky/code_repos/extract_old_roof/typings
/Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stubs/...
/Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/bundled/stubs
/Users/lky/miniforge3/lib/python3.9
/Users/lky/miniforge3/lib/python3.9/lib-dynload
/Users/lky/miniforge3/lib/python3.9/site-packages
[Info - 9:35:05 AM] Searching for source files
[Info - 9:35:05 AM] Found 10 source files
[FG] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (12ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 2ms] (52ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/builtins.pyi (22ms)
[FG] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
[Info - 9:35:05 AM] Background analysis(1) root directory: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist
[Info - 9:35:05 AM] Background analysis(1) started
Background analysis message: setConfigOptions
Background analysis message: ensurePartialStubPackages
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: setFileOpened
Background analysis message: setFileOpened
Background analysis message: getDiagnosticsForRange
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (12ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 1ms] (51ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/builtins.pyi (18ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/typing.pyi [fs read 1ms] (18ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/typing.pyi (6ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (5ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/typing_extensions.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/datasets/__init__.py [fs read 1ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/datasets/__init__.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/datasets/_base.py [fs read 0ms] (25ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/datasets/_base.py (3ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/__init__.py [fs read 0ms] (36ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/__init__.py (4ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/externals/_pilutil.py [fs read 0ms] (8ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/externals/_pilutil.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/__init__.py [fs read 0ms] (8ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/__init__.py ...
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/__init__.py [fs read 0ms] (10ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/__init__.py ...
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numeric.py [fs read 0ms] (23ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numeric.py ...
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/umath.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/umath.py ...
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/bundled/native-stubs/numpy/core/_multiarray_umath.pyi [fs read 1ms] (44ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/bundled/native-stubs/numpy/core/_multiarray_umath.pyi (10ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/umath.py (54ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numerictypes.py [fs read 0ms] (7ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numerictypes.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/fromnumeric.py [fs read 0ms] (12ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/fromnumeric.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/arrayprint.py [fs read 0ms] (8ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/arrayprint.py (4ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/_asarray.py [fs read 1ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/_asarray.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/_ufunc_config.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/_ufunc_config.py (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numeric.py (101ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/records.py [fs read 0ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/records.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/memmap.py [fs read 0ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/memmap.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/function_base.py [fs read 0ms] (6ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/function_base.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/machar.py [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/machar.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/getlimits.py [fs read 0ms] (6ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/getlimits.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/shape_base.py [fs read 1ms] (7ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/shape_base.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/einsumfunc.py [fs read 0ms] (8ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/einsumfunc.py (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/__init__.py (177ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/__init__.py [fs read 1ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/__init__.py ...
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/type_check.py [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/type_check.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/index_tricks.py [fs read 0ms] (5ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/index_tricks.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/function_base.py [fs read 1ms] (20ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/function_base.py (9ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/nanfunctions.py [fs read 0ms] (7ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/nanfunctions.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/shape_base.py [fs read 0ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/shape_base.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/stride_tricks.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/stride_tricks.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/twodim_base.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/twodim_base.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/ufunclike.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/ufunclike.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/histograms.py [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/histograms.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/polynomial.py [fs read 1ms] (6ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/polynomial.py (4ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/utils.py [fs read 0ms] (7ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/utils.py (3ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/arraysetops.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/arraysetops.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/npyio.py [fs read 0ms] (15ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/npyio.py (5ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/financial.py [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/financial.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/arraypad.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/arraypad.py (3ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/_version.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/_version.py (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/__init__.py (121ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/matrixlib/__init__.py [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/matrixlib/__init__.py ...
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/matrixlib/defmatrix.py [fs read 0ms] (5ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/matrixlib/defmatrix.py (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/matrixlib/__init__.py (6ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/__init__.py (317ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/multiarray.py [fs read 0ms] (10ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/multiarray.py (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/os/__init__.pyi [fs read 0ms] (5ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/os/__init__.pyi (3ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/abc.pyi (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/io.pyi [fs read 1ms] (2ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/io.pyi (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/os/path.pyi [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/os/path.pyi ...
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/posixpath.pyi [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/posixpath.pyi (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/os/path.pyi (2ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/posix.pyi [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/posix.pyi (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stubs/Pillow/PIL/__init__.pyi [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stubs/Pillow/PIL/__init__.pyi (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stubs/Pillow/PIL/Image.pyi [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stubs/Pillow/PIL/Image.pyi (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/pathlib.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/pathlib.pyi (2ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/types.pyi [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/types.pyi (1ms)
[BG(1)] getSemanticTokens full at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (604ms)
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at /Users/lky/code_repos/extract_old_roof/GLCM/GLCM_inference.py ...
[BG(1)] parsing: /Users/lky/code_repos/extract_old_roof/GLCM/GLCM_inference.py (4ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/GLCM/GLCM_inference.py ...
[BG(1)] parsing: /Users/lky/code_repos/extract_old_roof/GLCM/GLCM_common.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/GLCM/GLCM_common.py (0ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/GLCM/GLCM_inference.py (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/datetime.pyi [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/datetime.pyi (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/genericpath.pyi [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/genericpath.pyi (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/feature/__init__.py [fs read 1ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/feature/__init__.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/feature/texture.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/feature/texture.py (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/pickle.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/pickle.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/__init__.py [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/__init__.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/_classes.py [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/_classes.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/linear_model/_base.py [fs read 0ms] (10ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/linear_model/_base.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/base.py [fs read 0ms] (6ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/base.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/_base.py [fs read 0ms] (7ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/_base.py (3ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/deprecation.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/deprecation.py (0ms)
[BG(1)] parsing: [virtual] /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/validation.pyi [fs read 1ms] (4ms)
[BG(1)] binding: [virtual] /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/validation.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/_shared/utils.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/_shared/utils.py (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/functools.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/functools.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/overrides.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/overrides.py (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/ast.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/ast.pyi ...
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/_ast.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/_ast.pyi (2ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/ast.pyi (5ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/compat/_inspect.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/compat/_inspect.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/testing/__init__.py [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/testing/__init__.py ...
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/testing/_private/utils.py [fs read 0ms] (12ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/testing/_private/utils.py (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/testing/__init__.py (16ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/testing/_private/nosetester.py [fs read 1ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/testing/_private/nosetester.py (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/sys.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/sys.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/_globals.py [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/_globals.py (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/operator.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/operator.pyi (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/warnings.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/warnings.pyi (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/math.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/math.pyi (1ms)
[BG(1)] getSemanticTokens full at /Users/lky/code_repos/extract_old_roof/GLCM/GLCM_inference.py (263ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: analyze
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/GLCM/GLCM_inference.py ...
[BG(1)] checking: /Users/lky/code_repos/extract_old_roof/GLCM/GLCM_inference.py (31ms)
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/GLCM/GLCM_inference.py (31ms)
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] checking: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
Background analysis message: resumeAnalysis
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/typing.pyi [fs read 4ms] (55ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/typing.pyi (6ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 1ms] (10ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (1ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (3ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/typing_extensions.pyi (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/datasets/__init__.py [fs read 1ms] (4ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/datasets/__init__.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/datasets/_base.py [fs read 0ms] (32ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/datasets/_base.py (3ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/__init__.py [fs read 1ms] (42ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/__init__.py (3ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/externals/_pilutil.py [fs read 0ms] (10ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/externals/_pilutil.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/__init__.py [fs read 0ms] (8ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/__init__.py ...
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/__init__.py [fs read 0ms] (11ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/__init__.py ...
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numeric.py [fs read 1ms] (26ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numeric.py ...
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/umath.py [fs read 1ms] (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/umath.py ...
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/bundled/native-stubs/numpy/core/_multiarray_umath.pyi [fs read 1ms] (45ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/bundled/native-stubs/numpy/core/_multiarray_umath.pyi (11ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/umath.py (57ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numerictypes.py [fs read 1ms] (8ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numerictypes.py (2ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/fromnumeric.py [fs read 1ms] (17ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/fromnumeric.py (4ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/arrayprint.py [fs read 1ms] (21ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/arrayprint.py (6ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/_asarray.py [fs read 1ms] (2ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/_asarray.py (0ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/_ufunc_config.py [fs read 1ms] (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/_ufunc_config.py (0ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numeric.py (126ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/records.py [fs read 0ms] (8ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/records.py (3ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/memmap.py [fs read 0ms] (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/memmap.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/function_base.py [fs read 1ms] (7ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/function_base.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/machar.py [fs read 1ms] (4ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/machar.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/getlimits.py [fs read 0ms] (6ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/getlimits.py (2ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/shape_base.py [fs read 1ms] (7ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/shape_base.py (2ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/einsumfunc.py [fs read 0ms] (9ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/einsumfunc.py (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/__init__.py (212ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/__init__.py [fs read 0ms] (2ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/__init__.py ...
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/type_check.py [fs read 0ms] (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/type_check.py (2ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/index_tricks.py [fs read 0ms] (6ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/index_tricks.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/function_base.py [fs read 1ms] (22ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/function_base.py (10ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/nanfunctions.py [fs read 0ms] (7ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/nanfunctions.py (2ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/shape_base.py [fs read 1ms] (5ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/shape_base.py (2ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/stride_tricks.py [fs read 1ms] (2ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/stride_tricks.py (0ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/twodim_base.py [fs read 1ms] (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/twodim_base.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/ufunclike.py [fs read 0ms] (1ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/ufunclike.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/histograms.py [fs read 0ms] (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/histograms.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/polynomial.py [fs read 1ms] (7ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/polynomial.py (4ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/utils.py [fs read 1ms] (8ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/utils.py (3ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/arraysetops.py [fs read 0ms] (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/arraysetops.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/npyio.py [fs read 0ms] (15ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/npyio.py (6ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/financial.py [fs read 1ms] (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/financial.py (1ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/arraypad.py [fs read 1ms] (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/arraypad.py (3ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/_version.py [fs read 0ms] (1ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/_version.py (0ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/__init__.py (130ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/matrixlib/__init__.py [fs read 0ms] (0ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/matrixlib/__init__.py ...
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/matrixlib/defmatrix.py [fs read 1ms] (4ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/matrixlib/defmatrix.py (3ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/matrixlib/__init__.py (7ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/__init__.py (364ms)
[FG] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/multiarray.py [fs read 1ms] (11ms)
[FG] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/multiarray.py (1ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/os/__init__.pyi [fs read 1ms] (6ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/os/__init__.pyi (3ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/abc.pyi [fs read 1ms] (1ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/abc.pyi (1ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/io.pyi [fs read 1ms] (2ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/io.pyi (1ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/os/path.pyi [fs read 0ms] (1ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/os/path.pyi ...
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/posixpath.pyi [fs read 0ms] (1ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/posixpath.pyi (0ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/os/path.pyi (1ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/posix.pyi [fs read 0ms] (1ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/posix.pyi (0ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stubs/Pillow/PIL/__init__.pyi [fs read 0ms] (0ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stubs/Pillow/PIL/__init__.pyi (0ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stubs/Pillow/PIL/Image.pyi [fs read 0ms] (2ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stubs/Pillow/PIL/Image.pyi (1ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/pathlib.pyi [fs read 1ms] (2ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/pathlib.pyi (0ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/types.pyi [fs read 1ms] (3ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.5/dist/typeshed-fallback/stdlib/types.pyi (1ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: analyze
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (4ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
[BG(1)] checking: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (49ms)
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (54ms)
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1627522505337 at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (2ms)
Background analysis message: resumeAnalysis
[FG] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (2ms)
[FG] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: analyze
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (2ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
[FG] completion at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py:12:11 ...
[FG] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (2ms)
[FG] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
[FG] completion at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py:12:11 [found 197 items] (52ms)
[BG(1)] checking: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (12ms)
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (14ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1627522747578 at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
[BG(1)] getSemanticTokens delta previousResultId:1627522747578 at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (25ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: analyze
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] checking: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
Background analysis message: resumeAnalysis
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] completion at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py:12:12 ...
[FG] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (3ms)
[FG] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
[FG] completion at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py:12:12 [found 0 items] (32ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] completion at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py:12:13 ...
[FG] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
[FG] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
[FG] completion at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py:12:13 [found 0 items] (20ms)
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1627522748045 at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (3ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
[BG(1)] getSemanticTokens delta previousResultId:1627522748045 at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (54ms)
Background analysis message: analyze
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] checking: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: resumeAnalysis
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1627522751090 at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (2ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
[BG(1)] getSemanticTokens delta previousResultId:1627522751090 at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (42ms)
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
[FG] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (2ms)
[FG] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1627522752245 at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] parsing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (2ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (0ms)
[BG(1)] getSemanticTokens delta previousResultId:1627522752245 at /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (43ms)
Background analysis message: analyze
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py ...
[BG(1)] checking: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/other/opencl_test.py (1ms)
Background analysis message: resumeAnalysis
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: markFilesDirty
Background analysis message: analyze environment.yml name: base
channels:
- apple
- conda-forge
dependencies:
- absl-py=0.10.0=pyhd8ed1ab_1
- appdirs=1.4.4=pyh9f0ad1d_0
- astunparse=1.6.3=pyhd8ed1ab_0
- blosc=1.21.0=h9f76cd9_0
- brotli=1.0.9=h3422bc3_5
- brotli-bin=1.0.9=h3422bc3_5
- brotlipy=0.7.0=py39h5161555_1001
- brunsli=0.1=h9f76cd9_0
- bzip2=1.0.8=h3422bc3_4
- c-ares=1.17.1=h27ca646_1
- ca-certificates=2021.5.30=h4653dfc_0
- cached-property=1.5.2=hd8ed1ab_1
- cached_property=1.5.2=pyha770c72_1
- certifi=2021.5.30=py39h2804cbe_0
- cffi=1.14.6=py39hda8b47f_0
- cfitsio=3.470=ha83d327_7
- chardet=4.0.0=py39h2804cbe_1
- charls=2.2.0=h9f76cd9_0
- charset-normalizer=2.0.0=pyhd8ed1ab_0
- cloudpickle=1.6.0=py_0
- conda=4.10.3=py39h2804cbe_0
- conda-package-handling=1.7.3=py39h5161555_0
- cryptography=3.4.7=py39h73257c9_0
- cycler=0.10.0=py_2
- cytoolz=0.11.0=py39h5161555_3
- dask-core=2021.7.1=pyhd8ed1ab_0
- decorator=5.0.9=pyhd8ed1ab_0
- freetype=2.10.4=h17b34a0_1
- fsspec=2021.7.0=pyhd8ed1ab_0
- gast=0.4.0=pyh9f0ad1d_0
- giflib=5.2.1=h27ca646_2
- google-pasta=0.2.0=pyh8c360ce_0
- grpcio=1.34.1=py39h1eaaf2b_0
- h5py=3.1.0=nompi_py39h99babb8_100
- hdf5=1.10.6=nompi_h0fc092c_1114
- idna=3.1=pyhd3deb0d_0
- imagecodecs=2021.6.8=py39ha35f355_0
- imageio=2.9.0=py_0
- jbig=2.1=h3422bc3_2003
- joblib=1.0.1=pyhd8ed1ab_0
- jpeg=9d=h27ca646_0
- jxrlib=1.1=h27ca646_2
- keras-preprocessing=1.1.2=pyhd8ed1ab_0
- kiwisolver=1.3.1=py39h4d2d688_1
- kmodes=0.11.0=pyh44b312d_1
- krb5=1.19.1=hd92b7a7_0
- lcms2=2.12=had6a04f_0
- lerc=2.2.1=h9f76cd9_0
- libaec=1.0.5=hbdafb3b_0
- libblas=3.9.0=9_openblas
- libbrotlicommon=1.0.9=h3422bc3_5
- libbrotlidec=1.0.9=h3422bc3_5
- libbrotlienc=1.0.9=h3422bc3_5
- libcblas=3.9.0=9_openblas
- libcurl=7.77.0=h8fe1914_0
- libcxx=12.0.1=h168391b_0
- libdeflate=1.7=h27ca646_5
- libedit=3.1.20191231=hc8eb9b7_2
- libev=4.33=h642e427_1
- libffi=3.3=h9f76cd9_2
- libgfortran=5.0.0.dev0=11_0_1_hf114ba7_22
- libgfortran5=11.0.1.dev0=hf114ba7_22
- liblapack=3.9.0=9_openblas
- libnghttp2=1.43.0=hf3018f0_0
- libopenblas=0.3.15=openmp_hf330de4_1
- libpng=1.6.37=hf7e6567_2
- libprotobuf=3.16.0=hccf11d3_0
- libssh2=1.9.0=hb80f160_6
- libtiff=4.3.0=hc6122e1_1
- libwebp-base=1.2.0=h27ca646_2
- libzopfli=1.0.3=h9f76cd9_0
- llvm-openmp=12.0.1=hf3c4609_0
- locket=0.2.0=py_2
- lz4-c=1.9.3=h9f76cd9_0
- matplotlib=3.4.2=py39hdf13c20_0
- matplotlib-base=3.4.2=py39h5aa4fe7_0
- ncurses=6.2=h9aa5885_4
- networkx=2.3=py_0
- numpy=1.19.5=py39h1f3b974_2
- olefile=0.46=pyh9f0ad1d_1
- onnx=1.9.0=py39h3d51e7f_1
- onnxruntime=1.7.2=py39h803dda9_3
- openjpeg=2.4.0=h062765e_1
- openssl=1.1.1k=h27ca646_0
- opt_einsum=3.3.0=pyhd8ed1ab_1
- packaging=21.0=pyhd8ed1ab_0
- pandas=1.3.0=py39h7f752ed_0
- partd=1.2.0=pyhd8ed1ab_0
- pillow=8.3.1=py39ha74c66e_0
- pip=21.1.3=pyhd8ed1ab_0
- pooch=1.4.0=pyhd8ed1ab_0
- protobuf=3.16.0=py39hfb83b0d_0
- pycosat=0.6.3=py39h5161555_1006
- pycparser=2.20=pyh9f0ad1d_2
- pyopenssl=20.0.1=pyhd8ed1ab_0
- pyparsing=2.4.7=pyh9f0ad1d_0
- pysocks=1.7.1=py39h2804cbe_3
- python=3.9.6=h54d631c_1_cpython
- python-dateutil=2.8.2=pyhd8ed1ab_0
- python_abi=3.9=2_cp39
- pytz=2021.1=pyhd8ed1ab_0
- pywavelets=1.1.1=py39h038c1d3_3
- pyyaml=5.4.1=py39h46acfd9_0
- re2=2021.06.01=hbdafb3b_0
- readline=8.1=hedafd6a_0
- requests=2.26.0=pyhd8ed1ab_0
- ruamel_yaml=0.15.80=py39h5161555_1004
- scikit-image=0.18.2=py39h7f752ed_0
- scikit-learn=0.24.2=py39hab69601_1
- scipy=1.7.0=py39h5060c3b_0
- setuptools=49.6.0=py39h2804cbe_3
- six=1.15.0=pyh9f0ad1d_0
- snappy=1.1.8=hc88da5d_3
- sqlite=3.36.0=h72a2b83_0
- tensorflow-deps=2.5.0=1
- termcolor=1.1.0=py_2
- threadpoolctl=2.2.0=pyh8a188c0_0
- tifffile=2021.7.2=pyhd8ed1ab_0
- tk=8.6.10=hf7e6567_1
- toolz=0.11.1=py_0
- tornado=6.1=py39h5161555_1
- tqdm=4.61.2=pyhd8ed1ab_1
- typing-extensions=3.7.4.3=0
- typing_extensions=3.7.4.3=py_0
- tzdata=2021a=he74cb21_1
- urllib3=1.26.6=pyhd8ed1ab_0
- wheel=0.35.1=pyh9f0ad1d_0
- wrapt=1.12.1=py39h5161555_3
- xz=5.2.5=h642e427_1
- yaml=0.2.5=h642e427_0
- zfp=0.5.5=hbdafb3b_5
- zlib=1.2.11=h31e879b_1009
- zstd=1.5.0=h861e0a7_0
- pip:
- attrs==21.2.0
- cachetools==4.2.2
- dill==0.3.4
- flatbuffers==1.12
- future==0.18.2
- google-auth==1.33.1
- google-auth-oauthlib==0.4.4
- googleapis-common-protos==1.53.0
- keras-nightly==2.5.0.dev2021032900
- markdown==3.3.4
- oauthlib==3.1.1
- promise==2.3
- pyasn1==0.4.8
- pyasn1-modules==0.2.8
- requests-oauthlib==1.3.0
- rsa==4.7.2
- tensorboard==2.5.0
- tensorboard-data-server==0.6.1
- tensorboard-plugin-wit==1.8.0
- tensorflow-datasets==4.3.0
- tensorflow-estimator==2.5.0
- tensorflow-macos==2.5.0
- tensorflow-metadata==1.1.0
- tensorflow-metal==0.1.1
- werkzeug==2.0.1 |
This line is suspicious:
This to me looks like a symlink error or something. I'm also not seeing |
Can you show the output of:
Just to see the structure? |
|
Thanks. What might be happening in this case is that your own setup differs from what is normally shipped on PyPI; I think that our current stub is for |
mdfind __init__.py | grep cv2
/Library/OpenCV/opencv-4.5.3/modules/python/package/cv2/_extra_py_code/__init__.py
/Library/OpenCV/opencv-4.5.3/modules/python/package/cv2/__init__.py
/usr/local/lib/python3.9/site-packages/cv2/__init__.py
/usr/local/lib/python3.9/site-packages/cv2/_extra_py_code/__init__.py
/usr/local/lib/python3.9/site-packages/cv2/_extra_py_code/gapi/__init__.py
/Library/OpenCV/opencv-4.5.3/build/python_loader/cv2/__init__.py
/Library/OpenCV/opencv-4.5.3/build/python_loader/cv2/_extra_py_code/__init__.py
/Library/OpenCV/opencv-4.5.3/build/python_loader/cv2/_extra_py_code/gapi/__init__.py I must build the OpenCV itself, because my platform is Apple Silicon, install from PyPl is not compatible currently. This is my build & setup process. How to improve that to solve Autocomplete suggestions not working under Pylance? |
try renaming |
I have no file (base) ➜ ~ ls /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/
django jmespath openpyxl pythonwin-stubs sklearn-stubs sympy-stubs win32comext-stubs
gym-stubs matplotlib pandas scipy-stubs sqlalchemy win32-stubs And no any result How to produce the cv2.pyi ? |
sorry. i think its under |
Yes, I have [Info - 9:15:51 AM] Pylance language server 2021.7.7 (pyright fa453b2e) starting
[Info - 9:15:51 AM] Server root directory: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist
[Info - 9:15:52 AM] Background analysis(1) root directory: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist
[Info - 9:15:52 AM] Background analysis(1) started
[Info - 9:15:53 AM] No configuration file found.
[Info - 9:15:53 AM] No pyproject.toml file found.
[Info - 9:15:53 AM] Setting pythonPath for service "extract_old_roof": "/Users/lky/miniforge3/bin/python"
[Warn - 9:15:53 AM] stubPath /Users/lky/code_repos/extract_old_roof/typings is not a valid directory.
[Info - 9:15:53 AM] Assuming Python version 3.9
[Info - 9:15:53 AM] Assuming Python platform Darwin
Search paths for /Users/lky/code_repos/extract_old_roof
/Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib
/Users/lky/code_repos/extract_old_roof
/Library/OpenCV/opencv-4.5.3/build/lib/python3
/usr/local/lib/python3.9/site-packages/cv2/python-3.9
/Users/lky/code_repos/extract_old_roof/typings
/Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stubs/...
/Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs
/Users/lky/miniforge3/lib/python3.9
/Users/lky/miniforge3/lib/python3.9/lib-dynload
/Users/lky/miniforge3/lib/python3.9/site-packages
[Info - 9:15:53 AM] Searching for source files
[Info - 9:15:53 AM] Found 11 source files
[FG] parsing: /Users/lky/code_repos/extract_old_roof/GLCM/extract_old_roof_GLCM_deploy.py (27ms)
[FG] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 2ms] (45ms)
[FG] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/builtins.pyi (18ms)
[FG] binding: /Users/lky/code_repos/extract_old_roof/GLCM/extract_old_roof_GLCM_deploy.py (2ms)
Background analysis message: setConfigOptions
Background analysis message: ensurePartialStubPackages
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: setFileOpened
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at /Users/lky/code_repos/extract_old_roof/GLCM/extract_old_roof_GLCM_deploy.py ...
[BG(1)] parsing: /Users/lky/code_repos/extract_old_roof/GLCM/extract_old_roof_GLCM_deploy.py (30ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 2ms] (47ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/builtins.pyi (18ms)
[BG(1)] binding: /Users/lky/code_repos/extract_old_roof/GLCM/extract_old_roof_GLCM_deploy.py (2ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/typing.pyi [fs read 0ms] (17ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/typing.pyi (6ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/typing_extensions.pyi (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/datetime.pyi [fs read 0ms] (5ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/datetime.pyi (3ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/json/__init__.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/json/__init__.pyi (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/pickle.pyi [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/pickle.pyi (2ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/functools.pyi [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/functools.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/__init__.pyi [fs read 1ms] (58ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/__init__.pyi (21ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/feature/__init__.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/feature/__init__.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/feature/texture.py [fs read 0ms] (9ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/feature/texture.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/cluster/__init__.py [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/cluster/__init__.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/cluster/_kmeans.py [fs read 0ms] (33ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/cluster/_kmeans.py (4ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/base.py [fs read 2ms] (18ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/base.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/__init__.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/__init__.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/_classes.py [fs read 0ms] (6ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/_classes.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/_base.py [fs read 1ms] (11ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/svm/_base.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/deprecation.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/deprecation.py (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/abc.pyi [fs read 1ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/abc.pyi (0ms)
[BG(1)] parsing: [virtual] /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/validation.pyi [fs read 0ms] (8ms)
[BG(1)] binding: [virtual] /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/validation.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/linear_model/_base.py [fs read 1ms] (10ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/linear_model/_base.py (2ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/warnings.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/warnings.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/__init__.py [fs read 1ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/__init__.py ...
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/base.py [fs read 1ms] (9ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/base.py (4ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/csr.py [fs read 0ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/csr.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/csc.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/csc.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/lil.py [fs read 0ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/lil.py (3ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/dok.py [fs read 0ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/dok.py (4ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/coo.py [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/coo.py (4ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/dia.py [fs read 0ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/dia.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/bsr.py [fs read 0ms] (5ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/bsr.py (3ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/construct.py [fs read 0ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/construct.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/extract.py [fs read 1ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/extract.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/_matrix_io.py [fs read 1ms] (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/_matrix_io.py (0ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/__init__.py (67ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/threadpoolctl.py [fs read 0ms] (5ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/threadpoolctl.py (3ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/__init__.py [fs read 0ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/__init__.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_ufunc.pyi [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_ufunc.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/extmath.py [fs read 1ms] (7ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/extmath.py (3ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/__init__.py [fs read 0ms] (5ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/__init__.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/__init__.py [fs read 0ms] (10ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/__init__.py (3ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_array_like.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_array_like.py (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/__init__.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/__init__.pyi (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/api.pyi [fs read 0ms] (19ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/api.pyi (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/frame.pyi [fs read 1ms] (19ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/frame.pyi (9ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/generic.pyi [fs read 0ms] (6ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/generic.pyi (2ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/base.pyi [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/base.pyi (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/accessor.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/accessor.pyi (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/indexing.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/bundled/stubs/pandas/core/indexing.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/compressed.py [fs read 0ms] (7ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/compressed.py (7ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/data.py [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/data.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/_index.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/_index.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/random/__init__.pyi [fs read 0ms] (6ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/random/__init__.pyi (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/random/mtrand.pyi [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/random/mtrand.pyi (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/sparsefuncs.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/utils/sparsefuncs.py (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/inspect.pyi [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/inspect.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/metrics/pairwise.py [fs read 1ms] (15ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/sklearn/metrics/pairwise.py (5ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/struct.pyi [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/struct.pyi (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/platform.pyi [fs read 1ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/platform.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_shape.py [fs read 0ms] (0ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_shape.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_dtype_like.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_dtype_like.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numeric.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/numeric.pyi (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/_lib/_util.py [fs read 1ms] (4ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/_lib/_util.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/sputils.py [fs read 1ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/scipy/sparse/sputils.py (2ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/_warnings.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/_warnings.pyi (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/operator.pyi [fs read 1ms] (2ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/operator.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/einsumfunc.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/einsumfunc.pyi (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_char_codes.py [fs read 0ms] (2ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_char_codes.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_nbit.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_nbit.py (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/fromnumeric.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/fromnumeric.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/function_base.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/function_base.pyi (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_scalars.py [fs read 1ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_scalars.py (0ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/json/encoder.pyi [fs read 1ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/json/encoder.pyi (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/_shared/utils.py [fs read 1ms] (3ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/skimage/_shared/utils.py (1ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/_asarray.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/core/_asarray.pyi (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_generic_alias.py [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/typing/_generic_alias.py (2ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/shape_base.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/shape_base.pyi (0ms)
[BG(1)] parsing: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/index_tricks.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/miniforge3/lib/python3.9/site-packages/numpy/lib/index_tricks.pyi (1ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/os/__init__.pyi [fs read 1ms] (6ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/os/__init__.pyi (5ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/io.pyi [fs read 0ms] (1ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/io.pyi (2ms)
[BG(1)] parsing: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/types.pyi [fs read 0ms] (3ms)
[BG(1)] binding: /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist/typeshed-fallback/stdlib/types.pyi (1ms)
[BG(1)] getSemanticTokens full at /Users/lky/code_repos/extract_old_roof/GLCM/extract_old_roof_GLCM_deploy.py (952ms)
Background analysis message: analyze
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/GLCM/extract_old_roof_GLCM_deploy.py ...
[BG(1)] checking: /Users/lky/code_repos/extract_old_roof/GLCM/extract_old_roof_GLCM_deploy.py (27ms)
[BG(1)] analyzing: /Users/lky/code_repos/extract_old_roof/GLCM/extract_old_roof_GLCM_deploy.py (27ms)
Background analysis message: resumeAnalysis |
can you try one more change?
move to |
so I have opencv building now in linux one slight difference is my opencv went to does you code actually run successfully? Mine wouldn't when I had a plain venv as my selected interpreter and just added extra paths to to my built opencv. I did run if I select the here was the code i was trying to run import cv2
print(cv2.__file__) if you code does run what location does I dont have path like Initially I had an extra version of opencv installed under |
Ok. I think if we create a partial stub for cv2 it will find the create cv2 folder under copy and rename create a new py.typed file with the word'partial' in it. ie.
then reload the window |
I ran following command mkdir /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.8.1/dist/bundled/stubs/cv2-stubs
mv /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.8.1/dist/bundled/native-stubs/cv2/cv2.pyi /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.8.1/dist/bundled/stubs/cv2/__init__.pyi
echo "partial" > /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.8.1/dist/bundled/stubs/cv2/py.typed But I can't successfully, no folder (base) ➜ ~ ls /Users/lky/.vscode/extensions/ms-python.vscode-pylance-2021.8.1/dist/bundled/stubs/
cv2-stubs jmespath pandas sklearn-stubs transformers-stubs
django matplotlib pythonwin-stubs sqlalchemy win32-stubs
gym-stubs openpyxl scipy-stubs sympy-stubs win32comext-stubs
(base) ➜ ~ |
sorry i had a typo in the stub folder name i'll update my previous comment paths |
the next release will include these partial stubs for opencv |
But I have no file in |
Okay, Can you make a {
"verboseOutput": true
} Then, only open a file that is just |
Create a new workspace. And restart the Pylance language server, in the workspace, try typing "cv2.xxx", but still does not work, and works fine with NumPy.
|
It appears you are using a conda environment.. I'm guess your built opencv is in a different python3.9 environment. can you try selecting a global python3.9 environment? |
Does the trace above include you trying to do The screenshot doesn't show that Can you try showing in the trace what happens if you do a completion or a hover with cv2? |
This is the record I wrote, install python 3.9 and build OpenCV for Apple Silicon. I have been used conda-forge/miniforge Python 3.9 since I buy it the computer, and ONLY created a virtual environment named "base", no global Python 3.9 on my computer.
|
|
@jakebailey, @heejaechang - I think this is a (recent?) regression. Pylance isn't properly resolving any bundled stubs that are in directories that end in |
The code that is ignoring those stubs folders has been around for about 5 months, it seems; I'm not sure what would have changed to ignore those. Does this happen in pyright too, or is this just a Pylance thing and something we've done recently broke it? |
Pyright doesn't know anything about the |
If I rename the |
Aha, just that folder. The way we do it right now is weird as it is, we should really just be sticking our bundled stubs in as another search path with the other third party libs. I'll take a look. |
Renaming it kills the partial-ness, as you have to have it be a |
I installed the latest version of pylance, then typed: import cv2
cv2.imread Pylance reported that it couldn't resolve the import even though the bundled stub was present. I just realized that I don't have cv2 installed in my virtual environment. (My venv is Python 3.9, and apparently cv2 isn't compatible with it.) My expectation was that pylance would use the bundled cv2 partial stub even though I don't have the cv2 library installed, but perhaps that's a bad assumption? Stub libraries (partial or otherwise) shouldn't require the associated library to be installed. |
Our I think the user above is in a situation where the library is installed (via some local build), but it's still not working. @bschnurr tried to emulate this buy doing local builds, package installs in Ubuntu, etc, which both found the module naming mismatch plus the I tried to go to https://zhuanlan.zhihu.com/p/394141304 to see if there are build instructions there, but that site doesn't load for me. The only thing I can think of at this point is that the module is |
The same article in Github.io |
@mosdeo is this still an issue with latest pylance release? |
Pylance(v2022.3.2)working better than before, but not all.It works in the OpenCV static method: But not working in the OpenCV dynamic object menber method: The same dynamic object member method under Jedi: Auto suggestions still not works in the OpenCV dynamic object menber method: |
@mosdeo pylance is a static analyzer, none of dynamic behavior will be supported. for those, Jupyter is needed (assuming you ran the cell) |
please, open new issue if there are other issues around cv2. this issue got too long with bunch of issues mixed together. |
Environment data
VS Code version: 1.58.2
Extension version (available under the Extensions sidebar): v2021.7.5
OS: Darwin arm64 20.6.0
Python version (& distribution if applicable, e.g. Anaconda): 3.9.2
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: OpenCV 4.5.3
Value of the python.languageServer setting: Pylance
OpenCV 4.5.3 built from source and non-free packages, installed in:
Both paths is added to "python.analysis.extraPaths"
Expected behavior
Autocomplete suggestions for module cv2 are expected.
Autocomplete works in python.languageServer==Microsoft , so that proves nothing wrong with my installation of OpenCV.
Actual behavior
Autocomplete suggestions working fine with the Python default method.
But, not working with the OpenCV built from source
The text was updated successfully, but these errors were encountered: