Sudoku solver school project error help!

Hello,

I am working on a sudoku solver with a friend for a school project. We have made a script were you can put in an image of a sudoku and it makes an output with the image solved. we don't get an error but it gets stuck or something if we run it. Does someone knows what we do wrong?

$ python sudoku.py sudoku.jpg
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /tmp/OpenCV-2.4.3/modules/highgui/src/window.cpp, line 620
Traceback (most recent call last):
File "sudoku.py", line 107, in <module>
cv2.imshow('img',warp)
cv2.error: /tmp/OpenCV-2.4.3/modules/highgui/src/window.cpp:620: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvShowImage

OK, your program is amazing. I'll try it later with more images. Your python program says
cv2.waitKey(0)
If I mouse click the solution window (or otherwise set it to have active input, or it may already be active) then press a key on my keyboard, say, the space bar, the program terminates.

error

Hello,

I finished the script by ending it with showing the image,
but my problem now is that it only works on most of the images that i got from internet. but if i make a picture (what should work) then he gives an error. i really don't know what it's problem is.

Interesting. The unix file command identifies file type when it can. In this case, the answer is revealing. s[123].jpg are photos of sudoku puzzle I took with my fine camera. Your program does not work with my new pictures. I haven't quickly found a way to convert images to jpeg JFIF 1.02.

py2exe

Hi!

We figured out that the resolution of the photo had to do a lot with the problem. So it actually works.

But now i want to convert my python file to a .exe
The problem is that i get an error if i want to open the converted file. It says that the program doesn't work anymore.. I think it has something to do with the fact i use tkinter opencv en numpy. Can you please help me??