<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I changed the PYTHONPATH to add the requested directory but nothin changed:<br><br>Macintosh-2:Python fred$ env|grep PYTH<br>PYTHONPATH=/usr/local/ParaView3_BUILD/Utilities/VTKPythonWrapping/paraview:/usr/local/ParaView3_BUILD/bin:/usr/local/ParaView3/Utilities/VTKPythonWrapping<br>Macintosh-2:Python fred$ python resample.py grid1.vtk grid2.vtk <br>paraview version 3.7.0, Date: 2009-11-12<br>Traceback (most recent call last):<br> File "resample.py", line 23, in <module><br> from paraview import numpy_support<br>ImportError: cannot import name numpy_support<br><br><br>> Date: Tue, 8 Dec 2009 06:54:13 -0500<br>> Subject: Re: [Paraview] Programmable Filter issue<br>> From: berk.geveci@kitware.com<br>> To: stan1313@hotmail.fr<br>> CC: paraview@paraview.org<br>> <br>> Then something is wrong with your PYTHONPATH. If you are running<br>> pvpython or the Python shell from the GUI, this should already work -<br>> please report it as a bug to me. If you are running pure Python, this<br>> directory has to be in your PYTHONPATH (not a bug). I am surprised<br>> that your could import any modules at all. I am guessing that you have<br>> the module directory in the source code in your path. If that's the<br>> case, please replace it with the one in the binary tree.<br>> <br>> -berk<br>> <br>> On Tue, Dec 8, 2009 at 3:45 AM, Fred Fred <stan1313@hotmail.fr> wrote:<br>> > Yes.<br>> ><br>> > Macintosh-2:~ fred$ find<br>> > /usr/local/ParaView3_BUILD//Utilities/VTKPythonWrapping/paraview -name<br>> > numpy_support.py<br>> > /usr/local/ParaView3_BUILD//Utilities/VTKPythonWrapping/paraview/numpy_support.py<br>> ><br>> >> Date: Mon, 7 Dec 2009 10:46:13 -0500<br>> >> Subject: Re: [Paraview] Programmable Filter issue<br>> >> From: berk.geveci@kitware.com<br>> >> To: stan1313@hotmail.fr<br>> >> CC: paraview@paraview.org<br>> >><br>> >> Strange. Is there a file called numpy_support.py in<br>> >> /usr/local/ParaView3_BUILD//Utilities/VTKPythonWrapping/paraview ?<br>> >><br>> >> -berk<br>> >><br>> >> On Fri, Dec 4, 2009 at 4:38 PM, Fred Fred <stan1313@hotmail.fr> wrote:<br>> >> > Macintosh-2:Paraview fred$ pwd<br>> >> > /Users/fred/Paraview<br>> >> > Macintosh-2:~ fred$ which paraview<br>> >> > /usr/local/ParaView3_BUILD/bin/paraview.app/Contents/MacOS/paraview<br>> >> ><br>> >> ><br>> >> >> Date: Fri, 4 Dec 2009 14:45:43 -0500<br>> >> >> Subject: Re: [Paraview] Programmable Filter issue<br>> >> >> From: berk.geveci@kitware.com<br>> >> >> To: stan1313@hotmail.fr<br>> >> >> CC: paraview@paraview.org<br>> >> >><br>> >> >> Are you running from the compile folder or did you make an app?<br>> >> >><br>> >> >> On Fri, Dec 4, 2009 at 8:31 AM, Fred Fred <stan1313@hotmail.fr> wrote:<br>> >> >> > I am running from the cvs 3.7.0 source, which I compiled on Mac OS X<br>> >> >> > Leopard, nothing else.<br>> >> >> > So does it mean that using the programmable filter requires to<br>> >> >> > install<br>> >> >> > an<br>> >> >> > additionnal module?<br>> >> >> ><br>> >> >> >> Date: Fri, 4 Dec 2009 06:44:49 -0500<br>> >> >> >> Subject: Re: [Paraview] Programmable Filter issue<br>> >> >> >> From: berk.geveci@kitware.com<br>> >> >> >> To: stan1313@hotmail.fr<br>> >> >> >> CC: paraview@paraview.org<br>> >> >> >><br>> >> >> >> Hmmm. Are you running from an install ParaView? Which version and<br>> >> >> >> which platform? numpy_support is a Python module that is in VTK. It<br>> >> >> >> should be copied to an install but maybe there is a bug somewhere.<br>> >> >> >><br>> >> >> >> -berk<br>> >> >> >><br>> >> >> >> On Thu, Dec 3, 2009 at 9:06 AM, Fred Fred <stan1313@hotmail.fr><br>> >> >> >> wrote:<br>> >> >> >> > I just put this line in the script area:<br>> >> >> >> ><br>> >> >> >> > pdo = self.GetOutput()<br>> >> >> >> ><br>> >> >> >> > and I get this error:<br>> >> >> >> ><br>> >> >> >> > Traceback (most recent call last):<br>> >> >> >> ><br>> >> >> >> > File "<string>", line 11, in <module><br>> >> >> >> ><br>> >> >> >> > File<br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> > "/usr/local/ParaView3/Utilities/VTKPythonWrapping/paraview/vtk/dataset_adapter.py",<br>> >> >> >> > line 8, in <module><br>> >> >> >> ><br>> >> >> >> > from paraview import numpy_support<br>> >> >> >> ><br>> >> >> >> > ImportError: cannot import name numpy_support<br>> >> >> >> ><br>> >> >> >> > Any idea of the problem?<br>> >> >> >> ><br>> >> >> >> > ________________________________<br>> >> >> >> > Gagnez au cadeau par jour avec Hotmail Magic Moment ! Cliquez ici<br>> >> >> >> > !<br>> >> >> >> > _______________________________________________<br>> >> >> >> > Powered by www.kitware.com<br>> >> >> >> ><br>> >> >> >> > Visit other Kitware open-source projects at<br>> >> >> >> > http://www.kitware.com/opensource/opensource.html<br>> >> >> >> ><br>> >> >> >> > Please keep messages on-topic and check the ParaView Wiki at:<br>> >> >> >> > http://paraview.org/Wiki/ParaView<br>> >> >> >> ><br>> >> >> >> > Follow this link to subscribe/unsubscribe:<br>> >> >> >> > http://www.paraview.org/mailman/listinfo/paraview<br>> >> >> >> ><br>> >> >> >> ><br>> >> >> ><br>> >> >> > ________________________________<br>> >> >> > PC, téléphones portables, souris hi-tech. à gagner grâce à Hotmail !<br>> >> >> > C'est<br>> >> >> > ici !<br>> >> ><br>> >> > ________________________________<br>> >> > Vous êtes étudiants ? Bénéficiez de Windows 7 à 35? ! Découvrez notre<br>> >> > offre<br>> >> > !<br>> ><br>> > ________________________________<br>> > Gagnez au cadeau par jour avec Hotmail Magic Moment ! Cliquez ici !<br> <br /><hr />Vous êtes étudiants ? Bénéficiez de Windows 7 à 35? ! <a href='http://www.windows-7-pour-les-etudiants.com' target='_new'>Découvrez notre offre ! </a></body>
</html>