Code Complete (Auto Complete) for OPENCV-PYTHON in Virtual Env not working

Hello,

 

Wondering if someone can help shed light on a situation.  I have Pycharm 2020.3 installed.   I also installed Python 3.7.6.   This is on windows 10 (Build 2004)

I then do the following:

  • Create new project
  • Install NUMPY version 1.19.3  (Latest 1.19.4 seems broken with Windows 10 (2004 version update)
  • Install opencv-python  (I let the latest version install 4.4.0.46)
  • Create a new python file with the following lines:

                  import cv2

Then, I start typing the following.   It should show the auto complete list, but it doesnt.  Strangely, on another windows 10 PC I have it works!  Auto complete still works for NUMPY as well as other python operatives

                  cv2.im

I figured out a work around.....I downgrade the opencv-python to 4.4.0.40.   Once I do that, AUTOCOMPLETE for OPENCV-PYTHON starts working.   I can even go back to the latest version, and it will still work.

 

Before finding this work around, I made sure to uninstall EVERYTHING (Pycharm, Projects, Python), and reinstall from scratch.  Nothing would fix opencv-python code complete!!!

 

Any idea what may be going on?  I am out of ideas!  (Although at least I have a work around!)

 

Thank you very much!

 

Gerry

 

 

 

0
1 comment

Hi,

It could be https://youtrack.jetbrains.com/issue/PY-45776

Could you check if your idea.log (Help | Show Log in...) has the same NPE?

0

Please sign in to leave a comment.