NameError: global name 'NumberArray' is not defined

I’m new to python, but since we are trying to use GRIP on the pi this year we’ve decided to take on this task. I have my code vision code, but we keep getting an this error.

Last login: Thu Feb 9 23:40:22 2017
Running at boot
Initializing NetworkTables
Creating video capture
Creating pipeline
Running pipeline
Traceback (most recent call last):
File “/home/pi/GRIP/usb_vision.py”, line 64, in <module>
main()
File “/home/pi/GRIP/usb_vision.py”, line 57, in main
extra_processing(pipeline)
File “/home/pi/GRIP/usb_vision.py”, line 34, in extra_processing
table.putValue(“centerX”, NumberArray.from_list(center_x_positions))
NameError: global name ‘NumberArray’ is not defined

Any fix? If you need to see the code we have I’d be more than welcome to show you.

You’re using NetworkTables code from last year, the API is different this year. See the documentation for details: API Reference — RobotPy NetworkTables 2021.0.0 documentation