Hi,
I have a file full of this kind of data structure
```
createNode nurbsCurve;
setAttr -k off ".v";
setAttr ".cc" -type "nurbsCurve"
1 3 0 no 3
4 0 1 2 3
4
7.73287 0 9.99309
7.15529 0 10.0172
6.0734 0 10.0624
4.41394 0 10.1316
;
```
From the [Maya helpdesk](https://help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/Nodes/nurbsCurve.html), this is create a nurbs curve:
Cached curve Defines geometry of the curve.
The properties are defined in this order:
- First line: degree, number of spans, form (0=open, 1=closed, 2=periodic), rational (yes/no), dimension
- Second line: number of knots, list of knot values
- Third line: number of CVs Fourth and later lines: CV positions in x,y,z (and w if rational)
So from the above:
- degree = 1, spans = 3, form = 0, not rational, dimension = 3
- 4 knots, and values are [0, 1, 2, 3]
- 4 cvs with the positions
So I'm writing this code:
```
from geomdl import BSpline
# Create the curve instance
crv = BSpline.Curve()
# Set degree
crv.degree = 1
# Set control points
crv.ctrlpts = [[7.73287, 0, 9.99309],
[7.15529, 0, 10.0172],
[6.0734, 0, 10.0624],
[4.41394, 0, 10.1316]]
# Set knot vector
crv.knotvector = [0, 1, 2, 3]
```
The last line `crv.knotvector = [0, 1, 2, 3]` gives me `ValueError: Input is not a valid knot vector`.
What did I do wrong here?