-
Notifications
You must be signed in to change notification settings - Fork 130
Autocomplete not working for OpenCV built from source #1926
Comments
i have the same issue but i use python 3.7.5 |
Created a symbolic link in /usr/local/python2.7/site-packages to the cv2.so file that is in /usr/local/python2.7/dist-packages/cv2. |
How can i do that on Windows? |
@t31060 execute the following command with administrator priviledges (change the name of the *.pyd file in both locations) |
still no autocompletion after doing that, is there something else i must do while building opencv from source to get the auto completion? |
The response was meant for
creating a symbolic link. Not to fix the auto-completion issue with VS Code. Sorry to give false hope :D. It seems that the Python language servers from Microsoft not necessarily support that.
But when I switched So maybe this works for you. My current environment is
|
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version vscode-python#3977): Tried bothpython.languageServer
setting: XXXOpenCV 3.4.9 built from source with CUDA support and non-free packages, installed in /usr/local.
/usr/local/lib , /usr/local/lib/python2.7/dist-packages and /usr/local/lib/python2.7/site-packages are added to "python.autoComplete.extraPaths"
Expected behaviour
Autocomplete suggestions for module cv2 are expected.
Autocomplete works in PyCharm IDE, so that proves nothing wrong with my installation of OpenCV.
Actual behaviour
The only suggestions I get :
![Screenshot from 2020-03-03 12-58-17](https://user-images.githubusercontent.com/7371825/75744296-d0322180-5d4e-11ea-9d4f-760c0a056c1e.png)
The text was updated successfully, but these errors were encountered: