spline knot attached to a poly vertex

Hello

I try to attach a spline (XXX) knot to a editable poly (AAA) vertex in controller script :

knt = polyop.getvert $AAA 5
setKnotPoint $XXX 1 1 knt

But I get an error....

Can anybody help ? Thanks