- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
BUG: The current event queue and the main event queue are not the same.... #7474
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
Seems to be fixed by reinstalling opencv3 with --with-ffmpeg flag. |
Looks like there is no problem in OpenCV. Feel free to reopen if you have more information. |
Run into similar issue when working with openCV (2.4.13) and python (2.7.12) on fresh new Mac (macOS 10.12). here's the error:
Also, same solution. It's because ffmpeg was not installed together with OpenCV. Reinstalled with that flag solved this issue. |
Same issue here. Can you give me a quick walkthrough on how to reinstall OpenCV with mentioned flag? I have tried an install with CMake GUI and with this instructions. However I get:
( ffmpeg Mac package is installed) |
@subokita Can you provide us with the steps to compile with ffmpeg on Sierra? |
@bharath063 It worked for me with homebrew: brew install ffmpeg |
@relikd Thanks! But I had faced an issue when installing opencv through homebrew on sierra because of the QTKit deprecation. So I had followed this -> http://www.pyimagesearch.com/2016/11/28/macos-install-opencv-3-and-python-2-7/ tutorial to compile from source. |
Thanks @relikd this also worked for me. |
@relikd Thomass-iMac:bin tpmeyer$ brew install ffmpeg Then when I run my image detection code, it works (sort of, except I can't detect keyboard or mouse) and I still get this error: |
I noticed you typed
At least thats what my |
Thank you for such quick response!!!
I tried what you asked (at least I think I did it right), and got an error:
Thomass-iMac:~ tpmeyer$ cat ~/Desktop/myBrewfile.txt
brew tap homebrew/science
brew "opencv", args: ["c++11", "with-ffmpeg"], link: false
Thomass-iMac:~ tpmeyer$ brew bundle --file="~/Desktop/myBrewfile.txt"
Error: Invalid Brewfile: undefined local variable or method `homebrew' for
#<Bundle::Dsl:0x000001018fbe28>
…On Sat, Nov 25, 2017 at 9:02 AM, Oleg Geier ***@***.***> wrote:
I noticed you typed opencv3 instead of just opencv (I think both will
install v3 anyway but I'm not sure about that.
If this isn't working you can also try the following:
1. Save this in a desktop file named myBrewfile.txt:
brew tap homebrew/science
brew "opencv", args: ["c++11", "with-ffmpeg"], link: false
1. Run brew bundle --file="~/Desktop/myBrewfile.txt"
At least thats what my brew bundle dump command will return. Don't know
if it saved all the parameters during install. Also don't know if you have
ffmpeg to be installed before or not.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7474 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AgaHPxsfuzKAefzn4jyK3fhGf7VVgMOwks5s6CwXgaJpZM4KVfl7>
.
|
Try delete the brew tap line if you already tapped into science manually. |
When I removed the tap line as instructed, the command worked as intended, and reported that the Brewfile dependency was installed, but It did not solve the event queue error.
In /usr/local/Cellar, I have Are those the same versions that are working for you? |
Haven't used OpenCV in months. I have two ffmpeg versions installed v3.2.2 and v3.4. |
Uh oh!
There was an error while loading. Please reload this page.
System information (version)
Detailed description
Running a C++ program using OpenCV3 throws out the following message:
BUG: The current event queue and the main event queue are not the same. Events will not be handled correctly. This is probably because _TSGetMainThread was called for the first time off the main thread.
The OpenCV3 is installed thru homebrew
Steps to reproduce
following message:
BUG: The current event queue and the main event queue are not the same. Events will not be handled correctly. This is probably because _TSGetMainThread was called for the first time off the main thread.
Here's the simple C++ program:
The text was updated successfully, but these errors were encountered: