I finally got back around to this problem and was able to correct the issue. The primary issue seemed to be that I was trying to import 32-bit numpy into a 64-bit Python interpreter installed with 64-bit Paraview. A secondary issue was a lack of understanding of how to use PYTHONPATH.
I removed the 64-bit version of Paraview, and installed the 32-bit version. I then added a 'numpy.pth' file to the Paraview Python site-packages folder with the path to my previously installed Python site-packages folder (with numpy module). Now I can use numpy and the Python calculator and programmable filter! David Parker Chromalloy - TDAG From: Dave Partyka <[email protected]> To: [email protected] Cc: [email protected] Date: 11/01/2010 06:31 AM Subject: Re: [Paraview] Error importing numpy [Windows] Sent by: [email protected] That is a strange error. Usually it prints what library it had an issue with. That said, I am assuming you're numpy was built against lapack/blas or clapack? Are those dlls in your path as well? On Fri, Oct 29, 2010 at 12:19 PM, <[email protected]> wrote: I'm attempting to use an existing installation of numpy in Paraview on Windows. I installed Paraview from a binary installer onto Windows. Paraview installed it's own Python version without numpy. I tried appending the path to an existing numpy installation on the computer to the PYTHONPATH within the Paraview Python shell, but I cannot import numpy (see Python shell traceback): ImportError: DLL load failed: %1 is not a valid Win32 application. Both the Paraview and Windows Python versions are 2.6. Any ideas on how to proceed? David Parker Chromalloy - TDAG _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
