Open Laurae2 opened 8 years ago
Hi, I am struggling with the same error using qt and opencv. I thought maybe opencv is installed from the source with_gtk+ enabled while qt is using gtk2. Thus, I am trying to install opencv with no gui and see if I can only used qt gui. The language of my code is c++. Do you think it will solve my problem? Do you have any idea how can I set only gtk2 as default for my application and force it to use only one version of gtk?
Hello,
I wonder what can be done to solve the GTK dependency hell issue. 2 and 3 cannot be run at the same time in the same process. I cannot get it to work even on a clean machine (Ubuntu 14.04).
I checked by printing lines and It stops exactly at the following line (805) in main.py: app = QtGui.QApplication(sys.argv)
I can't uninstall GTK 2 because I need it, and I can't also uninstall GTK 3 because I also need it.
Here is what happens when I force GTK 2 usage in main:
Forcing GTK 3 makes GTK 2 still seen:
Obviously these ideas are not supposed to work because the Qt are not imported from main.
So let's drop
import gtk
in the first line of the script. And Expresso runs.