Hi all,
I am not sure if this is a problem with my system or just that I shouldn't use numpy 1.10.1, but figured I'd report my findings. I was just testing different examples accessed with the python -m pyqtgraph.examples command. The isosurface example under 3D Graphics fails to run on my system when numpy 1.10.1 is installed with the following error:
Traceback (most recent call last):
File "<stdin>", line 49, in <module>
File "C:\Users\rmartin\Anaconda3\lib\site-packages\pyqtgraph\functions.py", line 2030, in isosurface
index += fields[i,j,k] * 2**vertIndex
TypeError: Cannot cast ufunc add output from dtype('int32') to dtype('uint8') with casting rule 'same_kind'
If I then revert the numpy package to 1.9.3 using:
conda install numpy=1.9 -f
and rerun the same example of 3D Graphics > Isosurface, no error is generated, and the example displays as intended.
All other 3D Graphics examples seem to run without issue for both versions of numpy. The following other examples run with numpy 1.9.3 but fail with similar cast errors under numpy 1.10.1:
GraphicsItems > IsocurveItem, ImageItem-Video, ImageItem-Draw
I am using a downloaded .zip from https://github.com/pyqtgraph/pyqtgraph version 0.9.10, installed to my anaconda distribution with python setup.py install. Let me know if there is other information to provide.
Should numpy 1.10.1 work for all examples? is it recommended to not use the updated numpy? Maybe there is something else wrong with my system..?
Thanks,
Ryan