Gtk-warning **: Cannot Open Display:
I am using Data science toolbox running ubuntu 14.04 through vagrant in windows. I installed OpenCV and tried a very simple python code. import cv2 import numpy as np import matpl
Solution 1:
You can forward the display to your host, in your Vagrantfile, add the following lines
config.ssh.forward_agent = trueconfig.ssh.forward_x11 = true
You will need a X-server running on your windows machine (I personally use Quartz on my mac, you would need to get an equivalent for windows, like Xming) and then when you vagrant up
to boot your VM, when you will run an X-program it will pop-up on your host.
Post a Comment for "Gtk-warning **: Cannot Open Display:"