<font size=2 face="sans-serif">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. </font>
<br>
<br><font size=2 face="sans-serif">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!</font>
<br>
<br><font size=2 face="Century Gothic">David Parker <br>
Chromalloy - TDAG</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Dave Partyka &lt;dave.partyka@kitware.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">DParker@chromalloy.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">paraview@paraview.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">11/01/2010 06:31 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [Paraview]
Error importing numpy [Windows]</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">paraview-bounces@paraview.org</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>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?<br>
</font>
<br><font size=3>On Fri, Oct 29, 2010 at 12:19 PM, &lt;</font><a href=mailto:DParker@chromalloy.com><font size=3 color=blue><u>DParker@chromalloy.com</u></font></a><font size=3>&gt;
wrote:</font>
<br><font size=2 face="sans-serif">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):</font><font size=3> <br>
</font><font size=1 color=red face="Courier"><br>
ImportError: DLL load failed: %1 is not a valid Win32 application.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Both the Paraview and Windows Python versions are 2.6. Any ideas on how
to proceed?</font><font size=3> <br>
</font><font size=2 face="Century Gothic"><br>
David Parker <br>
Chromalloy - TDAG</font><font size=3><br>
_______________________________________________<br>
Powered by </font><a href=http://www.kitware.com/ target=_blank><font size=3 color=blue><u>www.kitware.com</u></font></a><font size=3><br>
<br>
Visit other Kitware open-source projects at </font><a href=http://www.kitware.com/opensource/opensource.html target=_blank><font size=3 color=blue><u>http://www.kitware.com/opensource/opensource.html</u></font></a><font size=3><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: </font><a href=http://paraview.org/Wiki/ParaView target=_blank><font size=3 color=blue><u>http://paraview.org/Wiki/ParaView</u></font></a><font size=3><br>
<br>
Follow this link to subscribe/unsubscribe:</font><font size=3 color=blue><u><br>
</u></font><a href=http://www.paraview.org/mailman/listinfo/paraview target=_blank><font size=3 color=blue><u>http://www.paraview.org/mailman/listinfo/paraview</u></font></a><font size=3><br>
</font>
<br><tt><font size=2>_______________________________________________<br>
Powered by </font></tt><a href=www.kitware.com><tt><font size=2>www.kitware.com</font></tt></a><tt><font size=2><br>
<br>
Visit other Kitware open-source projects at </font></tt><a href=http://www.kitware.com/opensource/opensource.html><tt><font size=2>http://www.kitware.com/opensource/opensource.html</font></tt></a><tt><font size=2><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: </font></tt><a href=http://paraview.org/Wiki/ParaView><tt><font size=2>http://paraview.org/Wiki/ParaView</font></tt></a><tt><font size=2><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</font></tt><a href=http://www.paraview.org/mailman/listinfo/paraview><tt><font size=2>http://www.paraview.org/mailman/listinfo/paraview</font></tt></a><tt><font size=2><br>
</font></tt>
<br>