Pylance import issues

Not a showstopper issue, but the editor keeps saying it couldn’t resolve some imports. It’s cv2 and numpy for me as of now. I tried adding the default interpreter path (/usr/bin/python) to the settings of the editor and it still doesn’t seem to be working. pip3 install of these packages return that requirement is already satisfied.

I was getting the same issue but I just ignored it. It doesn’t effect the working in any way.

@sdanie20 @mohammad.zainullah.khan

I apologize for this glitch. We will look into it.

Hello @sdanie20,

short answer is:
Those yellow underlines are not a problem. You can disregard them and continue your work normally.

longer answer is: The IDE does not know how to resolve this library because of some misconfiguration. But, as you already verified, installing those packages shows that they are already installed.
You can also confirm that they work if you go to a terminal and type in:

You should see the Python interpreter command prompt, something like this:

Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

then type in import cv2, what you will see it this:

>>> import cv2

Hit enter and no error messages or warnings should show. If that is the case the OpenCV library was found, confirming that you will have no issues due to this.

Hope this helps,


This topic was automatically closed after 2 days. New replies are no longer allowed.