Erik Anderson | 2 Aug 17:46 2010
Picon

ParaView Python

Hi all,
    I am trying to import paraview.simple from an external Python 
interpreter.  I am trying to use the ParaView 3.8.0 binary distribution 
and I have all my paths setup properly, but I'm getting the following error:

 >>> import paraview.simple
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Applications/ParaView 
3.8.0.app/Contents/Python/paraview/simple.py", line 39, in <module>
    import servermanager
  File "/Applications/ParaView 
3.8.0.app/Contents/Python/paraview/servermanager.py", line 43, in <module>
    import paraview, re, os, new, sys, vtk
  File "/Applications/ParaView 
3.8.0.app/Contents/Python/paraview/vtk/__init__.py", line 4, in <module>
    from libvtkCommonPython import *
ImportError: dlopen(/Applications/ParaView 
3.8.0.app/Contents/Libraries/libvtkCommonPython.so, 2): no suitable 
image found.  Did find:
    /Applications/ParaView 
3.8.0.app/Contents/Libraries/libvtkCommonPython.so: mach-o, but wrong 
architecture

Upon some closer inspection, I see that the Python version used in 
ParaView is:
2.5.4_final

whereas I am using:
2.6.5_final
(Continue reading)

owen.arnold | 2 Aug 18:03 2010
Picon

Example Object Panel Customisation

Hi,

 

As I am likely to require customized GUI controls in the near future, I decided to look at the example in the Paraview documentation:

 

http://www.paraview.org/Wiki/Plugin_HowTo#Adding_an_object_panel

 

I am finding that the plugin generated by this example compiles fine, and appears to load without issue but the custom panel is never initialized. I was expecting that generating a ConeSource after loading this plugin would result in an additional widget on the object panel.

 

Does anyone know of any ways in which I could determine why no instances of the ConePanel are generated?

 

Thanks in advance,

 

Owen


--
Scanned by iCritical.


<div>

<div class="Section1">

<p class="MsoNormal"><span lang="EN-US">Hi,<p></p></span></p>

<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span lang="EN-US">As I am likely to require
customized GUI controls in the near future, I decided to look at the example in
the Paraview documentation:<p></p></span></p>

<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span lang="EN-US"><a href="http://www.paraview.org/Wiki/Plugin_HowTo#Adding_an_object_panel">http://www.paraview.org/Wiki/Plugin_HowTo#Adding_an_object_panel</a>
<p></p></span></p>

<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span lang="EN-US">I am finding that the
plugin generated by this example compiles fine, and appears to load without
issue but the custom panel is never initialized. I was expecting that
generating a ConeSource after loading this plugin would result in an additional
widget on the object panel.<p></p></span></p>

<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span lang="EN-US">Does anyone know of
any ways in which I could determine why no instances of the ConePanel are
generated?<p></p></span></p>

<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span lang="EN-US">Thanks in advance,<p></p></span></p>

<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span lang="EN-US">Owen<p></p></span></p>

</div>

<br><p>-- 
<br>Scanned by iCritical.
</p>
<br>
</div>
Rick Angelini | 2 Aug 19:15 2010
Picon

Re: Trouble loading Ensight/Gold data

I've run the data through the EnSight tool "ens_checker" and the dataset 
passes correctly.    But, there's clearly something that the ParaView 
reader doesn't like about the Pressure dataset.      Is the EnSight 
reader in Paraview using the VTK reader?    The reason I ask is that I 
am able to read this dataset using VisIt which I believe also uses the 
VTK Ensight reader. 

Peter Brady wrote:
> Our data is in the EnSight-Gold file format and we haven't encountered 
> any problems with 3.8.  Have you tried the ensight format checkers 
> http://www.paraview.org/pipermail/paraview/2010-March/016356.html 
> <blockedhttp://www.paraview.org/pipermail/paraview/2010-March/016356.html>?
>
> You could also try replacing one of the files that loads correctly 
> with an appropriately named pressure file.  I imagine this would tell 
> you if there's a problem in the pressure file format or in the case file.
>
> Peter
>
> On Fri, Jul 30, 2010 at 1:14 PM, Andy Bauer <andy.bauer <at> kitware.com 
> <blockedmailto:andy.bauer <at> kitware.com>> wrote:
>
>     Sounds strange.  I'm not that familiar with the EnSight/Gold file
>     format but wonder if somehow the array doesn't have the same
>     number of tuples as there are points/cells in the grid for point
>     data/cell data.  Does it show up in the spreadsheet view?  Maybe
>     in the field data? 
>
>     Andy
>
>     On Fri, Jul 30, 2010 at 4:04 PM, Rick Angelini
>     <rick.angelini <at> us.army.mil
>     <blockedmailto:rick.angelini <at> us.army.mil>> wrote:
>
>         I have an EnSight/Gold case file that I'm able to read into a
>         couple of other vis packages with no problem.  When I load the
>         case file into Parview 3.6.2/3.8.0/3.9.x I don't get one of
>         the scalar files loaded.   (The scalar happens to be
>         pressure).     There are no error messages from the client or
>         server, ParaView just ignores this particular scalar value.
>         When I load the case file,  the variable shows up in the
>         properties window.  I select "Pressure",   and all of his
>         friends like Temp, Velocity, etc,  select APPLY, and then look
>         in the information tab.  "Pressure" is not listed.     This
>         Case file happens to have many timesteps defined, so I changed
>         it to only load one timestep - same behavior.    I selected
>         the first timestep, the last one, and many in the middle, same
>         behavior.   And of course, "Pressure" happens to be the
>         variable of interest!   8-)
>
>         I must be missing something really easy.   Unfortunately, I
>         can't share this data for debugging purposes.  
>
>
>         _______________________________________________
>         Powered by www.kitware.com <blockedhttp://www.kitware.com>
>
>         Visit other Kitware open-source projects at
>         http://www.kitware.com/opensource/opensource.html
>         <blockedhttp://www.kitware.com/opensource/opensource.html>
>
>         Please keep messages on-topic and check the ParaView Wiki at:
>         http://paraview.org/Wiki/ParaView
>         <blockedhttp://paraview.org/Wiki/ParaView>
>
>         Follow this link to subscribe/unsubscribe:
>         http://www.paraview.org/mailman/listinfo/paraview
>         <blockedhttp://www.paraview.org/mailman/listinfo/paraview>
>
>
>
>     _______________________________________________
>     Powered by www.kitware.com <blockedhttp://www.kitware.com>
>
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
>     <blockedhttp://www.kitware.com/opensource/opensource.html>
>
>     Please keep messages on-topic and check the ParaView Wiki at:
>     http://paraview.org/Wiki/ParaView
>     <blockedhttp://paraview.org/Wiki/ParaView>
>
>     Follow this link to subscribe/unsubscribe:
>     http://www.paraview.org/mailman/listinfo/paraview
>     <blockedhttp://www.paraview.org/mailman/listinfo/paraview>
>
>
Robert Maynard | 2 Aug 20:16 2010

Re: Example Object Panel Customisation



On Mon, Aug 2, 2010 at 12:03 PM, <owen.arnold <at> stfc.ac.uk> wrote:

Hi,

 

As I am likely to require customized GUI controls in the near future, I decided to look at the example in the Paraview documentation:

 

http://www.paraview.org/Wiki/Plugin_HowTo#Adding_an_object_panel

 

I am finding that the plugin generated by this example compiles fine, and appears to load without issue but the custom panel is never initialized. I was expecting that generating a ConeSource after loading this plugin would result in an additional widget on the object panel.

 

Does anyone know of any ways in which I could determine why no instances of the ConePanel are generated?

 

Thanks in advance,

 

Owen


--
Scanned by iCritical.



_______________________________________________
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


Hi Owen,

I just tested the cone example and it is  working on my machine (Windows 7 64bit and Visual Studio 2010). To determine why are you not getting the custom panel I would start debugging in pqObjectInspectorWidget::setProxy(pqProxy *proxy) at line 434.


--
Robert Maynard
<div>
<br><br><div class="gmail_quote">On Mon, Aug 2, 2010 at 12:03 PM,  <span dir="ltr">&lt;<a href="mailto:owen.arnold <at> stfc.ac.uk">owen.arnold <at> stfc.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">

<div lang="EN-GB" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><span lang="EN-US">Hi,</span></p>

<p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>

<p class="MsoNormal"><span lang="EN-US">As I am likely to require
customized GUI controls in the near future, I decided to look at the example in
the Paraview documentation:</span></p>

<p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>

<p class="MsoNormal"><span lang="EN-US"><a href="http://www.paraview.org/Wiki/Plugin_HowTo#Adding_an_object_panel" target="_blank">http://www.paraview.org/Wiki/Plugin_HowTo#Adding_an_object_panel</a>
</span></p>

<p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>

<p class="MsoNormal"><span lang="EN-US">I am finding that the
plugin generated by this example compiles fine, and appears to load without
issue but the custom panel is never initialized. I was expecting that
generating a ConeSource after loading this plugin would result in an additional
widget on the object panel.</span></p>

<p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>

<p class="MsoNormal"><span lang="EN-US">Does anyone know of
any ways in which I could determine why no instances of the ConePanel are
generated?</span></p>

<p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>

<p class="MsoNormal"><span lang="EN-US">Thanks in advance,</span></p>

<p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>

<p class="MsoNormal"><span lang="EN-US">Owen</span></p>

</div>

<br><p>-- 
<br>Scanned by iCritical.
</p>
<br>
</div>

<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 <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: <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>
</blockquote>
</div>
<br>Hi Owen,<div><br></div>
<div>I just tested the cone example and it is &nbsp;working on my machine (Windows 7 64bit and Visual Studio 2010). To determine why are you not getting the custom panel I would start debugging in pqObjectInspectorWidget::setProxy(pqProxy&nbsp;*proxy) at line 434.</div>

<div><br></div>
<br>-- <br>Robert Maynard<br>
</div>
Josef Dubsky | 2 Aug 19:02 2010
Picon
Picon

Annotations with node IDs

Hi,

I have one simple question – is it possible to somehow produce the annotations for the mesh nodes to show their ID in Paraview?

I’m aware of the fact, that I can look this up in the table view, but doing it for each node I’m interested in is not exactly the most efficient way.

 

Regards

 

Josef

<div>

<div class="WordSection1">

<p class="MsoNormal"><span lang="EN-US">Hi,<p></p></span></p>

<p class="MsoNormal"><span lang="EN-US">I have one simple question &ndash; is it possible
to somehow produce the annotations for the mesh nodes to show their ID in Paraview?<p></p></span></p>

<p class="MsoNormal"><span lang="EN-US">I&rsquo;m aware of the fact, that I can look this
up in the table view, but doing it for each node I&rsquo;m interested in is not
exactly the most efficient way.<p></p></span></p>

<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span lang="EN-US">Regards<p></p></span></p>

<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span lang="EN-US">Josef<p></p></span></p>

</div>

</div>
Ivo Roghair | 2 Aug 20:53 2010
Picon

Re: Annotations with node IDs

Open the selection inspector ('view' menu) and take the selection tool
(the one which selects nodes, not cells). Then select the part you're
interested in, go to the 'Point label' tab in the selction tool (all
the way to the bottom), and tick the 'visible' thing. The dropdown box
will let you choose the ID or any other variable that applies to the
point.

2010/8/2 Josef Dubsky <josef.dubsky <at> gcsc.uni-frankfurt.de>:
> Hi,
>
> I have one simple question – is it possible to somehow produce the
> annotations for the mesh nodes to show their ID in Paraview?
>
> I’m aware of the fact, that I can look this up in the table view, but doing
> it for each node I’m interested in is not exactly the most efficient way.
>
>
>
> Regards
>
>
>
> Josef
>
> _______________________________________________
> 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
>
>
Josef Dubsky | 2 Aug 21:09 2010
Picon
Picon

Re: Annotations with node IDs

Hi,
Thanks a lot, this was exactly what I needed. Somehow I kept looking for
annotations instead of labels and couldn't find what I wanted ;-)

Regards

Josef

-----Original Message-----
From: Ivo Roghair [mailto:ivoroghair <at> gmail.com] 
Sent: Monday, August 02, 2010 8:54 PM
To: Josef Dubsky
Cc: paraview <at> paraview.org
Subject: Re: [Paraview] Annotations with node IDs

Open the selection inspector ('view' menu) and take the selection tool
(the one which selects nodes, not cells). Then select the part you're
interested in, go to the 'Point label' tab in the selction tool (all
the way to the bottom), and tick the 'visible' thing. The dropdown box
will let you choose the ID or any other variable that applies to the
point.

2010/8/2 Josef Dubsky <josef.dubsky <at> gcsc.uni-frankfurt.de>:
> Hi,
>
> I have one simple question - is it possible to somehow produce the
> annotations for the mesh nodes to show their ID in Paraview?
>
> I'm aware of the fact, that I can look this up in the table view, but
doing
> it for each node I'm interested in is not exactly the most efficient way.
>
>
>
> Regards
>
>
>
> Josef
>
> _______________________________________________
> 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
>
>

Utkarsh Ayachit | 2 Aug 21:36 2010

Re: Bug: Failure to open FLASH file on a PowerBook

Klaus,

I've tracked this issue down. It was indeed due to byte ordering. The
version number was being read incorrectly.  Attached is a patch for
the fix. It have been committed to git master. I'll ensure that it
gets into the 3.8.1 release as well.

Utkarsh

On Fri, Jul 30, 2010 at 10:22 AM, Utkarsh Ayachit
<utkarsh.ayachit <at> kitware.com> wrote:
> Klaus,
>
> Can you send us the data again please? Dave is away and not sure when
> I'd be able to get in touch with him.
>
> Utkarsh
>
> On Thu, Jul 29, 2010 at 5:06 PM, Klaus Weide <klaus <at> flash.uchicago.edu> wrote:
>> Hi,
>>
>> I have just installed ParaView 3.8.0 on a PowerBook G4 (Mac OS X 10.4.11).
>>
>> On opening a FLASH file, I get the output message:
>>
>> Generic Warning: In
>> /Users/partyd/Dashboards/MyTests/ParaView-3-8-0/ParaView/Servers/Filters/vtkFlashReader.cxx,
>> line 764
>> Inconsistency in the number of blocks.
>>
>> After that, the Object Inspector shows no useful information about the
>> file (other than Filename and Path).
>>
>> I gave Dave DeMarle a copy of the same file, he was able to successfully
>> open it on his laptop.  He thinks the problem is caused by the different
>> byte ordering on PowerPC.  This should be easy to fix since the underlying
>> file format of the FLASH format is HDF5.
>>
>> Klaus
>> _______________________________________________
>> 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
>>
>
Klaus,

I've tracked this issue down. It was indeed due to byte ordering. The
version number was being read incorrectly.  Attached is a patch for
the fix. It have been committed to git master. I'll ensure that it
gets into the 3.8.1 release as well.

Utkarsh

On Fri, Jul 30, 2010 at 10:22 AM, Utkarsh Ayachit
<utkarsh.ayachit <at> kitware.com> wrote:
> Klaus,
>
> Can you send us the data again please? Dave is away and not sure when
> I'd be able to get in touch with him.
>
> Utkarsh
>
> On Thu, Jul 29, 2010 at 5:06 PM, Klaus Weide <klaus <at> flash.uchicago.edu> wrote:
>> Hi,
>>
>> I have just installed ParaView 3.8.0 on a PowerBook G4 (Mac OS X 10.4.11).
>>
>> On opening a FLASH file, I get the output message:
>>
>> Generic Warning: In
>> /Users/partyd/Dashboards/MyTests/ParaView-3-8-0/ParaView/Servers/Filters/vtkFlashReader.cxx,
>> line 764
>> Inconsistency in the number of blocks.
>>
>> After that, the Object Inspector shows no useful information about the
>> file (other than Filename and Path).
>>
>> I gave Dave DeMarle a copy of the same file, he was able to successfully
>> open it on his laptop.  He thinks the problem is caused by the different
>> byte ordering on PowerPC.  This should be easy to fix since the underlying
>> file format of the FLASH format is HDF5.
>>
>> Klaus
>> _______________________________________________
>> 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
>>
>
Berk Geveci | 2 Aug 21:55 2010

Re: Trouble loading Ensight/Gold data

The EnSight reader that VisIt uses is a fork of the VTK reader from 5
years ago or so. So, they either fixed a bug and not contributed it back
or there has been a regression in the VTK reader since then.

-berk

On Mon, Aug 2, 2010 at 1:15 PM, Rick Angelini <rick.angelini <at> us.army.mil> wrote:
> I've run the data through the EnSight tool "ens_checker" and the dataset
> passes correctly.    But, there's clearly something that the ParaView reader
> doesn't like about the Pressure dataset.      Is the EnSight reader in
> Paraview using the VTK reader?    The reason I ask is that I am able to read
> this dataset using VisIt which I believe also uses the VTK Ensight reader.
> Peter Brady wrote:
>>
>> Our data is in the EnSight-Gold file format and we haven't encountered any
>> problems with 3.8.  Have you tried the ensight format checkers
>> http://www.paraview.org/pipermail/paraview/2010-March/016356.html
>> <blockedhttp://www.paraview.org/pipermail/paraview/2010-March/016356.html>?
>>
>> You could also try replacing one of the files that loads correctly with an
>> appropriately named pressure file.  I imagine this would tell you if there's
>> a problem in the pressure file format or in the case file.
>>
>> Peter
>>
>> On Fri, Jul 30, 2010 at 1:14 PM, Andy Bauer <andy.bauer <at> kitware.com
>> <blockedmailto:andy.bauer <at> kitware.com>> wrote:
>>
>>    Sounds strange.  I'm not that familiar with the EnSight/Gold file
>>    format but wonder if somehow the array doesn't have the same
>>    number of tuples as there are points/cells in the grid for point
>>    data/cell data.  Does it show up in the spreadsheet view?  Maybe
>>    in the field data?
>>    Andy
>>
>>    On Fri, Jul 30, 2010 at 4:04 PM, Rick Angelini
>>    <rick.angelini <at> us.army.mil
>>    <blockedmailto:rick.angelini <at> us.army.mil>> wrote:
>>
>>        I have an EnSight/Gold case file that I'm able to read into a
>>        couple of other vis packages with no problem.  When I load the
>>        case file into Parview 3.6.2/3.8.0/3.9.x I don't get one of
>>        the scalar files loaded.   (The scalar happens to be
>>        pressure).     There are no error messages from the client or
>>        server, ParaView just ignores this particular scalar value.
>>        When I load the case file,  the variable shows up in the
>>        properties window.  I select "Pressure",   and all of his
>>        friends like Temp, Velocity, etc,  select APPLY, and then look
>>        in the information tab.  "Pressure" is not listed.     This
>>        Case file happens to have many timesteps defined, so I changed
>>        it to only load one timestep - same behavior.    I selected
>>        the first timestep, the last one, and many in the middle, same
>>        behavior.   And of course, "Pressure" happens to be the
>>        variable of interest!   8-)
>>
>>        I must be missing something really easy.   Unfortunately, I
>>        can't share this data for debugging purposes.
>>
>>        _______________________________________________
>>        Powered by www.kitware.com <blockedhttp://www.kitware.com>
>>
>>        Visit other Kitware open-source projects at
>>        http://www.kitware.com/opensource/opensource.html
>>        <blockedhttp://www.kitware.com/opensource/opensource.html>
>>
>>        Please keep messages on-topic and check the ParaView Wiki at:
>>        http://paraview.org/Wiki/ParaView
>>        <blockedhttp://paraview.org/Wiki/ParaView>
>>
>>        Follow this link to subscribe/unsubscribe:
>>        http://www.paraview.org/mailman/listinfo/paraview
>>        <blockedhttp://www.paraview.org/mailman/listinfo/paraview>
>>
>>
>>
>>    _______________________________________________
>>    Powered by www.kitware.com <blockedhttp://www.kitware.com>
>>
>>    Visit other Kitware open-source projects at
>>    http://www.kitware.com/opensource/opensource.html
>>    <blockedhttp://www.kitware.com/opensource/opensource.html>
>>
>>    Please keep messages on-topic and check the ParaView Wiki at:
>>    http://paraview.org/Wiki/ParaView
>>    <blockedhttp://paraview.org/Wiki/ParaView>
>>
>>    Follow this link to subscribe/unsubscribe:
>>    http://www.paraview.org/mailman/listinfo/paraview
>>    <blockedhttp://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
>
Berk Geveci | 3 Aug 02:07 2010

Re: ParaView Python

Most probably. The only way to get around this (and other similar problems)
is to build ParaView from source using the same version of Python and Qt
as yours. Otherwise, you'll get conflicts. Also, make sure that your Mac
target is the same as your Python when building. I forgot the CMake variable
for it. Something with target...

-berk

On Mon, Aug 2, 2010 at 11:46 AM, Erik Anderson <eranders <at> sci.utah.edu> wrote:
> Hi all,
>   I am trying to import paraview.simple from an external Python interpreter.
>  I am trying to use the ParaView 3.8.0 binary distribution and I have all my
> paths setup properly, but I'm getting the following error:
>
>>>> import paraview.simple
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/Applications/ParaView 3.8.0.app/Contents/Python/paraview/simple.py",
> line 39, in <module>
>   import servermanager
>  File "/Applications/ParaView
> 3.8.0.app/Contents/Python/paraview/servermanager.py", line 43, in <module>
>   import paraview, re, os, new, sys, vtk
>  File "/Applications/ParaView
> 3.8.0.app/Contents/Python/paraview/vtk/__init__.py", line 4, in <module>
>   from libvtkCommonPython import *
> ImportError: dlopen(/Applications/ParaView
> 3.8.0.app/Contents/Libraries/libvtkCommonPython.so, 2): no suitable image
> found.  Did find:
>   /Applications/ParaView 3.8.0.app/Contents/Libraries/libvtkCommonPython.so:
> mach-o, but wrong architecture
>
> Upon some closer inspection, I see that the Python version used in ParaView
> is:
> 2.5.4_final
>
> whereas I am using:
> 2.6.5_final
>
> Is this the cause of the error?  If so, how can I work around this?
>
> Thanks,
> Erik Anderson
> _______________________________________________
> 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
>

Gmane