Page 1 of 1

OpenCV + Python GTK Warning

Posted: Sun Dec 01, 2013 4:16 pm
by nextera
Hi.

I'm new with the Raspberry and I'm trying to use the OpenCV lib in python.

But everytime that I try to run some code, I get this message:

"GTK Warning* Cannot open display".

I've been reinstalled everything almost 10 times, but always is returned this warning.

Anyone knows how to fix this?

Thanks.

Re: OpenCV + Python GTK Warning

Posted: Sun Dec 01, 2013 10:06 pm
by paddyg

Re: OpenCV + Python GTK Warning

Posted: Thu May 21, 2015 6:55 am
by ktemby
I had this error when running my openCV app from the command interface.

I expected it to work, since Raspivid preview worked from there.

Using

Code: Select all

startx
I ran my openCV code from the terminal from within the desktop gui, and was able to see what I needed.

Would be nice to not have to rely on the full desktop environment, but it seems the openCV library uses it to draw windows.