I am a beginner to openCV and am trying to analyse an existing code for a sudoku solver. There is this section of code which throws an error.

```
samples = np.float32(np.loadtxt('feature_vector_pixels.data'))
responses = np.float32(np.loadtxt('samples_pixels.data'))

model = cv2.ml.KNearest_create()
model.train(samples, responses)

```

The error is as follows `Type Error: Only length-1 arrays can be converted to Python Scalars`.

The complete traceback is as below:

```
C:\Study stuff\FinalProject>c:\Python27\python.exe Sudoku.py
Traceback (most recent call last):
  File "Sudoku.py", line 15, in <module>
    model.train(samples, responses)
TypeError: only length-1 arrays can be converted to Python scalars

```

Any idea as to what the issue is?