I recently installed plplot-5.1.0 in $HOME/local. The Numeric package of python is located in $HOME/lib/python respectively $HOME/include/python. It's version 20.3. I manage to install plplot, but when I run pythondemos.py, I allways get the error message:
File "pythondemos.py", line 31, in ?
import xw08
File "$HOME/local/plplot-5.1.0/tmp/xw08.py", line 89, in ?
main()
File "$HOME/local/plplot-5.1.0/tmp/xw08.py", line 81, in main
plot3d(x, y, z, opt[k], 1)
TypeError: Array can not be safely cast to required type
The example which do not use plotting commands to plot arrays run fine.
Any idea ???
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I recently installed plplot-5.1.0 in $HOME/local. The Numeric package of python is located in $HOME/lib/python respectively $HOME/include/python. It's version 20.3. I manage to install plplot, but when I run pythondemos.py, I allways get the error message:
File "pythondemos.py", line 31, in ?
import xw08
File "$HOME/local/plplot-5.1.0/tmp/xw08.py", line 89, in ?
main()
File "$HOME/local/plplot-5.1.0/tmp/xw08.py", line 81, in main
plot3d(x, y, z, opt[k], 1)
TypeError: Array can not be safely cast to required type
The example which do not use plotting commands to plot arrays run fine.
Any idea ???
Thanks
I believe your problem will be solved if you use the
--with-double option when you configure PLplot.