-
Notifications
You must be signed in to change notification settings - Fork 768
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
Multiple libraries not recognized with errors is not a known attribute of module #5892
Comments
can you provide us a log using (https://github.com/microsoft/pylance-release/wiki/Collecting-data-for-an-investigation.#collecting-trace-logs-using-commands) ? ... for |
Hi, thanks for your answer. This is the log in which there are import errors relative to the Open3D library: For OpenCV, how is it that in the Python console, I can autocomplete these methods, and in VSCode, I cannot? These functions were recognized in a previous version of Opencv. |
I am not sure what you meant by
you meant previous version of |
I looked through history a bit. looks like I think you should open an issue on that said, ours looked like this
so, probably it wasn't that helpful either anyway . |
Thanks for your reply. By Python console, I just meant running python interactively. I found the info you told me about also here. If OpenCV now provides its own .pyi (the link you gave is not found), why are they not working if I have the latest pip package? For Open3D should I open an issue with them? Is this #138 (comment) a viable solution in this cases? |
ah, sorry, linked wrong path. here is right one.
ya, you should open an issue with them. they need to add it to their
there will be many ways to work around this issue until maintainer fixes the issue. but I think the easiest way for you for now is probably you just updating
issue def SIFT_create(nfeatures=..., nOctaveLayers=..., contrastThreshold=..., edgeThreshold=..., sigma=...) -> SIFT:
'@param nfeatures The number of best features to retain. The features are ranked by their scores\n. (measured in SIFT algorithm as the local contrast)\n. \n. @param nOctaveLayers The number of layers in each octave. 3 is the value used in D. Lowe paper. The\n. number of octaves is computed automatically from the image resolution.\n. \n. @param contrastThreshold The contrast threshold used to filter out weak features in semi-uniform\n. (low-contrast) regions. The larger the threshold, the less features are produced by the detector.\n. \n. @note The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When\n. nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set\n. this argument to 0.09.\n. \n. @param edgeThreshold The threshold used to filter out edge-like features. Note that the its meaning\n. is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are\n. filtered out (more features are retained).\n. \n. @param sigma The sigma of the Gaussian applied to the input image at the octave \\#0. If your image\n. is captured with a weak camera with soft lenses, you might want to reduce the number.'
... that should make it work until it is fixed by the maintainer in new version of cv2. |
Environment data
Code Snippet
I am experiencing the following issue when importing libraries that are correctly installed in the current environment in the Python console, I have the auto-completion working, and using the functions works, too.
To quickly solve this, I am using the
# type: ignore
comment next to each import or line, but of course, I would like to have this working as the object types are not recognized, and it's not ideal.Lastly, I also noticed that the import warnings do not change if I switch environments.
Logs
Pylance output
The text was updated successfully, but these errors were encountered: