[Paraview-developers] Line drawing code works in 32-bit but not 64-bit

Mathieu Westphal mathieu.westphal at kitware.com
Fri Apr 29 11:34:54 EDT 2016


Hello

This code is not suposed to be written inside a programmable source, but
has a paraview python script.
You are never suposed to import any paraview python module inside a
programmable python source or filter.

Unless you mean python shell ?

Mathieu Westphal

On Fri, Apr 29, 2016 at 5:27 PM, Hallock, Kevin <Kevin.Hallock at pfizer.com>
wrote:

> Hi everyone,
>
> The following code works when used in a Programmable Source in 32-bit
> Paraview on Windows, but not in the 64-bit version:
>
> from paraview import vtk
> line = paraview.simple.Line()
> paraview.simple.SetProperties(Point1=[1, 1, 0],Point2=[0, 0, 1])
> tube = paraview.simple.Tube(line)
> paraview.simple.SetProperties(Radius=0.01)
> generateIds = paraview.simple.GenerateIds(tube)
> paraview.simple.Show()
>
> The error is:
>
> AttributeError: ‘module’ object has not object ‘simple’
>
> Any suggestions?
>
> Thanks,
>
> Kevin
>
> --
> Kevin Hallock
> Visualization and Modeling, Quantitative Medicine
> Neuroscience and Pain Research Unit
> Worldwide Research and Development
> Pfizer Inc
> 610 Main Street
> Cambridge, MA 02139
> Email: kevin.hallock at pfizer.com
> Fax: 845-474-4001
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160429/c2791bf8/attachment.html>


More information about the Paraview-developers mailing list