-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Error importing cv2 on Windows 10 #19
Comments
Hi there @tonnydourado sorry for the delay. This may be a silly question, but is your virtual environment activated when you run your git-sim command? Also what happens if you just run the Python interpreter and run |
No worries, mate! Answering your questions: I'm pretty darn sure the virtualenv was activated, but I'll double check tomorrow at work. I'll also try to just import cv2 in the virtualenv. Without it, I'm sure it will give an impor error, because I install almost nothing on the global namespace. For what is worth, I tried one of the manin getting started examples, the create circle one, and it worked. The default player didn't play the video, because it's a company machine and I do not think IT has installed any codecs, but ffplay played without issues. |
@tonnydourado Hi again! Were you able to test this out? |
So, I created a virtualenv from scratch, and this is what I'm getting with
I think this is different than the stacktrace from when I opened the issue because before I tried to install open-cv manually. I get the same thing when running git-sim in this fresh venv, just with a couple of extra levels:
|
@tonnydourado I found the following post on StackOverflow: https://stackoverflow.com/questions/52349669/dll-load-failed-when-import-cv2-opencv It says the issue could be a combination of using Windows 10 N distribution with specific newer versions of OpenCV. It proposes 2 solutions:
It would be great if you could test out these options and let me know if one works for you. |
@tonnydourado Were you able to test out the suggestions above? |
Closing due to inactivity. Feel free to repoen with further details if the above solution didn't work. |
I installed
ffmpeg
(manually) andmanim
, and they both work, but when I try to rungit-sim merge develop
, I get an error about importing cv2:Installing
git-sim
correctly installed opencv-python-headless, from what I see in the output of pip install git-sim:As asked by the contributing guidelines:
The text was updated successfully, but these errors were encountered: