Hi Developers,
numpy has released a new major version (numpy v2.0.0), but unfortunately this is not yet supported by one of the subpackages that the viktor-sdk uses.
You might therefore receive one of the following error messages when using your VIKTOR app:
...
AttributeError: `ptp` was removed from the ndarray class in NumPy 2.0. Use np.ptp(arr, ...) instead.
Or
...
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
We are currently working on a patch version v14.10.1
to fix this.
Note, if you cannot wait for the new SDK release, you can also solve this by explicitly adding the following to your requirements.txt
file in your app:
viktor=14.10.0
numpy<2.0.0 # <- add this line to mark numpy 2.0.0 as incompatible
Best,
The VIKTOR Team