-
Notifications
You must be signed in to change notification settings - Fork 896
Autocomplete is still not working on pycharm. #821
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
Comments
How it solved, can I get some advice, plz |
any updates? |
me too |
pip install opencv-python success ~~ |
Workaround for Windows is to create a hard link from the site-packages folder to the binary file mentioned in the linked discussion. be aware that 'mklink' is only available in the old windows command line. cd <your_venv_location>/Lib/site-packages
mklink /H cv2.pyd cv2\cv2.pyd |
On MacOS (M1) I had to symlink the cd <venv>/lib/python3.8/site-packages
ln -s cv2/cv2.abi3.so |
Thanks, this also does the trick on my Intel Mac. I ran:
And then I also needed to invalidate caches in PyCharm before autocomplete started working ( |
@kylefmohr I'm doing this in IDEA where the symlink gets picked up automatically. But an issue with the symlink is |
I now had access to a test system with Linux/AMD64, and the workaround also works there. Linux and Mac (thanks to @damonmaria): cd <your_venv>/lib/<your_python_version>/site-packages
ln -s cv2/cv2.abi3.so Windows (old windows cmd line) cd <your_venv_location>/Lib/site-packages
mklink /H cv2.pyd cv2\cv2.pyd |
I do find you have to recreate it fairly often (with |
I normally use venv, which does not appear to have this problem. |
Thanks a @asmorkalov lot for working on a fix for that, do you happen to know when we can expect the next release of the Python package? |
In good luck - next week. Main OpenCV release will happen first, OpenCV-Python in a couple of days. |
Expected behaviour
Autocomplete is still not working on pycharm.
Steps to reproduce
Test it with Apple M1, PyCharm.
And the opencv-version:
4.7.0.68
and4.7.0.72
are both not working.Related discuss: https://stackoverflow.com/a/75054982/14419009
Issue submission checklist
opencv-python
The text was updated successfully, but these errors were encountered: