Menu

Problem with Python

Help
2002-02-07
2002-02-20
  • Jörg Voigt

    Jörg Voigt - 2002-02-07

    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

     
    • Alan W. Irwin

      Alan W. Irwin - 2002-02-20

      I believe your problem will be solved if you use the
      --with-double option when you configure PLplot.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.