<div dir="ltr"><div>Simon,</div><div><br></div>Hmm, that's odd that the find command didn't turn up anything. On what kind of system are you compiling?<div><br></div><div>In any case, I think I see the problem. Can you modify the CMake source file</div>
<div><br></div><div>ParaViewSuperbuild/Projects/matplotlib.build.cmake</div><div><br></div><div>so that the line</div><div><br></div><div>file(GLOB_RECURSE numpy-egg "${NUMPY_INSTALL_DIR}/lib/*.egg-info")<br></div>
<div><br></div><div>is replaced with</div><div><br></div><div>file(GLOB_RECURSE numpy-egg "${NUMPY_INSTALL_DIR}/lib64/*.egg-info")<br></div><div><br></div><div>and build again? </div><div><br></div><div>This will hopefully get you past the current build error. I'll investigate why python is being installed in install/lib64 instead of install/lib.</div>
<div><br></div><div>Cory</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 3, 2014 at 9:33 AM, Su, Simon M CTR USARMY ARL (US) <span dir="ltr"><<a href="mailto:simon.m.su.ctr@mail.mil" target="_blank">simon.m.su.ctr@mail.mil</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Classification: UNCLASSIFIED<br>
Caveats: NONE<br>
<br>
Cory,<br>
<br>
The find didn't find anything...<br>
<br>
ssu:01% pwd<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build/install<br>
ssu:01% find . -name *numpy*<br>
find: No match.<br>
<br>
But, the install directory has the following directories<br>
<br>
bin etc include lib lib64 share var<br>
<br>
and I believe numpy is in<br>
<br>
ssu:01% pwd<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build/install/lib64/python2.6/site-packages<br>
ssu:01% ll<br>
total 8<br>
drwx------ 18 ssu ssu 4096 May 30 11:41 numpy<br>
-rw------- 1 ssu ssu 1658 May 30 11:41 numpy-1.6.2-py2.6.egg-info<br>
<br>
lib64 only has a single python2.6 directory.... and all others are located in<br>
lib directory.... is this going to be a problem?<br>
<br>
Thanks<br>
-simon<br>
<div class=""><br>
-----Original Message-----<br>
From: Cory Quammen [mailto:<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>]<br>
</div><div><div class="h5">Sent: Tuesday, June 03, 2014 9:25 AM<br>
To: Su, Simon M CTR USARMY ARL (US)<br>
Cc: ParaView<br>
Subject: Re: [Paraview] ParaView superbuild matplotlib not finding numpy<br>
(UNCLASSIFIED)<br>
<br>
Simon,<br>
<br>
That looks like what I would expect.<br>
<br>
Next, could you navigate to<br>
<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build/install<br>
<br>
<br>
<br>
and send me the results of running<br>
<br>
<br>
find . -name *numpy*<br>
<br>
<br>
Thanks,<br>
Cory<br>
<br>
<br>
On Tue, Jun 3, 2014 at 9:15 AM, Su, Simon M CTR USARMY ARL (US)<br>
<<a href="mailto:simon.m.su.ctr@mail.mil">simon.m.su.ctr@mail.mil</a>> wrote:<br>
<br>
<br>
Classification: UNCLASSIFIED<br>
Caveats: NONE<br>
<br>
Hi Cory,<br>
<br>
When I do a make numpy, this is what I got the following.<br>
In the pv-matplotlib-build.cmake file attached, -DNUMPY_INSTALL_DIR is<br>
defined<br>
as<br>
<br>
-DNUMPY_INSTALL_DIR:PATH=/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build/install;<br>
<br>
Thanks for your help<br>
-simon<br>
<br>
================ make numpy =========================<br>
<br>
-- Enabling zlib since needed by: boost;ffmpeg;freetype;hdf5;png;silo<br>
-- Enabling boost as requested.<br>
-- Enabling ffmpeg as requested.<br>
-- Enabling freetype as requested.<br>
-- Enabling libxml2 as requested.<br>
-- Enabling fontconfig as requested.<br>
-- Enabling szip as requested.<br>
-- Enabling hdf5 as requested.<br>
-- Enabling python as requested.<br>
-- Enabling numpy as requested.<br>
-- Enabling png as requested.<br>
-- Enabling matplotlib as requested.<br>
-- Enabling mpi as requested.<br>
-- Enabling osmesa as requested.<br>
-- Enabling qhull as requested.<br>
-- Enabling silo as requested.<br>
-- Enabling visitbridge as requested.<br>
-- Enabling paraview as requested.<br>
-- PROJECTS_ENABLED<br>
zlib;boost;ffmpeg;freetype;libxml2;fontconfig;szip;hdf5;python;numpy;png;matplotlib;mpi;osmesa;qhull;silo;visitbridge;paraview<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to:<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build<br>
<br>
[ 50%] Built target python<br>
[100%] Built target numpy<br>
<br>
=================================================================================<br>
<br>
<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: Cory Quammen [mailto:<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>]<br>
Sent: Tuesday, June 03, 2014 8:50 AM<br>
To: Su, Simon M CTR USARMY ARL (US)<br>
Cc: ParaView<br>
Subject: Re: [Paraview] ParaView superbuild matplotlib not finding numpy<br>
(UNCLASSIFIED)<br>
<br>
<br>
Hi Simon,<br>
<br>
You normally shouldn't have to point to the numpy directory, especially when<br>
you are opting to build numpy, as your options show. I wonder if your numpy<br>
built successfully.<br>
<br>
If you navigate to<br>
<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build<br>
<br>
<br>
<br>
and run 'make numpy', does it succeed?<br>
<br>
<br>
Also, what can you send me the file<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build/pv-matplotlib-build.cmake?<br>
There should be an option -DNUMPY_INSTALL_DIR:PATH in the command variable.<br>
<br>
<br>
Thanks,<br>
Cory<br>
<br>
<br>
<br>
<br>
On Mon, Jun 2, 2014 at 5:05 PM, Su, Simon M CTR USARMY ARL (US)<br>
<<a href="mailto:simon.m.su.ctr@mail.mil">simon.m.su.ctr@mail.mil</a>> wrote:<br>
<br>
<br>
Classification: UNCLASSIFIED<br>
Caveats: NONE<br>
<br>
Hello,<br>
<br>
How do you specify to the superbuild process when building<br>
'matplotlib',<br>
where<br>
numpy was built? I configured cmake using the following and the<br>
error<br>
message at the end of the email<br>
<br>
thanks<br>
-simon<br>
<br>
cmake \<br>
-DCMAKE_INSTALL_PREFIX:PATH=${HOME}/pv-test/${version}_osmesa \<br>
-DCMAKE_BUILD_TYPE=Release \<br>
-DParaView_FROM_GIT=ON \<br>
-DENABLE_boost=ON \<br>
-DENABLE_cgns=OFF \<br>
-DENABLE_ffmpeg=ON \<br>
-DENABLE_fontconfig=ON \<br>
-DENABLE_freetype=ON \<br>
-DENABLE_hdf5=ON \<br>
-DENABLE_libxml2=ON \<br>
-DENABLE_matplotlib=ON \<br>
-DENABLE_mesa=OFF \<br>
-DENABLE_mpi=ON \<br>
-DENABLE_numpy=ON \<br>
-DENABLE_osmesa=ON \<br>
-DENABLE_paraview=ON \<br>
-DENABLE_png=ON \<br>
-DENABLE_python=ON \<br>
-DENABLE_qhull=ON \<br>
-DENABLE_qt=OFF \<br>
-DENABLE_silo=ON \<br>
-DENABLE_szip=ON \<br>
-DENABLE_visitbridge=ON \<br>
-DUSE_SYSTEM_mpi=ON \<br>
-DUSE_SYSTEM_python=ON \<br>
-DUSE_SYSTEM_zlib=ON \<br>
../ParaViewSuperbuild_${version}<br>
<br>
<br>
===================== error message<br>
================================================<br>
-- Enabling zlib since needed by: boost;ffmpeg;freetype;hdf5;png;silo<br>
-- Enabling boost as requested.<br>
-- Enabling ffmpeg as requested.<br>
-- Enabling freetype as requested.<br>
-- Enabling libxml2 as requested.<br>
-- Enabling fontconfig as requested.<br>
-- Enabling szip as requested.<br>
-- Enabling hdf5 as requested.<br>
-- Enabling python as requested.<br>
-- Enabling numpy as requested.<br>
-- Enabling png as requested.<br>
-- Enabling matplotlib as requested.<br>
-- Enabling mpi as requested.<br>
-- Enabling osmesa as requested.<br>
-- Enabling qhull as requested.<br>
-- Enabling silo as requested.<br>
-- Enabling visitbridge as requested.<br>
-- Enabling paraview as requested.<br>
-- PROJECTS_ENABLED<br>
zlib;boost;ffmpeg;freetype;libxml2;fontconfig;szip;hdf5;python;numpy;png;matplotlib;mpi;osmesa;qhull;silo;visitbridge;paraview<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to:<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build/install/lib64/python2.6/site-packages<br>
[ 20%] [ 22%] [ 29%] [ 38%] [ 38%] [ 37%] [ 40%] [ 40%] Built target<br>
zlib<br>
Built target szip<br>
Built target python<br>
Built target libxml2<br>
Built target visitbridge<br>
Built target osmesa<br>
Built target mpi<br>
Performing update step for 'qhull'<br>
[ 49%] [ 55%] Built target freetype<br>
[ 70%] [ 70%] [ 73%] [ 73%] Built target hdf5<br>
Built target numpy<br>
Built target png<br>
Built target boost<br>
Built target ffmpeg<br>
[ 78%] Built target fontconfig<br>
[ 81%] [ 84%] Built target silo<br>
Performing build step for 'matplotlib'<br>
LD_LIBRARY_PATH =<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build/install/lib:/opt/cray/shared-root/1.0-1.0402.46893.3.17.gem/lib64:/opt/cray/nodehealth/5.1-1.0402.45895.3.76.gem/lib64:/opt/cray/csa/3.0.0-1_2.0402.45268.1.90.gem/lib64:/opt/cray/job/1.5.5-0.1_2.0402.45272.1.5.gem/lib64:/opt/gcc/mpc/0.8.1/lib:/opt/gcc/mpfr/2.4.2/lib:/opt/gcc/gmp/4.3.2/lib:/opt/gcc/4.8.2/snos/lib64:/opt/cray/shared-root/1.0-1.0402.46893.3.17.gem/lib64:/opt/cray/nodehealth/5.1-1.0402.45895.3.76.gem/lib64:/opt/cray/csa/3.0.0-1_2.0402.45268.1.90.gem/lib64:/opt/cray/job/1.5.5-0.1_2.0402.45272.1.5.gem/lib64:/opt/gcc/mpc/0.8.1/lib:/opt/gcc/mpfr/2.4.2/lib:/opt/gcc/gmp/4.3.2/lib:/opt/gcc/4.8.2/snos/lib64<br>
Already on 'master'<br>
Your branch is up-to-date with 'origin/master'.<br>
CMake Error at<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0/Projects/matplotlib.build.cmake:12<br>
(message):<br>
Failed to locate numpy-egg<br>
<br>
<br>
CMake Error at<br>
/u/ssu/build/paraview/Build_4.1.0_osmesa/ParaViewSuperbuild_4.1.0-build/pv-matplotlib-build.cmake:26<br>
(message):<br>
Failed!!!<br>
<br>
<br>
make[2]: *** [matplotlib/src/matplotlib-stamp/matplotlib-build] Error<br>
1<br>
make[1]: *** [CMakeFiles/matplotlib.dir/all] Error 2<br>
make[1]: *** Waiting for unfinished jobs....<br>
[ 85%] Performing configure step for 'qhull'<br>
<br>
<br>
Classification: UNCLASSIFIED<br>
Caveats: NONE<br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at:<br>
<a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
Classification: UNCLASSIFIED<br>
Caveats: NONE<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div></div>Classification: UNCLASSIFIED<br>
Caveats: NONE<br>
<br>
<br>
</blockquote></div><br></div>